Hi Rashed,
I would use the read/write option in addfile to read in the file, grab
the variable you want, modify it, and write it back to the netCDF file.
(Note: Make a backup copy of your aerosol.climatology.nc file first
before you attempt to alter it.)
http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml
a = addfile("aerosol.climatology.nc","w")
arr = a->so4_anthro ; not sure if that's the variable you want
arr = ; set to whatever value(s) you want
a->so4_anthro = arr
That should be it. Just to be clear, the above snippet of code will
overwrite the so4_anthro variable from the aerosol.climatology.nc file.
If the above doesn't help let the ncl-talk group know..
Adam
On 08/27/2010 02:16 AM, Rashed Mahmood wrote:
> Hi
> I have aerosol climatology data file containing the decadal aerosol
> climatologies of different types of aerosols. I have attached the file
> dump results as txt file.
> I want to fix the sulphate aerosol (variable number 7 in the file) at
> 1970 or before level so that it can be used as an input in a GFDL-AM2
> model.
> Does anybody has any code for doing it using NCL?
> Thanks and regads
> Rashed
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- __________________________________________________ Adam Phillips asphilli@ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 Climate and Global Dynamics Division fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Aug 27 11:44:45 2010
This archive was generated by hypermail 2.1.8 : Thu Sep 09 2010 - 05:56:39 MDT