Daily calendar

From: Prince K. Xavier <xavier_at_nyahnyahspammersnyahnyah>
Date: Fri, 19 May 2006 13:16:45 +0530 (IST)

Hi all,

My requirement is to assign time coordinates for the data which are
supplied as individual files for each day.

for example..
(0) AIRS.2005.07.20.L3.RetStd001.v4.0.9.0.G05203185105.hdf
(1) AIRS.2005.07.21.L3.RetStd001.v4.0.9.0.G05204161409.hdf
(2) AIRS.2005.07.22.L3.RetStd001.v4.0.9.0.G05205154813.hdf

these files are for 20/07/2005 to 22/07/2005.

I read these data into an array as

         fils = systemfunc("ls AIRS*.hdf")
         nfils = dimsizes(fils)
         nlev = 24
         nlon = 360
         nlat = 180

         T_A = new ( (/nfils,nlev,nlat,nlon/), "float")

         do nf=0,nfils-1
          f1 = addfile (fils(nf), "r")
          T_A(nf,:,:,:) = f1->Temperature_MW_A
            end do

My ultimate aim is to assign proper time coordinates and do some
computation and finally write them as netcdf.

Could anyone help me to get the dates from the filename itself and assign
them as coordinates?

cheers
Prince

-- 
Prince K XAVIER
Centre for Atmospheric and Oceanic Sciences 
Indian Institute of Science 
Bangalore - 560 012 
INDIA 
http://caos.iisc.ernet.in/hpg/students/prince.html
__________________________________________________ 
Phone No. 
+91 80 2293 2505 (Extn:201)
+91 98808 19172  (Mobile)
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 19 2006 - 01:46:45 MDT

This archive was generated by hypermail 2.2.0 : Fri May 19 2006 - 10:04:53 MDT