netcdf file with non linear time

Heiner Körnich heiner at MISU.SU.SE
Tue Mar 10 04:17:26 EDT 2009


Hi,

I don't think that GrADS can handle this. You could split the dates into
separate files with some netcdf tool (eg. NCO or CDO), and then open three
files in GrADS instead.

Regards,
Heiner

On Tue, Mar 10, 2009 at 8:58 AM, Francoise Cheroux <
francoise.cheroux at meteo.fr> wrote:

> Hello,
>
> We have data in a netcdf file with non linear time, that is 2 January, 11
> January and 21 Januany (see the file header below).  Grads plots the data
> as
> if they were 2 January, 11 and 20 January (regular 10 day intervals).
>
> How could grads take into account the dates written in the netcdf file?
>
> Thanks for your response.
>
> Regards,
>
> Martine Michou
>
>
>
> netcdf CCMVal2_REF-B1_CNRM-ACM_2_T3I_va_01 {
> dimensions:
>    lon = 128 ;
>    lat = 64 ;
>    plev = 60 ;
>    time = UNLIMITED ; // (3 currently)
> variables:
>    float lon(lon) ;
>        lon:long_name = "longitude" ;
>        lon:units = "degrees_east" ;
>        lon:standard_name = "longitude" ;
>    float lat(lat) ;
>        lat:long_name = "latitude" ;
>        lat:units = "degrees_north" ;
>        lat:standard_name = "latitude" ;
>    float plev(plev) ;
>        plev:long_name = "pressure" ;
>        plev:units = "Pa" ;
>    double time(time) ;
>        time:units = "hours since 1990-01-01 00:00" ;
>    float va(time, plev, lat, lon) ;
>        va:long_name = "northward_wind" ;
>        va:units = "m s-1" ;
>        va:grid_type = "gaussian" ;
>        va:comment = "instantaneous values" ;
>    float APS(lat, lon) ;
>        APS:long_name = "APS" ;
>        APS:units = "level" ;
>        APS:missing_value = -999.f ;
>
> // global attributes:
>        :CDI = "Climate Data Interface version 1.2.0" ;
>        :Conventions = "CF-1.0" ;
>        :history = "Mon Mar 09 16:29:33 2009: cdo selsmon,1
> CCMVal2_REF-B1_CNRM-ACM_2_T3I_va.nc
> CCMVal2_REF-B1_CNRM-ACM_2_T3I_va_01.nc\n",
>            "Thu Mar  5 11:46:43 2009: ncrcat M29/va_h0.M29_1990_01_02.nc
> M29/va_h0.M29_1990_01_11.nc M29/va_h0.M29_1990_01_21.nc
> M29/va_h0.M29_1990_02_01.nc M29/va_h0.M29_1990_02_11.nc
> M29/va_h0.M29_1990_02_21.nc M29/va_h0.M29_1990_03_01.nc
> M29/va_h0.M29_1990_03_11.nc M29/va_h0.M29_1990_03_21.nc
> M29/va_h0.M29_1990_04_01.nc M29/va_h0.M29_1990_04_11.nc
> M29/va_h0.M29_1990_04_21.nc M29/va_h0.M29_1990_05_01.nc
> M29/va_h0.M29_1990_05_11.nc M29/va_h0.M29_1990_05_21.nc
> M29/va_h0.M29_1990_06_01.nc M29/va_h0.M29_1990_06_11.nc
> M29/va_h0.M29_1990_06_21.nc M29/va_h0.M29_1990_07_01.nc
> M29/va_h0.M29_1990_07_11.nc M29/va_h0.M29_1990_07_21.nc
> M29/va_h0.M29_1990_08_01.nc M29/va_h0.M29_1990_08_11.nc
> M29/va_h0.M29_1990_08_21.nc M29/va_h0.M29_1990_09_01.nc
> M29/va_h0.M29_1990_09_11.nc M29/va_h0.M29_1990_09_21.nc
> M29/va_h0.M29_1990_10_01.nc M29/va_h0.M29_1990_10_11.nc
> M29/va_h0.M29_1990_10_21.nc M29/va_h0.M29_1990_11_01.nc
> M29/va_h0.M29_1990_11_11.nc M29/va_h0.M29_1990_11_21.nc
> M29/va_h0.M29_1990_12_01.nc M29/va_h0.M29_1990_12_11.nc
> M29/va_h0.M29_1990_12_21.nc M29/CCMVal2_REF-B1_CNRM-ACM_2_T3I_va.nc\n",
>            "Thu Mar 05 11:45:46 2009: cdo splitday TMP/mon01.ncTMP/day\n",
>            "Thu Mar 05 11:45:09 2009: cdo splitmon M29/va_h0.M29.1990.nc
> TMP/mon\n",
>            "created at time: Thu Mar  5 08:02:01 2009" ;
>        :institution = "CNRM (Centre National de Recherches Meteorologiques,
> Meteo-France, Toulouse, France)" ;
>        :title = "ARPEGE T42L60 coupled to MOCAGE-Climat" ;
>        :references = "arpege version 4" ;
>        :comment = "For accumulated variables: january 1st=accumulation over
> 12h-->18h + 18h-->0h of january 1st + 0h-->6h and 6h-->12h of january 2nd


More information about the gradsusr mailing list