Changeset 121 for trunk/SRC/ReadWrite
- Timestamp:
- 06/29/06 16:59:33 (18 years ago)
- Location:
- trunk/SRC/ReadWrite
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/read_grads.pro
r114 r121 15 15 ; 16 16 ; @file_comments keyword GLAMBOUNDARY (via computegrid.pro) a 2 elements vector, 17 ; {lon1,lon2], giving the longitu te boundaries that should be17 ; {lon1,lon2], giving the longitude boundaries that should be 18 18 ; used to visualize the data. 19 19 ; lon2 > lon1 … … 34 34 ;--------------- 35 35 ; 36 ; @hidden 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, 37 37 ; depth2], that specifies the area where data must be read 38 38 ; -
trunk/SRC/ReadWrite/read_oasis.pro
r114 r121 17 17 ; @keyword /I8 18 18 ; @keyword /R4 19 ; to change the defau t format (R8) of the data to be read.19 ; to change the default format (R8) of the data to be read. 20 20 ; 21 21 ; @returns a 2d array -
trunk/SRC/ReadWrite/readoldopadistcoast.pro
r114 r121 33 33 34 34 ;+ 35 ; @param filename {in}{required} filename (with the whole path if necessary) 36 ; @param jpiglo {in}{required} 37 ; @param jpjglo {in}{required} 38 ; @param jpk {in}{required} 39 ; dimensions of the opa grid 40 ; @keyword IBLOC ibloc size, default: ibloc = 4096L 41 ; @keyword JPBYT jpbyt size, default: jpbyt = 8L 42 ; @keyword NUMREC number of records in the file. default: numrec = 19L*jpk 35 ; @param filename {in}{required} filename (with the whole path if necessary) 36 ; @param jpiglo {in}{required} 37 ; @param jpjglo {in}{required} 38 ; @param jpk {in}{required} 39 ; dimensions of the opa grid 40 ; 41 ; @keyword IBLOC {default=4096L} ibloc size 42 ; @keyword JPBYT {default=8L} jpbyt size 43 ; @keyword NUMREC {default=19L*jpk} number of records in the file. 44 ; 43 45 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 44 46 ; June, 2002 … … 58 60 ; check the size of the file 59 61 filepamameters = fstat(numcost) 60 ; defau t parameter definition for ORCA262 ; default parameter definition for ORCA2 61 63 IF keyword_set(ibloc) THEN ibloc = long(ibloc) ELSE ibloc = 4096L 62 64 jpiglo = long(jpiglo) -
trunk/SRC/ReadWrite/readoldoparestart.pro
r114 r121 42 42 ; file. 43 43 ; @categories for OPA before NetCDF 44 ; 45 ; 46 ; 47 ; 48 ; 49 ; @keyword IBLOC ibloc size, default: ibloc = 4096L50 ; @keyword JPBYT jpbyt size, defalut: jpbyt = 8L51 ; @keyword NUMREC number of records in the file. defalut: numrec = 19L*jpk52 ; 53 ; 54 ; 55 ; 56 ; 57 ; 58 ; 59 ; 60 ; 61 ; 62 ; 63 ; 64 ; 65 ; 66 ; 67 ; 68 ; 69 ; 70 ; 71 ; 72 ; 44 ; @param filename {in}{required} with the whole path if necessary 45 ; @param jpiglo {in}{required} 46 ; @param jpjglo {in}{required} 47 ; @param jpk {in}{required} 48 ; dimensions of the opa grid 49 ; @keyword IBLOC {default=4096L} ibloc size 50 ; @keyword JPBYT {default=8L} jpbyt size 51 ; @keyword NUMREC {default=19L*jpk} number of records in the file 52 ; @keyword UB 53 ; @keyword VB 54 ; @keyword TB 55 ; @keyword SB 56 ; @keyword ROTB 57 ; @keyword HDIVB 58 ; @keyword UN 59 ; @keyword VN 60 ; @keyword TN 61 ; @keyword SN 62 ; @keyword ROTN 63 ; @keyword HDIVN 64 ; @keyword GCX 65 ; @keyword GCXB 66 ; @keyword ETAB 67 ; @keyword ETAN 68 ; @keyword BSFB 69 ; @keyword BSFN 70 ; @keyword BSFD 71 ; @keyword EN 72 ; the variable we want to read. 73 73 ; 74 74 ; @returns according to the given keywords. -
trunk/SRC/ReadWrite/scanctl.pro
r114 r121 1 1 ;+ 2 ; @file_comments GLAMBOUNDARY 2 elements vector, {lon1,lon2], the longitute2 ; @file_comments GLAMBOUNDARY 2 elements vector, {lon1,lon2], the longitude 3 3 ; boundaries that should be used to visualize the data. 4 4 ; lon2 > lon1 … … 34 34 spawn, '\grep -i "^FILEHEADER" '+filename, fileheader 35 35 fileheader = strtrim(fileheader, 2) 36 if keyword_set(fileheader) then BEGIN 36 if keyword_set(fileheader) then BEGIN 37 37 fileheader = strsplit(fileheader[0],/extract) 38 38 fileheader = long(fileheader[1]) … … 40 40 spawn, '\grep -i "^THEADER" '+filename, theader 41 41 theader = strtrim(theader, 2) 42 if keyword_set(theader) then BEGIN 42 if keyword_set(theader) then BEGIN 43 43 theader = strsplit(theader[0],/extract) 44 44 theader = long(theader[1]) … … 46 46 spawn, '\grep -i "^XYHEADER" '+filename, xyheader 47 47 xyheader = strtrim(xyheader, 2) 48 if keyword_set(xyheader) then BEGIN 48 if keyword_set(xyheader) then BEGIN 49 49 xyheader = strsplit(xyheader[0],/extract) 50 50 xyheader = long(xyheader[1]) … … 148 148 monthsname = string(format='(C(CMOA))',31*(indgen(12))) 149 149 case 1 OF 150 ; h[h]:mmZd[d]mmmyy[yy] 150 ; h[h]:mmZd[d]mmmyy[yy] 151 151 strpos(t0, ':') NE -1:BEGIN 152 152 pp = strpos(t0, ':') … … 359 359 endcase 360 360 ; 361 ; number of files 361 ; number of files 362 362 ; 363 363 nof = ceil(jpt/(1.*jpt1file)) … … 374 374 ;------------------------ 375 375 ;------------------------ 376 ; extracting the variables 376 ; extracting the variables 377 377 ;------------------------ 378 378 ;------------------------ … … 386 386 stop 387 387 endif 388 varlist = varlist[1:n_elements(varlist)-2] 388 varlist = varlist[1:n_elements(varlist)-2] 389 389 if n_elements(varlist) NE nvars then begin 390 390 print, 'Number of variables indicated by VARS ('+strtrim(nvars, 1)+') differs from number of lines (without ''#'' at the beginning) located between VARS and ENDVARS: '+strtrim(n_elements(varlist), 1) -
trunk/SRC/ReadWrite/write_oasis.pro
r114 r121 14 14 ; @keyword /I8 15 15 ; @keyword /R4 16 ; to change the defau t format (R8) of the data to be written.16 ; to change the default format (R8) of the data to be written. 17 17 ; 18 18 ; @keyword /APPEND to open the file with the file pointer at the end of … … 21 21 ; 22 22 ; @restrictions varname is automatically written as a "charactere*8" 23 ; by defau t z2d is written as an R8 array23 ; by default z2d is written as an R8 array 24 24 ; 25 25 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
Note: See TracChangeset
for help on using the changeset viewer.