[Thread Prev][Thread Next][Index]
Re: Concatting data from "degenerate" files...
I'm having the same problems creating a time sequence as Gary Strand had,
except that the solutions don't seem to work for me:
I want to concat an number of variables (defined on more than one axis,
though 1 dimensional) onto a single time sequence.
A proposed solution was "timestamping", as follows:
! GOAL: combine variable "V" from 12 separate files into a monthly time
series
! initialize the files
USE file1.cdf, file2.cdf, file3.cdf, ..., file12.cdf
! define the time axis
DEFINE AXIS/T=15-JAN:15-DEC/npoints=12 tmonth ! note 1
! define the "zero" value
LET zero = T[gt=tmonth] * 0 ! note 2
! define the time-stamped variable
LET v_stamped = v + zero
! save all 12 months in a time series
REPEAT/L=1:12 (SET DATA `L`; SAVE/APPEND/FILE=T_series.cdf v_stamped)
However, LET v_stamped = v + zero
only works with v and zero swapped:
LET v_stamped = zero + v, else the grid isn't right.
And, the REPEAT command just writes the same value to the whole time
series, then rewrites 12 times as it iterates with time - instead of 12
different values, one at each "month".
Are these propblems peculiar to me; I'm using version 4.91? Can anyone
help?
Jeff
________________________________________________________________________
Dept of Meteorology,Reading University,Earley Gate,Reading. RG6 6BB
Office tel: (0118) 9875123 4338 http://www.met.rdg.ac.uk/~swp98jap
------------------------------------------------------------------------
On Wed, 26 Apr 2000, Gary Strand wrote:
>
> As Lynn suggested, I used the 2nd method described at:
>
> http://ferret.wrc.noaa.gov/Ferret/Mail_Archives/fu_97/msg00126.html
>
> and it works great!
>
> Thanks for the pointer, Lynn, and the solution, Steve.
>
> --
> 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