fl01=addfile("egts_l.nctox.nc","w")
fl01_at_SDATE = 2007179
should also work.
----
> "I am about to change a time in the global attribute"
maybe should be
I am about to change a file attribute.
----
I would say your script has an error :-(
h3dang_at_sciborg.uwaterloo.ca wrote:
> Greeting dear all!
>
> I am about to change a time in the global attribute in nc file,
> following is my code:
> -------------------------------------
> begin
> fl01=addfile("egts_l.nctox.nc","w")
> fileAtt = True
> fileAtt_at_SDATE = 2007179
>
> fileattdef(fl01,fileAtt)
> end
> --------------------------------------
> It did change after executing the ncl file, but when I apply the file
> I met some errors telling "Time step not available" in this file. this
> is a huge file and it looks the headers are fine when checking with
> "ncdump -h ...".
>
> I was wondering if my code is right or not, if it could cause some
> potential problems in the data.
>
> Thanks a lot for your help,
>
> Hongyan
>
>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 20 2008 - 21:51:00 MST
This archive was generated by hypermail 2.2.0 : Tue Feb 26 2008 - 16:44:49 MST