Changeset 136 for trunk/SRC/ReadWrite
- Timestamp:
- 07/10/06 17:20:19 (18 years ago)
- Location:
- trunk/SRC/ReadWrite
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/ncdf_timeget.pro
r130 r136 4 4 ;+ 5 5 ; @file_comments 6 ; get the time axis f om a netcdf_file and transforms it in7 ; julian days of IDL.6 ; get the time axis from a netcdf_file and transforms it in 7 ; Julian days of IDL. 8 8 ; 9 9 ; @categories reading ncdf_file … … 16 16 ; 17 17 ; @keyword YYYYMMDD 18 ; active to obtain the date as a long interger with18 ; active to obtain the date as a long integer with 19 19 ; the format YearYearYearYearMonthMonthDayDay 20 20 ; … … 23 23 ; 24 24 ; @returns 25 ; a long array of IDL julian days25 ; a long array of IDL Julian days 26 26 ; 27 27 ; @restrictions 28 28 ; the calendar variable must have the units attribute 29 ; following the syntax ebellow:29 ; following the syntax bellow: 30 30 ; 31 31 ; time_counter:units = "seconds since 0001-01-01 00:00:00" ; -
trunk/SRC/ReadWrite/read_grads.pro
r130 r136 16 16 ; 17 17 ; @param date2 {in}{optional} 18 ; last date. Option nal, if not scpecified date2=date118 ; last date. Optional, if not specified date2=date1 19 19 ; 20 20 ; @keyword FILENAME … … 141 141 varid = varid[0] 142 142 if varid EQ -1 then begin 143 print, var+' not found in the variable list eof '+filename143 print, var+' not found in the variable list of '+filename 144 144 return, -1 145 145 ENDIF … … 149 149 ;------------------------ 150 150 ;------------------------ 151 ; find the first file to be read according to the lile list,, the151 ; find the first file to be read according to the file list, the 152 152 ; number of time step in each file and t1 and t2 153 153 ;------------------------ … … 164 164 ;------------------------ 165 165 ;------------------------; 166 ; check the exist ance of the file166 ; check the existence of the file 167 167 f2read = isafile(filename = f2read, iodirectory = iodir, _EXTRA = ex) 168 168 ; if the file is stored on tape … … 306 306 triangles_list = triangule() 307 307 ;------------------------ 308 ; subdomain extra tion308 ; subdomain extraction 309 309 310 310 ;------------------------ 311 ; time a guments311 ; time arguments 312 312 ;------------------------ 313 313 time = time[t1:t2] -
trunk/SRC/ReadWrite/read_oasis.pro
r130 r136 4 4 ;+ 5 5 ; @file_comments 6 ; read the f77 unformat ed files used in Oasis (version < 2.5)6 ; read the f77 unformatted files used in Oasis (version < 2.5) 7 7 ; 8 8 ; @categories reading 9 9 ; 10 ; @param filename {in}{required} the filename 10 ; @param filename {in}{required} 11 ; the filename 11 12 ; 12 ; @param varname {in}{required} the name of the variable to be read 13 ; @param varname {in}{required} 14 ; the name of the variable to be read 13 15 ; 14 16 ; @param jpi {in}{required} -
trunk/SRC/ReadWrite/readoldopadistcoast.pro
r130 r136 10 10 ; @categories for OPA before NetCDF 11 11 ; 12 ; @returns a structure that contains two elements: tdistcoast (the 12 ; @returns 13 ; a structure that contains two elements: tdistcoast (the 13 14 ; distance for the t-points) and fdiscoast (the distance for the 14 15 ; f-points). -
trunk/SRC/ReadWrite/readoldoparestart.pro
r130 r136 6 6 ; @categories for OPA before NetCDF 7 7 ; 8 ; @restrictions bug for etab and etan written on the same record??? 8 ; @restrictions 9 ; bug for etab and etan written on the same record??? 9 10 ; 10 11 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) … … 210 211 ;CC ------- 211 212 ;CC Read the previous fields on the file numrst 212 ;CC the first record indicates previous characteri cs213 ;CC the first record indicates previous characteristics 213 214 ;CC after control with the present run, we read : 214 215 ;CC - prognostic variables on the second record -
trunk/SRC/ReadWrite/scanctl.pro
r130 r136 146 146 ;------------------------ 147 147 ; initial date: y0, m0, d0, h0, mn0 148 ; -> julian day of IDL: julady(m0, d0, y0, h0, mn0, 00)148 ; -> Julian day of IDL: julday(m0, d0, y0, h0, mn0, 00) 149 149 ;------------------------ 150 150 t0 = timedef[3] … … 197 197 ENDCASE 198 198 ;------------------------ 199 ; increment date and definition of the calendar with IDL julian days199 ; increment date and definition of the calendar with IDL Julian days 200 200 ;------------------------ 201 201 tstep = timedef[4] … … 241 241 files = strsplit(files,/extract) 242 242 if n_elements(files) NE 2 then begin 243 print, 'Bad definition of the filename. There shou d be 2 elements:'243 print, 'Bad definition of the filename. There should be 2 elements:' 244 244 print, 'DEST and 1 filename (that may define many files)' 245 245 stop -
trunk/SRC/ReadWrite/scanoasis.pro
r130 r136 8 8 ; @categories know what is inside 9 9 ; 10 ; @param filename {in}{required} the file name 10 ; @param filename {in}{required} 11 ; the file name 11 12 ; 12 ; @restrictions List the variable names included in a Oasis file 13 ; @restrictions 14 ; List the variable names included in a Oasis file 13 15 ; 14 16 ; @examples -
trunk/SRC/ReadWrite/write_oasis.pro
r130 r136 7 7 ; write an Oasis file (version < 2.5) 8 8 ; 9 ; @param filename {in}{required} the filename 10 ; @param varname {in}{required} the name of the variable to be written 11 ; @param z2d {in}{required} the variable (2D array) to be written 9 ; @param filename {in}{required} 10 ; the filename 11 ; 12 ; @param varname {in}{required} 13 ; the name of the variable to be written 14 ; 15 ; @param z2d {in}{required} 16 ; the variable (2D array) to be written 12 17 ; 13 18 ; @keyword I2 … … 17 22 ; to change the default format (R8) of the data to be written. 18 23 ; 19 ; @keyword APPEND to open the file with the file pointer at the end of 20 ; the file, ready for data to be appended. 24 ; @keyword APPEND 25 ; to open the file with the file pointer at the end of the file, ready for 26 ; data to be appended. 21 27 ; 22 ; 23 ; @restrictions varname is automatically written as a "charactere*8"24 ; 28 ; @restrictions 29 ; varname is automatically written as a "character*8" 30 ; by default z2d is written as an R8 array 25 31 ; 26 32 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) -
trunk/SRC/ReadWrite/writebat.pro
r130 r136 9 9 ; @categories for OPA 10 10 ; 11 ; @param zbat {in}{required} the bathymetry, a 2d array 12 ; @param filename {in}{required} a string containing the filename, 11 ; @param zbat {in}{required} 12 ; the bathymetry, a 2d array 13 ; 14 ; @param filename {in}{required} 15 ; a string containing the filename 13 16 ; 14 17 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) … … 24 27 ; basic checks 25 28 IF n_params() NE 2 THEN BEGIN 26 print, 'bad number of a guments in the call of writebat'29 print, 'bad number of arguments in the call of writebat' 27 30 return 28 31 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.