I have a netcdf file a such:
dimensions:
time = 8760 ;
lon_lat = 35047 ;
temperature = 8760 ;
variables:
float temp(temperature, lon_lat) ;
temp:units = "C" ;
float time(time) ;
float longitude(lon_lat) ;
longitude:units = "degrees east" ;
float latitude(lon_lat) ;
latitude:units = "degrees north" ;
The netcdf covers all United States. What I would like to do with nco is to delete a specific area, say a square.
So by giving certain coordinates for a certain area, I would remove "cut out" that area.
What I would get then, is a netcdf for the States with the three variables but without data for that specifc area. Say I would get the States with a hole.
I have tried it with Hyperslabs (http://nco.sourceforge.net/nco.html#hyp):
ncks -d lon,-106.,-102. -d lat, 20.,30. in.nc out.nc
However, it says that:
ncks: ERROR dimension longitude is not in input file
Right, because the dimension is (lon_lat). Is there a way to cut it by the variables?