Project

General

Profile

Issue with setcalendar

Added by Markus Mingel about 3 years ago

Hi all,

I am trying to convert some netcdf to grib but setcalendar does not work as expected.
My original data have a 365_day calendar, so I use the following command for the conversion:

cdo -f grb setltype,1 -chparam,-1,1 -setreftime,1980-01-01,00:00:00,hour -settaxis,1980-01-01,00:00:00,6hour -setcalendar,365_day ps.nc ps.grb

However, looking at the output the grib file I found a proleptic_gregorian calendar:

File format : GRIB
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : NCAR unknown v instant 1 1 55296 1 P16 : 1
Grid coordinates :
1 : lonlat : points=55296 (288x192)
lon : 0 to 358.75 by 1.25 degrees_east circular
lat : -90 to 90 by 0.9424084 degrees_north
Vertical coordinates :
1 : surface : levels=1
Time coordinate : unlimited steps
RefTime = 1980-01-01 00:00:00 Units = days Calendar = proleptic_gregorian
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
1980-01-01 00:00:00 1980-01-01 06:00:00 1980-01-01 12:00:00 1980-01-01 18:00:00
1980-01-02 00:00:00

Any idea on what is going wrong?
Thanks into advance for help.
Markus

ps.nc (1.1 MB) ps.nc

Replies (1)

RE: Issue with setcalendar - Added by Uwe Schulzweida about 3 years ago

Hi Markus,

There is no possibility to specify a calendar in GRIB.

Cheers,
Uwe

    (1-1/1)