Project

General

Profile

Problem convert similar NetCDF files to Grib

Added by S S over 11 years ago

I'm trying to convert a set of NetCDF files to Grib using CDO 1.5.5 (Windows exe build). I'm using the Panoply Data Viewer, http://www.giss.nasa.gov/tools/panoply/ , to verify the data after it is converted to Grib2. For some of the files in the set, the conversion works perfectly. For others, the important variable appear's to be dropped and Panoply shows one variable instead of two.

Below is the command I am using:

cdo.exe -f grb copy <ExistingNetCDFFile>.nc <NewGribFile>.grb

The files are available at the following locations (also attached to this thread unzipped):
http://data.nodc.noaa.gov/ghrsst/L4/GLOB/NAVO/K10_SST/2012/127/20120506-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.nc.bz2
http://data.nodc.noaa.gov/ghrsst/L4/GLOB/NAVO/K10_SST/2012/128/20120507-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.nc.bz2

In my tests, files from the date 05/06/2012, and those shortly before, work without issue. Files starting with 05/06/2012 do not work. I've compared the files and as they are all from the same provider, I don't see much variation. Any ideas why one works and the other does?

To be precise:
Succeeds: cdo.exe -f grb copy 20120506-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.nc 20120506-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.grb
Fails: cdo.exe -f grb copy 20120507-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.nc 20120507-NAVO-L4HR1m-GLOB-v01-fv01_0-K10_SST.grb


Replies (1)

RE: Problem convert similar NetCDF files to Grib - Added by Ralf Mueller over 11 years ago

Do you want to get grib1 or grib2 output? -f grb produces grib1. Grib2 is not available in the native win32 binary. For understanding the error, you should upload the results data or post the error message.

    (1-1/1)