Changeset 181 for trunk/SRC/ToBeReviewed
- Timestamp:
- 09/15/06 10:24:36 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
r174 r181 561 561 ncdf_attget, cdfid, 'hc', hc, /global 562 562 ; look for all variables names 563 allvarnames = strarr( varcontient.nvars)564 FOR i = 0, varcontient.nvars-1 DO BEGIN563 allvarnames = strarr(contient.nvars) 564 FOR i = 0, contient.nvars-1 DO BEGIN 565 565 tmp = ncdf_varinq( cdfid, i) 566 566 allvarnames[i] = tmp.name … … 568 568 CASE 1 OF 569 569 keyword_set(hfilename): $ 570 hroms = read_ncdf('h', 0, 0, FILENAME = hfile $570 hroms = read_ncdf('h', 0, 0, FILENAME = hfilename $ 571 571 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 572 572 , GRID = vargrid, /CALLITSELF, _EXTRA = ex) … … 583 583 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 584 584 , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 585 (where(allvarnames EQ ' h'))[0] NE -1: $585 (where(allvarnames EQ 'zeta'))[0] NE -1: $ 586 586 zeta = read_ncdf('zeta', firsttps, lasttps, FILENAME = filename $ 587 587 , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltv.pro
r163 r181 127 127 ;------------------------------------------------------------ 128 128 determineminmax, z2d, msk, truemin, truemax, MININ = min, MAXIN = max, NAN = nan 129 z2d = min > temporary(z2d) < max 129 130 ;------------------------------------------------------------ 130 131 ; apply other keywords (nointerp, c_nan, c_mask) … … 132 133 IF NOT keyword_set(nointerp) THEN BEGIN 133 134 ; interpolation between bottom and bottom+ncolors-1 134 m = 1.*(ncolors-1)/( truemax-truemin)135 p = bottom - 1.* truemin*m135 m = 1.*(ncolors-1)/(max-min) 136 p = bottom - 1.*min*m 136 137 z2d = m * temporary(z2d) + p 137 138 ENDIF -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro
r150 r181 64 64 ; add the arguments and keywords if necessary 65 65 IF n_elements(meshfile) GT 1 AND strmid(listing, 0, 1) NE '@' THEN BEGIN 66 FOR i = 1+(filepro NE 'NOT FOUND'), n_elements(meshfile)-1 DO listing = listing + ', ' + meshfile[i] 66 FOR i = 1, n_elements(meshfile)-1 DO BEGIN 67 IF strpos(meshfile[i], '.') NE -1 THEN str = isnumber(meshfile[i]) ELSE str = createfunc('n_elements('+meshfile[i]+')') 68 IF str EQ 0 THEN listing = listing + ', ''' + meshfile[i] + '''' ELSE listing = listing + ', ' + meshfile[i] 69 ENDFOR 67 70 ENDIF 68 71 69 72 IF strmid(listing, 0, 1) NE '@' THEN listing = listing + ', strcalling = ''' + meshfilein + ''', _extra = ex' 73 74 print, listing 75 70 76 71 77 createpro, listing, filename = myuniquetmpdir +'for_createpro.pro', _extra = ex -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro
r172 r181 231 231 dummy = report('the file '+fullname+' has no time axis.!C we create a fake calendar ...') 232 232 fakecal = 1 233 time = date0fk + lindgen( jpt)233 time = date0fk + lindgen(1>jpt) 234 234 END 235 235 invar.natts EQ 0:BEGIN 236 236 dummy = report('the variable '+invar.name+' has no attribut.!C we create a fake calendar ...') 237 237 fakecal = 1 238 time = date0fk + lindgen( jpt)238 time = date0fk + lindgen(1>jpt) 239 239 END 240 240 ELSE:BEGIN … … 247 247 dummy = report('Attribut ''units'' not found for the variable '+invar.name+'!C we create a fake calendar ...') 248 248 fakecal = 1 249 time = date0fk + lindgen( jpt)249 time = date0fk + lindgen(1>jpt) 250 250 ENDIF ELSE BEGIN 251 251 ; we read the time axis … … 271 271 dummy = report('attribut units of time has not the good format: [^ ]* since ([0-9]){4}-([0-9]){2}-([0-9]){2}.*') 272 272 fakecal = 1 273 time = date0fk + lindgen( jpt)273 time = date0fk + lindgen(1>jpt) 274 274 ENDIF ELSE BEGIN 275 275 debut = str_sep(mots[2], '-') … … 325 325 IF max(histogram([long(time-time[0])])) GT 1 THEN fakecal = 1 ELSE fakecal = 0 326 326 date0fk = date2jul(19000101) 327 IF keyword_set(fakecal) THEN time = date0fk+lindgen( jpt) $327 IF keyword_set(fakecal) THEN time = date0fk+lindgen(1>jpt) $ 328 328 ELSE time = long(time) 329 329 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r157 r181 258 258 based = widget_base(base, /row, /align_center, uname = 'arg base', sensitive = 0) 259 259 dummyid = widget_label(based, value = 'procedure arguments') 260 a grbase = widget_text(based, value = '', uvalue = {name:'argtxt'} $260 argbase = widget_text(based, value = '', uvalue = {name:'argtxt'} $ 261 261 , uname = 'argtxt', xsize = 45, /EDITABLE) 262 262 ; keyword informations
Note: See TracChangeset
for help on using the changeset viewer.