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
b3c49704
Commit
b3c49704
authored
1 month ago
by
GUEZ Lionel
Browse files
Options
Downloads
Patches
Plain Diff
Polish
parent
a0d4d859
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Inst_eddies/Analysis/anim_eddy_contours.py
+5
-7
5 additions, 7 deletions
Inst_eddies/Analysis/anim_eddy_contours.py
README.md
+3
-3
3 additions, 3 deletions
README.md
Trajectories/Analysis/extract_traj.py
+1
-1
1 addition, 1 deletion
Trajectories/Analysis/extract_traj.py
with
9 additions
and
11 deletions
Inst_eddies/Analysis/anim_eddy_contours.py
+
5
−
7
View file @
b3c49704
...
...
@@ -71,10 +71,9 @@ def anim_eddies(fig, ax, SHPC, window, d_min, d_max, light):
ishape_lists_all
[
orientation
]
=
{}
for
d
in
range
(
d_min
,
d_max
+
1
):
(
i_slices
[
d
],
ishape_lists_all
[
orientation
][
d
],
)
=
plot_eddy_contours
.
select_ishapes
(
d
,
SHPC
,
orientation
,
window
)
(
i_slices
[
d
],
ishape_lists_all
[
orientation
][
d
])
=
(
plot_eddy_contours
.
select_ishapes
(
d
,
SHPC
,
orientation
,
window
)
)
if
window
is
None
:
bbox
=
None
...
...
@@ -144,7 +143,7 @@ if __name__ == "__main__":
not
SHPC
.
d_init
[
0
]
<=
d_min
<
d_max
<=
SHPC
.
d_init
[
-
1
]
+
SHPC
.
n_dates
[
-
1
]
-
1
<=
SHPC
.
d_init
[
-
1
]
+
SHPC
.
n_dates
[
-
1
]
-
1
):
sys
.
exit
(
"
Bad dates specified
"
)
else
:
...
...
@@ -160,7 +159,6 @@ if __name__ == "__main__":
ani
.
save
(
"
eddy_contours.gif
"
,
writer
=
"
imagemagick
"
)
pygifsicle
.
gifsicle
(
"
eddy_contours.gif
"
,
options
=
[
"
--no-loopcount
"
])
# (The repeat = False option of the save method of
# FuncAnimation does not work.)
# (The repeat = False option of FuncAnimation does not work.)
print
(
'
Created file
"
eddy_contours.gif
"
.
'
)
This diff is collapsed.
Click to expand it.
README.md
+
3
−
3
View file @
b3c49704
...
...
@@ -78,15 +78,15 @@ directory.
The script
`inst_eddies_Aviso.py`
writes 8 lines per date so it may be
a good idea to redirect standard output. Here is an example command line which
detects eddies in the geographical window 70° W to 20°W, 10°S to 20° N,
detects eddies in the geographical window 70° W to 20°
W, 10°
S to 20° N,
between May 15th, 2019 and February 29th, 2020:
```
build/Detection_eddies/Inst_eddies/inst_eddies_Aviso.py --bbox -70 -20 -10 20 SHPC /some/path/to/dt_global_allsat_phy_l4_%Y%m%d_20210726.nc 2019-05-15 2020-02-29 >inst_eddies_Aviso_stdout.txt
```
The command above will create a directory named SHPC (the first
positional argument) in the current directory (you can choose any
name
and any path instead of SHPC).
positional argument) in the current directory (you can choose any
name
and any path instead of SHPC).
To detect instantaneous eddies in
[
INALT model
output
](
https://gmd.copernicus.org/articles/12/3329/2019
)
, use the
...
...
This diff is collapsed.
Click to expand it.
Trajectories/Analysis/extract_traj.py
+
1
−
1
View file @
b3c49704
...
...
@@ -2,7 +2,7 @@
"""
This script reads a JSon file containing trajectories as lists of
instantaneous eddies and prints the trajectory which has the given
index. This is equivalent to jq
'
.traj.
"
{sys.argv[2]}
"'
.
index. This is equivalent to jq
'
.traj.
"
{sys.argv[2]}
"'
sys.argv[1]
.
"""
...
...
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