Skip to content
Snippets Groups Projects
Commit 44ff308c authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent 2655a895
No related branches found
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment