Project

General

Profile

Help with extracting rectangular selection based on longitude and latitude from netCDF

Added by Umed Maru 1 day 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.


    (1-3/3)