a problem with remap?
Added by Bic bary about 8 years ago
I am trying to subtract two datasets which they are not in the same grid so first regrid on to the another (remap on file to another one).
cdo remapcon,r144x143 -selyear,1979/2005 fil1.nc fil11443143.nc
it worked without problem
now subtract
cdo sub fil11443143.nc fil2.nc
I got this
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - time_centered
cdo sub (Warning): Latitude orientation differ! First grid: S->N; second grid: N->S
cdo sub (Warning): Grid longitudes differ!
I checked the output and yes it is missed up
Could you please help me on this?
Samples.7z (24.6 MB) Samples.7z |
Replies (5)
RE: a problem with remap? - Added by Ralf Mueller about 8 years ago
the coordinates attribute of SWnet is wrong. you can change it with an nco
ncatted -a coordinates,SWnet,m,c,"lat lon" file1.nc
the old value is
SWnet:coordinates = "time_centered lon lat"but
- there is not variable
time_centered
in your file - the dimensions are somewhat mixed, because the data definition of SWnet is
SWnet(time_counter, lat, lon)
With the above step, the waring is gone. please check the output!
hth
ralf
RE: a problem with remap? - Added by Bic bary about 8 years ago
Thanks I ran the first command you proposed and I got this:
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered error): nco__open()
nco_err_exit(): ERROR Error code is -101. Translation into English with nc_strerror(-101) is "NetCDF: HDF error"
nco_err_exit(): ERROR NCO will now exit with system call exit(EXIT_FAILURE)
RE: a problem with remap? - Added by Bic bary about 8 years ago
you meant this
ncatted -a coordinates,SWnet,m,c,"lat lon" file1.nc out.nc
Then I use out.nc?
When I did this, the error gone.
but when I used cdo sub out.nc... with the other file I still get the warning. Could you please post the commands you used?
RE: a problem with remap? - Added by Bic bary about 8 years ago
It was solved .I want to remove the files posted in my question. How to do this? Thanks