Changeset 130 for trunk/SRC/ReadWrite/ncdf_timeget.pro
- Timestamp:
- 07/06/06 16:48:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ReadWrite/ncdf_timeget.pro
- Property svn:eol-style deleted
- Property svn:executable deleted
- Property svn:keywords changed from Author Date Id Revision to Id
r114 r130 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; @file_comments get the time axis fom a netcdf_file and transforms it in 5 ; @file_comments 6 ; get the time axis fom a netcdf_file and transforms it in 6 7 ; julian days of IDL. 7 8 ; 8 9 ; @categories reading ncdf_file 9 10 ; 10 ; @param cdfid {in}{required} the ID of the ncdf_file, which is already open11 ; @param timeid {in}{required} the ID or the name of the variable which describe the calendar11 ; @param cdfid {in}{required} 12 ; the ID of the ncdf_file, which is already open 12 13 ; 13 ; @ keyword /YYYYMMDD active to obtain the date as a longinterger with14 ; the format YearYearYearYearMonthMonthDayDay14 ; @param timeid {in}{required} 15 ; the ID or the name of the variable which describe the calendar 15 16 ; 16 ; @file_comments the keyword parameters of ncdf_varget 17 ; @keyword YYYYMMDD 18 ; active to obtain the date as a longinterger with 19 ; the format YearYearYearYearMonthMonthDayDay 17 20 ; 18 ; @returns a long array of IDL julian days 21 ; @keyword _EXTRA 22 ; the keyword parameters of ncdf_varget 19 23 ; 20 ; @restrictions the calendar variable must have the units attribute 24 ; @returns 25 ; a long array of IDL julian days 26 ; 27 ; @restrictions 28 ; the calendar variable must have the units attribute 21 29 ; following the syntaxe bellow: 22 30 ; … … 29 37 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 30 38 ; June 2001 39 ; @version $Id$ 31 40 ;- 32 41 ;------------------------------------------------------------ 33 42 ;------------------------------------------------------------ 34 43 ;------------------------------------------------------------ 35 FUNCTION ncdf_timeget, cdfid, timeid, YYYYMMDD = yyyymmdd, _ extra= ex44 FUNCTION ncdf_timeget, cdfid, timeid, YYYYMMDD = yyyymmdd, _EXTRA = ex 36 45 ; 37 46 compile_opt idl2, strictarrsubs … … 62 71 'hours':time = julday(start[1], start[2], start[0])+time/long(24) 63 72 'days':time = julday(start[1], start[2], start[0])+time 64 'months':BEGIN 73 'months':BEGIN 65 74 for t = 0, n_elements(time)-1 do begin 66 75 time[t] = julday(start[1]+time[t], start[2], start[0])
Note: See TracChangeset
for help on using the changeset viewer.