[Thread Prev][Thread Next][Index]
Reading in ASCII and creating time axis therefrom...
OK, I'm just not getting it. Here's my data and how I think it needs to be
read it to create a time series:
------------------------------------------------------------------------
1996 06 26 1.20 6 1.55 1 2.85 0 7.13 4.03 4.16
1996 07 26 1.20 6 1.55 15 2.85 1 8.23 4.65 4.80
1996 08 26 1.20 6 1.55 11 2.85 0 8.23 4.65 4.80
1996 09 25 1.20 6 1.55 11 2.85 0 8.23 4.65 4.80
1996 10 25 1.20 6 1.55 1 2.85 0 8.23 4.65 4.80
[...]
------------------------------------------------------------------------
!
file/var=yy,mm,dd,vr1,vu1,vr2,vu2,vr3,vu3,vww,vsf,vuf water
!
let time = DAYS1900(yy,mm,dd)-DAYS1900(1996,1,1)
define axis/t/from_data/name=tax/units="days"/t0="1-JAN-1996" time
define grid/t=tax gg
!
let/title="rate 1" r1 = vr1[g=gg@asn]
[...]
------------------------------------------------------------------------
But alas, I get no time axis information from the netCDF file:
netcdf test {
dimensions:
XAX1_55 = 55 ;
variables:
double XAX1_55(XAX1_55) ;
XAX1_55:point_spacing = "even" ;
float R1(XAX1_55) ;
R1:missing_value = -1.e+34f ;
R1:_FillValue = -1.e+34f ;
R1:long_name = "rate 1" ;
R1:history = "From water" ;
[...]
------------------------------------------------------------------------
Where in my "define_axis" am I going wrong? 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