Changeset 106 for trunk/SRC/ReadWrite/readoldoparestart.pro
- Timestamp:
- 06/12/06 16:49:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/readoldoparestart.pro
r74 r106 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:readoldoparestart 6 ; based on the OPA subroutine dtrlec included at the end of the 7 ; file. 8 ; 9 ; PURPOSE:read the old restart files of OPA (before NetCDF) 10 ; 11 ; CATEGORY:for OPA before NetCDF 12 ; 13 ; CALLING SEQUENCE:readoldoparestart, filename, jpiglo, jpjglo, jpk 14 ; 15 ; INPUTS: 16 ; filename: with the whole path if necessary 17 ; jpiglo, jpjglo, jpk: dimensions of the opa grid 18 ; 19 ; KEYWORD PARAMETERS: 20 ; IBLOC: ibloc size, default: ibloc = 4096L 21 ; JPBYT: jpbyt size, defalut: jpbyt = 8L 22 ; NUMREC: number of records in the file. defalut: numrec = 19L*jpk 23 ; UB, VB, TB, SB, ROTB, HDIVB, UN, VN, TN, SN, ROTN, HDIVN, GCX, 24 ; GCXB, ETAB, TAN, BSFB, BSFN, BSFD, EN: the variable we want to 25 ; read. 26 ; 27 ; OUTPUTS:according to the given keywords. 28 ; 29 ; COMMON BLOCKS:none 30 ; 31 ; SIDE EFFECTS: 32 ; 33 ; RESTRICTIONS:bug for etab and etan written on the same record??? 34 ; 35 ; EXAMPLE: 36 ; 37 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 5 ; 6 ; @categories for OPA before NetCDF 7 ; 8 ; @restrictions bug for etab and etan written on the same record??? 9 ; 10 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 38 11 ; June 2002 39 12 ;- … … 48 21 return, a[0] 49 22 end 23 ;+ 24 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 25 ; June 2002 26 ;- 50 27 FUNCTION read3fromopa, unit, params, num 51 28 offset=params.reclen*params.jpk*(num-1L) … … 54 31 end 55 32 33 ;+ 34 ; @file_comments read the old restart files of OPA (before NetCDF) 35 ; based on the OPA subroutine dtrlec included at the end of the 36 ; file. 37 ; @categories for OPA before NetCDF 38 ; @param filename {in}{required} with the whole path if necessary 39 ; @param jpiglo {in}{required} 40 ; @param jpjglo {in}{required} 41 ; @param jpk {in}{required} 42 ; dimensions of the opa grid 43 ; @keyword IBLOC ibloc size, default: ibloc = 4096L 44 ; @keyword JPBYT jpbyt size, defalut: jpbyt = 8L 45 ; @keyword NUMREC number of records in the file. defalut: numrec = 19L*jpk 46 ; @keyword UB 47 ; @keyword VB 48 ; @keyword TB 49 ; @keyword SB 50 ; @keyword ROTB 51 ; @keyword HDIVB 52 ; @keyword UN 53 ; @keyword VN 54 ; @keyword TN 55 ; @keyword SN 56 ; @keyword ROTN 57 ; @keyword HDIVN 58 ; @keyword GCX 59 ; @keyword GCXB 60 ; @keyword ETAB 61 ; @keyword ETAN 62 ; @keyword BSFB 63 ; @keyword BSFN 64 ; @keyword BSFD 65 ; @keyword EN 66 ; the variable we want to read. 67 ; 68 ; @returns according to the given keywords. 69 ; @restrictions bug for etab and etan written on the same record??? 70 ; 71 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 72 ; June 2002 73 ;- 56 74 57 75 PRO readoldoparestart, filename, jpiglo, jpjglo, jpk, IBLOC = ibloc, JPBYT = jpbyt, NUMREC = numrec, ub = ub, vb = vb, tb = tb, sb = sb, rotb = rotb, hdivb = hdivb, un = un, vn = vn, tn = tn, sn = sn, rotn = rotn, hdivn = hdivn, gcx = gcx, gcxb = gcxb, etab = etab, etan = etan, bsfb = bsfb, bsfn = bsfn, bsfd = bsfd, en = en
Note: See TracChangeset
for help on using the changeset viewer.