AntSimi / py-eddy-tracker

Eddy identification and tracking
https://py-eddy-tracker.readthedocs.io/en/latest/
GNU General Public License v3.0
123 stars 52 forks source link

use the new sla file to run pet_eddy_detection_gulf_stream.py #137

Closed limaolin1981611 closed 2 years ago

limaolin1981611 commented 2 years ago

The longitude in file "nrt_global_allsat_phy_l4_20190223_20190226.nc" is from 0.125 to 359.875, but in file "nrt_global_allsat_phy_l4_20220201_20220207.nc" is from -179.875 to 179.875.

I used the "nrt_global_allsat_phy_l4_20220201_20220207.nc", changed the longitude in pet_eddy_detection_gulf_stream.py form "279~304" to "-101~-56", reset the "indexs" of "RegularGridDataset". But the longitudes of Cyclonic and Anticyclonic was still from 0~360.

How Can I to fix it?

AntSimi commented 2 years ago

Eddy longitudes will be always stored from 0 to 360

limaolin1981611 commented 2 years ago

ok

limaolin1981611 commented 2 years ago

ok

limaolin1981611 commented 2 years ago

So, If I want to use the new sla file, I need to change the vars the same as the old file?

AntSimi commented 2 years ago

Grid Longitudes must be increasing this is the only mandatory things. It could be between - 270 to 90 or 0 to 360 or....