Project

General

Profile

cdo setgrid (Abort): Invalid grid command: >-14.46 -14.21 -13.96 <

Added by Beata Szabo-Takacs about 8 years ago

Dear All,

I run an R script what calculated grid cell corners from CNRM-ALADIN53.nc and generated a .txt which includes the grid description with grid cell corners. I tried to set the grid of CNRM-ALADIN output with the given .txt by:

cdo setgrid,grid_ALADIN_inclbounds.txt CNRM-ALADIN53.nc CNRM-ALADIN53_setgrid.nc

but I got the following error:
cdo setgrid (Abort): Invalid grid command: >-14.46 -14.21 -13.96 -13.72 -13.47 -13.22< (grid description file: grid_ALADIN_inclbounds.txt)

I enclosed grid_ALADIN_inclbounds.txt in zip. Could someone help me to solve this issue?

Thank you for your help in adavnce!
Beata


Replies (3)

RE: cdo setgrid (Abort): Invalid grid command: >-14.46 -14.21 -13.96 < - Added by Uwe Schulzweida about 8 years ago

Dear Beata,

Your CDO grid description file is DOS formatted, which means it has a carriage return and a newline character at the end of the line. Unfortunately this is not supported by CDO. I have changed this for the next CDO release. A prerelease is available in the download area.

Cheers,
Uwe

RE: cdo setgrid (Abort): Invalid grid command: >-14.46 -14.21 -13.96 < - Added by Beata Szabo-Takacs about 8 years ago

Dear Uwe,

Thank you very much for your help! I installed the current version of CDO and it works with the most of my netcdf files. But I have one netcdf tas_CNRM-ALADIN53_20710101-21001231.nc which was created by mergetime of ten yearly outputs of tas from 2071 to 2100. When I run

cdo setgrid,grid_ALADIN_inclbounds.txt tas_CNRM-ALADIN53_20710101-21001231.nc tas_CNRM-ALADIN53_20710101-21001231_setgrid.nc

I got the following error message:

@cdf_put_vara_double : ncid = 131072 varid = 7 val0 = 21.810814
cdf_put_vara_double : varname = tas

Error (cdf_put_vara_double) : NetCDF: HDF error
HDF5: infinite loop closing library
R,D,G,A,S,T,D,G,F,D,A,S,T,F,FD,P,FD,P,FD,P,E,E,SL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL

Error (cdf_close) : NetCDF: HDF error@

I checked the ten yearly nc files out with cdo sinfo and set their grid with the above mentioned way and I did not get error message. But when I merged outputs of their setgrid by cdo mergetime operator I got the following error:

@cdf_put_vara_float : ncid = 458752 varid = 7 val0 = 33.512787

Error (cdf_put_vara_float) : NetCDF: HDF error
Segmentation fault (core dumped)@

I cannot imagine what should be the matter. Do you have an idea?
Cheers, Beata

RE: cdo setgrid (Abort): Invalid grid command: >-14.46 -14.21 -13.96 < - Added by Uwe Schulzweida about 8 years ago

Dear Beata,

I have no idea, sorry. I think we can not help without access to the data. Is it possible to upload the files?

Cheers,
Uwe

    (1-3/3)