Re: How to change global attributes in a netCDF file

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 7 Mar 2006 15:22:40 -0700 (MST)

>
> I need to make changes in START_DATE in my netCDF file and then
>write back to this file. Specifically, I need to do the following:
>
>Change from:
>
> :START_DATE = "2005-05-01_00:00:00"
>
>to:
>
> :START_DATE = "2005-06-01_00:00:00"
>
> Please let me know how I can do this or where I can find an
>example to do this.
>
>Thanks,
>Yongxin
------------------------------------------------
Not untested

Make a copy of your original file,
then [you can do this interactively]

ncl > f = addfile ("foo.nc", "w") ; note "w"
ncl > f_at_START_DATE = "2005-06-01_00:00:00"

You are done.

Do a ncdump -h on the file.

D

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 07 2006 - 15:22:40 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 07 2006 - 16:44:45 MST