Project

General

Profile

Problems when converting files from netcdf to grb

Added by Alan Zhang about 11 years ago

Hi When I use the following commands to convert files in netcdf to grb:
cdo -f grb new.nc new.grb

The command runs OK. However, after the grb files is created, I use "cdo infov" command to check the information of the new grb file, I can't see the filename in it. All I can is "Var1, Var2, Var3......"

Anyone has idea what's the problem?

Thanks!
Alan.


Replies (2)

RE: Problems when converting files from netcdf to grb - Added by Jaison-Thomas Ambadan about 11 years ago

Hi,

CDO recognize only some standard variable names such as as WMO or ECHAM5/6. If your NetCDF file contains non-standard names then CDO won't recongnize those. You may try the above along with -setpartab or setpartabn see https://code.zmaw.de/boards/53/topics/1764

or you could try the GRIB2 (-f grb2)
Cheers,
J

RE: Problems when converting files from netcdf to grb - Added by Alan Zhang about 11 years ago

Hi I use the the NCEP standard variable name for my netcdf files, but still when I use "cdo -f grb copy" command, the new grb files didn't recognize all the variables in my netcdf files. Instead it just give 1,2,3 ... as GRIB code for all my variables. I am using CDO1.6. What shoudl I do?

    (1-2/2)