Changeset 95 for trunk/src


Ignore:
Timestamp:
08/26/11 17:37:13 (13 years ago)
Author:
pinsard
Message:

dynamic creation date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ws_tropflux_1d_to_1m_ncdf.pro

    r94 r95  
    5050;  IDL> ws_tropflux_1d_to_1m_ncdf 
    5151; 
     52; KNOWN ISSUES 
     53; ============ 
     54; 
     55; test of existence of fullfilename_in not very efficient because 
     56; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 
     57; 
    5258; TODO 
    5359; ==== 
    5460; 
    55 ; remove hard coded creation date 
     61; coding rules 
     62; 
     63; get rid of hard coded yyyymmdd and nb month 
    5664; 
    5765; include in the whole process 
     
    6573; 
    6674; $URL$ 
     75; 
     76; - fplod 20110826T151225Z aedon.locean-ipsl.upmc.fr (Darwin) 
     77; 
     78;   * remove hard coded creation date 
    6779; 
    6880; - fplod 20110817T084001Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    118130; 
    119131; check if this file exists 
     132msg='iii : looking for ' + filename 
     133ras = report(msg) 
    120134fullfilename = isafile(iodirout + filename, NEW=0, /MUST_EXIST) 
    121135IF fullfilename[0] EQ '' THEN BEGIN 
     
    136150; 
    137151initncdf, fullfilename 
    138 st=19890101  
     152st=19890101 
    139153en=20101231 
    140154ws=read_ncdf("ws", st, en, file=fullfilename,/nostr) 
     
    146160;; Monthly data 
    147161; 
    148 jpt=22*12.  
     162jpt=22*12. 
    149163time=timegen(jpt,start=julday(1,15,1989),units='Months') 
    150164caldat, tt,m,d,y 
     
    165179cda1=string(jul2date(time(jpt-1)),format='(i8.8)') 
    166180time=time-julday(1,1,1950,00,00,00) 
    167 xlon=reform(glamt(firstxt:lastxt,0) )  
     181xlon=reform(glamt(firstxt:lastxt,0)) 
    168182ylat=reform(gphit(0,firstyt:lastyt)) 
    169183 
     
    175189time_attr={units:'days since 1950-01-01 00:00:00',long_name:'Time axis',time_origin:'1950-JAN-01 00:00:00'} 
    176190ws_attr={units:'m/s',missing_value:1.e20,long_name:'Mean wind speed at 10m height',short_name:'ws',axis:'TYX'} 
    177 globattr={Source:'TropFlux - Air-Sea Fluxes for the Global Tropics', Metodology:'Praveen Kumar et al., Clim. Dyn 2011', Producer_Agency:'Joint research colloboration between IPSL, Paris and NIO, India', Time_range:cda0+' - '+cda1, Creation_date:'20110815', Website:'http://www.locean-ipsl.upmc.fr/tropflux/'} 
     191 
     192creation_date=string(jul2date(SYSTIME( /JULIAN , /UTC )), format='(I8)') 
     193 
     194globattr={Source:'TropFlux - Air-Sea Fluxes for the Global Tropics' $ 
     195    , Methodology:'Praveen Kumar et al., Clim. Dyn 2011' $ 
     196    , Producer_Agency:'Joint research colloboration between IPSL, Paris and NIO, India' $ 
     197    , Time_range:cda0+' - '+cda1 $ 
     198    , Creation_date:creation_date $ 
     199    , Website:'http://www.locean-ipsl.upmc.fr/tropflux/'} 
    178200 
    179201 
     
    189211 
    190212end 
    191  
Note: See TracChangeset for help on using the changeset viewer.