josuemtzmo / trackeddy

Tracking eddy algorithm:
http://trackeddy.readthedocs.io/
MIT License
46 stars 18 forks source link

Reported Bug # 2 : Eddy dictionary #3

Open josuemtzmo opened 5 years ago

josuemtzmo commented 5 years ago

When the eddy dictionary only identifies an eddy for a particular timestep it removes a dimension. The data should always look like: array([[0],[1]]) however, if the eddy is only identified in one time step it produces: array([0]). This produces issues and exceptions when saving the data into NetCDF or hdf5 formats, as well as when handling the data.

josuemtzmo commented 5 years ago

Once this is solved, remove the additional conditions at dict2nc() - savedata.py