Project

General

Profile

Error (gribapiGetGrid) : Unsupported grid type: lcc

Added by Szabo-Takacs Beata almost 10 years ago

Hi,

I have a problem with converting grib file to netcdf. I installed cdo 1.6.2+dfsg.1-1 to Ubuntu 14.04 with the following packages:
libc62.19-0ubuntu6
libcdi01.6.2+dfsg.1-1
libndf5-7 1.8.11-5ubuntu7
libnetcdfc7 1:4.1.3-7ubuntu2
libproj0 4.8.0-2ubuntu2

I wrote the sinfo operator using a grib file and I got the following error:
~$ cdo sinfo test.grb

Error (gribapiGetGrid) : Unsupported grid type: lcc

I tried to convert this grib file to netcdf with the following operator:
~$ cdo -f nc -setgridtype,curvilinear test.grb outfile.nc

but I got the same error message: Error (gribapiGetGrid) : Unsupported grid type: lcc

Formerly I used cdo-1.6.3 with grib_api 1.11.0, jasper-1.9000.1, netcdf-4.3.1, proj-4.8.0 libraryes in windows OS and these operators worked.

I do not know if the grib-api library miss in ubuntu version and this causes the error or something else?

Could someone help me what I should to do?

Thank you for your help in advance!
Beata


Replies (8)

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Uwe Schulzweida almost 10 years ago

Your GRIB2 file contains data on a LCC grid. LCC means lambert conformal conic projection. Support for this grid is not implemented in CDO for GRIB2, yet. Could you please attach an example file? Then we are able to add support for this grid in one of the next CDO releases.

Cheers, Uwe

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Szabo-Takacs Beata almost 10 years ago

Thank you for your reply! I attached an example file (test.grb).

Cheers,
Beata

test.grb (10.5 KB) test.grb

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Uwe Schulzweida almost 10 years ago

Dear Beata,

Thanks for the file!
I have fixed this problem. The next CDO release can handle LCC grids with GRIB_API correctly. A CDO prerelease with this fix is available in the download area.

Cheers,
Uwe

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Jiwoo Lee almost 10 years ago

Hello,

I have similar problem with recently updated CDO 1.6.4.
Could you please check with my file?
I attached the sample file which is recorded in GRIB1 format.

I tried as below;
cdo -f nc copy tas_EAS-44_NCEPDOE_evaluation_r1i1p1_YSU-RSM_v3_day_20000101-20001231.grb tas_EAS-44_NCEPDOE_evaluation_r1i1p1_YSU-RSM_v3_day_20000101-20001231.nc

And I got this error message;
Error (cdfDefGrid) : Unsupported grid type: lcc

best,
Jiwoo

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Uwe Schulzweida almost 10 years ago

Unfortunately the LCC grid is supported in CDO only for the GRIB format, sorry.

Cheers, Uwe

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Jiwoo Lee almost 10 years ago

Dear Uwe,

You meant GRIB2 only, right? Since my file is recorded in GRIB1 format, which is original GRIB format.

best,
Jiwoo

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Uwe Schulzweida almost 10 years ago

Dear Jiwoo,

no I meant GRIB1 and GRIB2. CDO can process LCC files only in GRIB format. But it can't store the LCC grid to netCDF.

Best,
Uwe

RE: Error (gribapiGetGrid) : Unsupported grid type: lcc - Added by Jiwoo Lee almost 10 years ago

Dear Uwe,

I understood. I appreciate for your reply on this matter.

best,
Jiwoo

    (1-8/8)