Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
70d9acee
Commit
70d9acee
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Rename function `days_1950` to `to_days_1950`
parent
3964a833
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Convert_Matlab/overlap_v6.py
+2
-2
2 additions, 2 deletions
Convert_Matlab/overlap_v6.py
with
2 additions
and
2 deletions
Convert_Matlab/overlap_v6.py
+
2
−
2
View file @
70d9acee
...
@@ -12,7 +12,7 @@ import sys
...
@@ -12,7 +12,7 @@ import sys
import
json
import
json
import
datetime
import
datetime
def
days_1950
(
date_num
):
def
to_
days_1950
(
date_num
):
"""
Convert Matlab serial date number to number of days since Jan 1st
"""
Convert Matlab serial date number to number of days since Jan 1st
1950.
1950.
...
@@ -35,7 +35,7 @@ n_dates = n_eddies.size
...
@@ -35,7 +35,7 @@ n_dates = n_eddies.size
print
(
"
n_dates =
"
,
n_dates
)
print
(
"
n_dates =
"
,
n_dates
)
e_overestim
=
id_child
.
shape
[
0
]
e_overestim
=
id_child
.
shape
[
0
]
print
(
"
e_overestim =
"
,
e_overestim
)
print
(
"
e_overestim =
"
,
e_overestim
)
d_init
=
days_1950
(
date_num
[
0
])
d_init
=
to_
days_1950
(
date_num
[
0
])
with
open
(
"
node_id_param.json
"
,
"
w
"
)
as
f
:
with
open
(
"
node_id_param.json
"
,
"
w
"
)
as
f
:
json
.
dump
({
"
e_overestim
"
:
e_overestim
,
"
d_init
"
:
d_init
},
f
)
json
.
dump
({
"
e_overestim
"
:
e_overestim
,
"
d_init
"
:
d_init
},
f
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment