Help with extracting rectangular selection based on longitude and latitude from netCDF
Added by Umed Maru about 1 month ago
This issue has been making me tear my hair out for no reason (I have been trying to do this for 3+ hours with no avail).
I am a beginner with CDO and with working with netCDF files in general.
I am trying to extract a rectangle that is used for the Niño 3.4 index (-5 to 5 longitude, -170 to -120 latitude) from a netCDF file.
However the latitude and longitude are not dimensions, they are variables with makes it impossible to use the NCO ncks command.
I can't figure it out with CDO either, and I even tried using python but I am not savvy enough with this stuff.
PLEASE HELP!
I've attached two time slices from my file, if that helps.
timeSlices.nc (16.5 MB) timeSlices.nc |
Replies (3)
RE: Help with extracting rectangular selection based on longitude and latitude from netCDF - Added by Umed Maru about 1 month ago
sorry, that is more like 100 time slices, sorry
RE: Help with extracting rectangular selection based on longitude and latitude from netCDF - Added by Uwe Schulzweida about 1 month ago
Try it with sellonlatbox:
cdo sellonlatbox,-170,-120,-5,5 timeSlices.nc result