[ncl-talk] Create coordinate to dimension time

Guilherme Martins jgmsantos at gmail.com
Wed Apr 20 05:57:58 MDT 2016


Hi users,

I'd like to create a netcdf file and to include the time dimension using
the cd_inv_calendar. My file is monthly and I converted to annual mean and
my problem is that, I'm not capable to create the coordinate variable to
time dimension. Any help is very appreciated.

The informations of my file with cdo are below. The date are 0000-00-00
00:00:00. I would like to create this information like 1950-01-01 00:0:00
and 1951-01-01 00:0:00. I have much more time, this is a example. My script
is in attachment.

    1 : *0000-00-00 00:00:00*       0    10512       0 :     -13.339
 29.640      205.64 : p
     2 : *0000-00-00 00:00:00*       0    10512       0 :     -17.256
 29.574      216.28 : p

My error is:

fatal:cd_inv_calendar: The first six arguments must have the same
dimensionality
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 25 in file
tmp.ncl

My ncl_filedump tmp.nc:

Variable: f
Type: file
filename: tmp
path: tmp.nc
   file global attributes:
   dimensions:
      time = 2
      lat = 72
      lon = 144
   variables:
      float p ( time, lat, lon )
         _FillValue : 1e+20
         lonFlip : longitude coordinate variable has been reordered via
lonFlip

      float lat ( lat )
         long_name : latitude
         units : degrees_north

      float lon ( lon )
         long_name : longitude
         units : degrees_east


A piece of my file is there:

http://ftp-supercomputacao.inpe.br/public/jose.martins/cmip5/

Thanks,

Guilherme.
-- 
------------------------------------------------------------------------------------------
Dr. Guilherme Martins
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)
Grupo de Desenvolvimento em Assimilação de Dados (GDAD)
Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580
E-mail: guilherme.martins at inpe.br || jgmsantos at gmail.com
Skype: guilherme.martins.
Homepage: https://sites.google.com/site/jgmsantos
Currículo Lattes: http://lattes.cnpq.br/5997657584785803
------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160420/8862228d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.ncl
Type: text/x-ncl
Size: 1283 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160420/8862228d/attachment.bin 


More information about the ncl-talk mailing list