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
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
44ff308c
Commit
44ff308c
authored
4 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Polish
parent
2655a895
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Convert_Matlab/inst_eddies_HDF5.py
+4
-4
4 additions, 4 deletions
Convert_Matlab/inst_eddies_HDF5.py
with
4 additions
and
4 deletions
Convert_Matlab/inst_eddies_HDF5.py
+
4
−
4
View file @
44ff308c
#!/usr/bin/env python3
"""
Converts an adt_YYYY-MM-DD
_v6
.mat file to a triplet of shapefiles. The
mat file should be in
v6
format. The data is the set of detected
"""
Converts an adt_YYYY-MM-DD.mat file to a triplet of shapefiles. The
mat file should be in
HDF5
format. The data is the set of detected
instantaneous eddies at a given date.
"""
...
...
@@ -36,8 +36,8 @@ def define_fields(writers):
writers
[
"
max_speed
"
].
field
(
"
eddy_index
"
,
"
N
"
,
5
)
def
write
(
writers
,
cell
,
cyclone
):
"""
writers is a dictionary. cell is a numpy.ndarray
with shape (number
of eddies, 21). cyclone is a boolean.
"""
writers is a dictionary. cell
[:].transpose()
is a numpy.ndarray
with shape (number
of eddies, 21). cyclone is a boolean.
"""
eddy_index
=
0
...
...
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