Changeset 495 for trunk/SRC/ReadWrite/readoldopadistcoast.pro
- Timestamp:
- 04/17/14 10:49:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/readoldopadistcoast.pro
r372 r495 18 18 ; @returns 19 19 ; a structure that contains two elements: tdistcoast (the 20 ; distance for the t-points) and fdis coast (the distance for the20 ; distance for the t-points) and fdistcoast (the distance for the 21 21 ; f-points). 22 22 ; … … 75 75 , IBLOC=ibloc, JPBYT=jpbyt, NUMREC=numrec 76 76 ; 77 ;78 77 compile_opt idl2, strictarrsubs 79 78 ; … … 86 85 openr,numcost , iname_file, /get_lun, /swap_if_little_endian 87 86 ; check the size of the file 88 filepa mameters = fstat(numcost)87 fileparameters = fstat(numcost) 89 88 ; default parameter definition for ORCA2 90 89 IF keyword_set(ibloc) THEN ibloc = long(ibloc) ELSE ibloc = 4096L … … 97 96 ; number of records 98 97 IF keyword_set(numrec) THEN numrec = long(numrec) ELSE numrec = 3L*jpk 99 ; difference between the record length and the size of the cont ened98 ; difference between the record length and the size of the contained 100 99 ; array. 101 100 toomuch = reclen-jpiglo*jpjglo*jpbyt 102 101 ; expected size computation 103 102 size = numrec*reclen-toomuch 104 if size NE filepa mameters.size then begin103 if size NE fileparameters.size then begin 105 104 ras = report(['The size of the file is not the expected one!', $ 106 105 'Check your file or the values of ibloc, jpiglo,', $
Note: See TracChangeset
for help on using the changeset viewer.