[ncl-talk] Create coordinate to dimension time

Guilherme Martins jgmsantos at gmail.com
Fri Apr 22 05:56:38 MDT 2016


Thank you Dennis!

Guilherme.

Em qui, 21 de abr de 2016 às 14:49, Dennis Shea <shea at ucar.edu> escreveu:

> See attached....There are *many* print statements so that you can follow
> what is happening. Hopefully, this is what you need.
>
>
> On Wed, Apr 20, 2016 at 5:57 AM, Guilherme Martins <jgmsantos at gmail.com>
> wrote:
>
>> 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
>>
>> ------------------------------------------------------------------------------------------
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
> --
------------------------------------------------------------------------------------------
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/20160422/a5bfedbc/attachment.html 


More information about the ncl-talk mailing list