- Timestamp:
- 07/23/09 10:48:16 (15 years ago)
- Location:
- trunk/SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Postscript/printps.pro
r397 r401 267 267 ;------------------------------------------------------------ 268 268 nameps = find(nameps+'{.ps,}{.gz,}', iodir = psdir, /nopro) 269 nameps = nameps[0] 269 270 IF nameps EQ 'NOT FOUND' THEN BEGIN 270 271 ng = report('file '+nameps+'[.ps][.gz] does not exist ') … … 274 275 ; if the file is gzipped we call gunzip and change its name 275 276 IF gzipped NE -1 AND NOT keyword_set(archive) THEN BEGIN 276 spawn, '\gunzip ' + nameps277 spawn, '\gunzip -f ' + nameps 277 278 nameps = strmid(nameps, 0, gzipped) 278 279 ENDIF -
trunk/SRC/ReadWrite/ncdf_gettime.pro
r396 r401 25 25 ; procedure. It can be only '<pro>read_ncdf</pro>' or '<pro>scanfile</pro>'. 26 26 ; 27 ; 28 ; @keyword CALTYPE 29 ; Used to specify (or orverwrite) the type of calendar that should be 30 ; used. We accept only 'noleap', '360d', 'greg' and 'gregorian'. By 31 ; default, we use the type of calendar defied in the attibute 32 ; calendar. if not, we define it as gregorian. 33 ; 27 34 ; @keyword ERR 28 35 ; Set this keyword to a named variable in which the value of the error … … 53 60 ; $Id$ 54 61 ;- 55 FUNCTION ncdf_gettime, filename, cdfid $62 FUNCTION ncdf_gettime, filename, cdfid, CALTYPE = caltype $ 56 63 , TIMEVAR = timevar, CALLER = caller, ERR = err, _EXTRA = ex 57 64 ; … … 140 147 ; 141 148 ncdf_getatt, cdfid, timeid, calendar = calendar, units = value 149 IF keyword_set(caltype) THEN calendar = strlowcase(caltype) 142 150 CASE calendar OF 143 151 'noleap':key_caltype = 'noleap' 144 152 '360d':key_caltype = '360d' 145 153 'greg':key_caltype = 'greg' 154 'gregorian':key_caltype = 'greg' 155 ELSE:BEGIN 156 dummy = report( ['unknow calendar type: '+calendar, 'we use gregorian calendar'] ) 157 key_caltype = 'greg' 158 END 146 159 ENDCASE 147 160 ;----------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.