[gradsusr] How to convert *.nc file into grads format (*.ctl and *.grd file)

Tanmay Sarkar tanmays at barc.gov.in
Tue Jun 26 05:47:51 EDT 2018


Dear Krishnamohan

Thank you, it worked.

 

From: gradsusr [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of krishnamohan
Sent: 26 June 2018 12:29
To: GrADS Users Forum
Subject: Re: [gradsusr] How to convert *.nc file into grads format (*.ctl and *.grd file)

 

Dear Tanmay,

 

Have you tried the 'set fwrite' option yet?

 

http://cola.gmu.edu/grads/gadoc/gradcomdsetfwrite.html

 

May be helpful for you to covert the file to a binary file and use the ctl/grd combination in grads.

 

Attaching an example herewith

 

'reinit'

'sdfopen olrfilter2.nc'

'set t 1 365'

'set x 1 144'

'set y 1 33'

'set z 1'

'set gxout fwrite'

'set fwrite olrfil2.dat'

'd olrall'

'disable fwrite'

 

 

 

Cheers.,                  Krishnamohan

 

On Mon, Jun 25, 2018 at 11:18 PM, <tanmays at barc.gov.in> wrote:

Dear Grads Users,
Can you please help me/tell me how to convert *.nc (netCDF) file to *.ctl
and *.grd format.
 The opposite we all know (*ctl and *.grd to *.nc conversion) but what
about the conversion to *.grd and *.ctl from *.nc.
Please help.
Tanmay Sarkar

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180626/652e4473/attachment-0001.html>


More information about the gradsusr mailing list