[gradsusr] write in netcdf format
ISHIAKU IBRAHIM
ishiaku.ibrahim at fubk.edu.ng
Sat Nov 23 02:27:46 EST 2019
Your 'set sdfwrite' should include the file direction where the data will
be extracted to. For example 'set sdfwrite c:\'....
On Saturday, November 23, 2019, Itesh Dash <itesh.dash at gmail.com> wrote:
> Use cdo to convert. Simple and easy. Follow the link below.
>
> https://code.mpimet.mpg.de/boards/1/topics/213
>
>
>
>
> On Sat, Nov 23, 2019, 11:02 AM lpasmanoranjan <lpasmanoranjan at gmail.com>
> wrote:
>
>> Dear Users,
>> I have a dataset (.DAT format with a .ctl file). I would like to write it
>> in netcdf format. My dataset have multiple variables with various level.
>> Following are the details in my .ctl file:
>>
>> xdef 100 linear 55 0.2
>> ydef 200 linear 60 0.2
>> zdef 11 levels 1000 925 900 850 700 500 300 200 150 100 50
>> tdef 120 linear 00Z15May2012 1hr
>> VARS 5
>> U 11 0 x-wind component (m s-1)
>> V 11 0 y-wind component (m s-1)
>> W 11 0 z-wind component (m s-1)
>> Q2 1 0 QV at 2 M (kg kg-1)
>> T2 1 0 TEMP at 2 M (K)
>>
>> My grads script to write my data in netcdf format is:
>>
>> 'open data.ctl'
>> 'set time 00z15May2012 23z20May2012'
>> 'set gxout fwrite'
>> 'define newvars=vars'
>> 'set sdfwrite data.nc'
>> 'sdfwrite newvars
>> 'quit'
>>
>> This script is not working.
>> Any help please??
>>
>> Thank you in advance.
>> Kind Regards,
>> Mano
>> _______________________________________________
>> 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/20191123/b81359c4/attachment.html>
More information about the gradsusr
mailing list