how to convert output to netcdf file

Thiago Veloso thi_veloso at YAHOO.COM.BR
Thu Mar 18 21:55:35 EDT 2010


  Hi, Liu.
  Independent of your data, if you are able to plot it on GrADS, you are also automatically able to convert its contents into netcdf. An example of the script syntax is as follows (type it inside grads prompt):
"lats4d -v -q -i /home/thiago/Desktop/data/gpcp_v2.1_psg_swap.ctl -ftype ctl -o /home/thiago/Desktop/gpcp_v2.1_psg.01 -time 01jan1979 01dec2008 12"
where -v e -q are optional parameteres (verbose mode and quit after execution, which according to the official wiki may be necessary for proper working), -i indicates input file (in this specific case it is the descriptor of my data set), followed by its identification ("-ftype ctl"), -o represents output file and finally -time means the starting and ending dates, using as increment the value "12" (in my case I was separating every january of a 30-year series).
  I know it may look complicated at the beginning, but in case of further doubts I really recommend you to take a peek at the documentation: http://opengrads.org/wiki/index.php?title=Lats4D for lats4d and http://www.iges.org/grads/gadoc/ for GraDS.
  This command helped me in the data conversion (precipitation data -- from binary to netcdf). I really hope it helps you as well. Best regards,
  Thiago.
--- On Thu, 18/3/10, liuzf406 <liuzf406 at 126.COM> wrote:

From: liuzf406 <liuzf406 at 126.COM>
Subject: Re: how to convert output to netcdf file
To: GRADSUSR at LIST.CINECA.IT
Date: Thursday, 18 March, 2010, 16:58

Dear Thiago,
 
It sounds great! I am wondering why grads can not work.
 Attached is the moisture flux plot calculated from Grads.
Yes, I do need some practical example on how to use the script.
 
Thanks.
Best,
Liu


在2010-03-19 03:39:27,"Thiago Veloso" <thi_veloso at YAHOO.COM.BR> 写道:





  Dear Liu,


  Please note that when using lats4d in the 1.x versions of GrADS you have to use "grandsnc" executable, instead of classic "gradsc".


  The script is avalilabe here: http://opengrads.org/wiki/index.php?title=Lats4D


  I hope it helps you. Please let me know if you need a practical example on how to use the script.


  Best wishes,


  Thiago.

--- On Thu, 18/3/10, liuzf406 <liuzf406 at 126.COM> wrote:


From: liuzf406 <liuzf406 at 126.COM>
Subject: Re: how to convert output to netcdf file
To: GRADSUSR at LIST.CINECA.IT
Date: Thursday, 18 March, 2010, 12:54



Hi,
Thanks for your kind help, but I can not open lats4d.gs file. Can you please attach it and sent to me?
Best,
Liu

在2010-03-18 23:47:26,"Guilherme Martins" <jgmsantos at GMAIL.COM> 写道:

Use lats4d.gs, it's available in the web.

Guilherme.


2010/3/18 liuzf406 <liuzf406 at 126.com>



Dear Grads users,
 
 Can Grads version 1.9 convert output plot to netcdf file? how to get the netcdf file?
 
Thanks so much!
Liu




-- 
-----------------------------------------------------------
José Guilherme Martins dos Santos
Grupo de Modelagem da Atmosfera e Interfaces - GMAI
Divisão de Modelagem e Desenvolvimento - DMD
Centro de Previsão de Tempo e Estudos Climáticos - INPE
Rodovia Presidente Dutra, km 39 - CEP 12630-000
Cachoeira Paulista, SP, Brasil
Telefone(CP): +55 12 3186 8502
Celular(SJC): +55 12 91678770 / +55 12 81528580
E-mail: guilherme.martins at cptec.inpe.br
E-mail alternativo: jgmsantos at gmail.com
Homepage: http://guilhermemartins.hd1.com.br/
-----------------------------------------------------------








      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100318/3addf370/attachment.html 


More information about the gradsusr mailing list