[Thread Prev][Thread Next][Index]

Concatting data from "degenerate" files...




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