[Thread Prev][Thread Next][Index]

Re: Concatting data from "degenerate" files...



Gary;
	A crude work about would be to save the data consecutively to
an ascii file (with /nohead) and then access the file with
the appropriate grid
ie:

list /file=tempfile.ascii atemp[d=1,k=1]
list /file=tempfile.ascii /app atemp[d=2,k=1]

DEFINE GRID /x=.. /y=.. /T=tn grid2dplustn
FILE /var="atemp" /Grid=grid2dplustn tempfile.ascii

cheers

Lev Tarasoff -  Dept of Physics, University of Toronto,
                60 St. George St., Toronto, Ontario, CANADA, M5S 1A7
                Tel (416)-946-3019  Fax (416)-978-8905
                email: lev@atmosp.physics.utoronto.ca

On Tue, 25 Apr 2000, Gary Strand wrote:

> 
> Suppose I have two datasets, neither of which have a time axis defined:
> 
> yes? sho dat
>      currently SET data sets:
>     1> t.c6.1-3.cdf
>  name     title                             I         J         K    L
>  ATEMP    atemp                            1:368     1:304     1:30 ...
>  
>     2> t.c6.1-4.cdf  (default)
>  name     title                             I         J         K    L
>  ATEMP    atemp                            1:368     1:304     1:30 ...
> 
> How can I get atemp[d=1] and atemp[d=2] to SAVE to the same file at two "new"
> times?
> 
> I've tried defining a new time axis with (just as an exercise) two
points, 
> but it doesn't work (ie, the second SAVE overwrites the first):
> 
> define axis/t="01-JAN-2000":"02-JAN-2000"/np=2 tn
> let temp1 = atemp[d=1,k=1,gt=tn@asn]
> save/app/file=tnew.nc temp1
> let temp1 = atemp[d=2,k=1,gt=tn@asn]
> save/app/file=tnew.nc temp1
> 
> Thanks!
> --
> Gary Strand                Climate Change Research Section, NCAR (303) 497-1336
> strandwg@ucar.edu                          http://www.cgd.ucar.edu/ccr/strandwg
> 



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement