[ncl-talk] Regarding writing netcdf file.
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Thu Jul 4 12:02:10 MDT 2019
Arshitha,
Here is the simplest possible way to write a netcdf file with one
attribute. Try this first. Use ncdump -h to inspect your output file.
Suppose you already calculated a variable named "rh" in NCL.
f = addfile ("filename.nc","c")
rh at att1 = "test"
f->rhum = rh
exit
For more details, please see this documentation:
https://www.ncl.ucar.edu/Applications/method_1.shtml
--Dave
On Thu, Jul 4, 2019 at 9:29 AM arshitha anand via ncl-talk <
ncl-talk at ucar.edu> wrote:
> Dear all,
>
> I have an inssue in writing netcdf file.
> I calculated relative humidity from wrf ouput file. Then I need to write
> it as a netcdf file.
> Does anyone know how to define the attribute and also, how can I write
> it as a netcdf file.
> Kindly note my script, attached below.
>
> Thank you for your suggestions in advance.
>
> --
> *Regards,*
>
> *Arshitha Anand K A*
> Project Associate
> Department of civil engineering
> Indian Institute of Technology Madras
> Chennai - 600036
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190704/13a49b6b/attachment.html>
More information about the ncl-talk
mailing list