diff --git a/Convert_Matlab/inst_eddies_HDF5.py b/Convert_Matlab/inst_eddies_HDF5.py index 8dafbc677d55eb2f5fb4ec2bf1d432e00ecf32d5..a3307d226ecd03f3bd38577981604647b27cf60d 100755 --- a/Convert_Matlab/inst_eddies_HDF5.py +++ b/Convert_Matlab/inst_eddies_HDF5.py @@ -1,7 +1,7 @@ #!/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