Ignore:
Timestamp:
07/06/06 16:48:41 (18 years ago)
Author:
pinsard
Message:

improvements of ReadWrite/?*.pro header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ReadWrite/read_grads.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r121 r130  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; @file_comments reading grads file (except "data type station" or "grib") 
     5; @file_comments 
     6; reading grads file (except "data type station" or "grib") 
    67; from the grads control file even if there is multiple data files. 
    78; 
    89; @categories reading function 
    910; 
    10 ;       @param var {in}{required} the variable name 
    11 ;       @param date1 {in}{required} date of the beginning (yyyymmdd if TIMESTEP is not activate) 
    12 ;       @param date2 {in}{optional} last date. Optionnal, if not scpecified date2=date1 
    13 ;       
    14 ; @keyword FILENAME the grads control file name: 'xxxx.ctl' 
    15 ; 
    16 ; @file_comments keyword GLAMBOUNDARY (via computegrid.pro) a 2 elements vector, 
    17 ;       {lon1,lon2], giving the longitude boundaries that should be 
    18 ;       used to visualize the data. 
     11; @param var {in}{required} 
     12; the variable name 
     13; 
     14; @param date1 {in}{required} 
     15; date of the beginning (yyyymmdd if TIMESTEP is not activate) 
     16; 
     17; @param date2 {in}{optional} 
     18; last date. Optionnal, if not scpecified date2=date1 
     19; 
     20; @keyword FILENAME 
     21; the grads control file name: 'xxxx.ctl' 
     22; 
     23; @file_comments 
     24; keyword GLAMBOUNDARY (via computegrid.pro) a 2 elements vector, 
     25; {lon1,lon2], giving the longitude boundaries that should be 
     26; used to visualize the data. 
    1927;         lon2 > lon1 
    2028;         lon2 - lon1 eq 360 
    21 ;       key_shift will be automatically defined according to 
    22 ;       GLAMBOUNDARY. 
    23 ; 
    24 ;       @keyword /TIMESTEP to specify that the dates are time steps instead of  
    25 ;       true calendar. 
    26 ; 
    27 ;        @file_comments keyword IODIRECTORY a string giving the name of iodirectory (see 
    28 ;       isafile.pro for all possibilities). default value is common  
    29 ;       variable iodir 
     29; key_shift will be automatically defined according to GLAMBOUNDARY. 
     30; 
     31; @keyword TIMESTEP 
     32; to specify that the dates are time steps instead of true calendar. 
    3033; 
    3134; @file_comments 
     35; keyword IODIRECTORY 
     36; a string giving the name of iodirectory 
     37; (see isafile.pro for all possibilities). 
     38; default value is common variable iodir 
     39; 
     40; @todo 
    3241;--------------- 
    3342; NOT yet available 
    3443;--------------- 
    3544; 
    36 ;       @hidden BOX a 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1,  
     45;       BOX a 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1, 
    3746;       depth2], that specifies the area where data must be read 
    3847; 
    39 ;       @hidden EVERYTHING 
    40 ;  
    41 ;       @hidden NOSTRUCTURE 
    42 ;        
    43 ; @returns an array 
     48;       EVERYTHING 
     49; 
     50;       NOSTRUCTURE 
     51; 
     52; @returns 
     53; an array 
    4454; 
    4555; @uses common 
    4656; 
    47 ; @restriction define all the grid parameters (defined in common.pro) 
     57; @restriction 
     58; define all the grid parameters (defined in common.pro) 
    4859; associated to the data. 
    4960; 
    50 ; @restrictions this function call the procedure scanfile that use the  
    51 ; unix commands grep and sed  
     61; @restrictions 
     62; this function call the procedure scanfile that use the 
     63; unix commands grep and sed 
    5264; 
    5365; @examples 
    54 ;    IDL> a=read_grads('sst',19900101,19900131,filename='outputs.ctl') 
    55 ;    IDL> plt, a 
     66; IDL> a=read_grads('sst',19900101,19900131,filename='outputs.ctl') 
     67; IDL> plt, a 
    5668; 
    5769; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     70; 
     71; @version $Id$ 
    5872; 
    5973;- 
     
    211225            'float':a=assoc(unit,fltarr(jpi,jpj,/nozero), offset+4*f77sequential) 
    212226         endcase 
    213          res[*, *, i+alreadyread]=a[0]  
     227         res[*, *, i+alreadyread]=a[0] 
    214228      ENDIF ELSE BEGIN ; more than 1 level to be read 
    215229         if f77sequential then BEGIN ; sequential access 
     
    238252               'float':a=assoc(unit,fltarr(jpi,jpj,varslev[varid],/nozero),offset) 
    239253            endcase 
    240             if keyword_set(key_zreverse) then res[*, *, *, i+alreadyread]=reverse(a[0], 3) ELSE res[*, *, *, i+alreadyread]=a[0]  
     254            if keyword_set(key_zreverse) then res[*, *, *, i+alreadyread]=reverse(a[0], 3) ELSE res[*, *, *, i+alreadyread]=a[0] 
    241255         ENDELSE 
    242256      ENDELSE 
Note: See TracChangeset for help on using the changeset viewer.