Changeset 106 for trunk/SRC/ReadWrite/read_grads.pro
- Timestamp:
- 06/12/06 16:49:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/read_grads.pro
r69 r106 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:read_grads 6 ; 7 ; PURPOSE:reading grads file (except "data type station" or "grib") 5 ; @file_comments reading grads file (except "data type station" or "grib") 8 6 ; from the grads control file even if there is multiple data files. 9 7 ; 10 ; CATEGORY:reading function 11 ; 12 ; CALLING SEQUENCE: 13 ; res=read_grads(var, date1 [, date2], FILENAME = filename) 14 ; 15 ; INPUTS: 16 ; var: the variable name 17 ; date1: date of the beginning (yyyymmdd if TIMESTEP is not activate) 18 ; date2: last date. Optionnal, if not scpecified date2=date1 8 ; @categories reading function 9 ; 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 19 13 ; 20 ; KEYWORD PARAMETERS: 21 ; 22 ; FILENAME: the grads control file name: 'xxxx.ctl' 23 ; 24 ; GLAMBOUNDARY (via computegrid.pro):a 2 elements vector, 14 ; @keyword FILENAME the grads control file name: 'xxxx.ctl' 15 ; 16 ; @file_comments keyword GLAMBOUNDARY (via computegrid.pro) a 2 elements vector, 25 17 ; {lon1,lon2], giving the longitute boundaries that should be 26 18 ; used to visualize the data. … … 30 22 ; GLAMBOUNDARY. 31 23 ; 32 ; /TIMESTEP:to specify that the dates are time steps instead of24 ; @keyword /TIMESTEP to specify that the dates are time steps instead of 33 25 ; true calendar. 34 26 ; 35 ; IODIRECTORY;a string giving the name of iodirectory (see27 ; @file_comments keyword IODIRECTORY a string giving the name of iodirectory (see 36 28 ; isafile.pro for all possibilities). default value is common 37 29 ; variable iodir 38 30 ; 31 ; @file_comments 39 32 ;--------------- 40 33 ; NOT yet available 41 34 ;--------------- 42 35 ; 43 ; BOX: a 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1,36 ; @hidden BOX: a 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1, 44 37 ; depth2], that specifies the area where data must be read 45 38 ; 46 ; EVERYTHING39 ; @hidden EVERYTHING 47 40 ; 48 ; NOSTRUCTURE41 ; @hidden NOSTRUCTURE 49 42 ; 50 ; OUTPUTS:an array51 ; 52 ; COMMON BLOCKS:common.pro53 ; 54 ; SIDE EFFECTS:define all the grid parameters (defined in common.pro)43 ; @returns an array 44 ; 45 ; @uses common 46 ; 47 ; @restriction define all the grid parameters (defined in common.pro) 55 48 ; associated to the data. 56 49 ; 57 ; RESTRICTIONS:this function call the procedure scanfile that use the50 ; @restrictions this function call the procedure scanfile that use the 58 51 ; unix commands grep and sed 59 52 ; 60 ; EXAMPLE:53 ; @examples 61 54 ; IDL> a=read_grads('sst',19900101,19900131,filename='outputs.ctl') 62 55 ; IDL> plt, a 63 56 ; 64 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)57 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 65 58 ; 66 59 ;-
Note: See TracChangeset
for help on using the changeset viewer.