Changeset 181 for trunk/SRC/ToBeReviewed


Ignore:
Timestamp:
09/15/06 10:24:36 (18 years ago)
Author:
smasson
Message:

bugfix tvplus + roms + xxx

Location:
trunk/SRC/ToBeReviewed
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro

    r174 r181  
    561561      ncdf_attget, cdfid, 'hc', hc, /global 
    562562; look for all variables names 
    563       allvarnames = strarr(varcontient.nvars) 
    564       FOR i = 0, varcontient.nvars-1 DO BEGIN 
     563      allvarnames = strarr(contient.nvars) 
     564      FOR i = 0, contient.nvars-1 DO BEGIN 
    565565        tmp = ncdf_varinq( cdfid, i) 
    566566        allvarnames[i] = tmp.name 
     
    568568      CASE 1 OF 
    569569        keyword_set(hfilename):  $ 
    570            hroms = read_ncdf('h', 0, 0, FILENAME = hfile $ 
     570           hroms = read_ncdf('h', 0, 0, FILENAME = hfilename $ 
    571571                             , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
    572572                             , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 
     
    583583                            , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
    584584                            , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 
    585         (where(allvarnames EQ 'h'))[0] NE -1: $ 
     585        (where(allvarnames EQ 'zeta'))[0] NE -1: $ 
    586586           zeta = read_ncdf('zeta', firsttps, lasttps, FILENAME = filename $ 
    587587                            , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltv.pro

    r163 r181  
    127127;------------------------------------------------------------ 
    128128  determineminmax, z2d, msk, truemin, truemax, MININ = min, MAXIN = max, NAN = nan 
     129  z2d = min > temporary(z2d) < max 
    129130;------------------------------------------------------------ 
    130131; apply other keywords (nointerp, c_nan, c_mask)  
     
    132133  IF NOT keyword_set(nointerp) THEN BEGIN 
    133134; interpolation between bottom and bottom+ncolors-1 
    134     m = 1.*(ncolors-1)/(truemax-truemin) 
    135     p = bottom - 1.*truemin*m 
     135    m = 1.*(ncolors-1)/(max-min) 
     136    p = bottom - 1.*min*m 
    136137    z2d = m * temporary(z2d) + p 
    137138  ENDIF 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro

    r150 r181  
    6464; add the arguments and keywords if necessary 
    6565  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 
    6770  ENDIF 
    6871 
    6972  IF strmid(listing, 0, 1) NE '@' THEN listing = listing + ', strcalling = ''' + meshfilein + ''', _extra = ex' 
     73 
     74print, listing 
     75 
    7076 
    7177  createpro, listing, filename = myuniquetmpdir +'for_createpro.pro', _extra = ex 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro

    r172 r181  
    231231        dummy = report('the file '+fullname+' has no time axis.!C we create a fake calendar ...') 
    232232        fakecal = 1 
    233         time = date0fk + lindgen(jpt) 
     233        time = date0fk + lindgen(1>jpt) 
    234234      END 
    235235      invar.natts EQ 0:BEGIN  
    236236        dummy = report('the variable '+invar.name+' has no attribut.!C we create a fake calendar ...') 
    237237        fakecal = 1 
    238         time = date0fk + lindgen(jpt) 
     238        time = date0fk + lindgen(1>jpt) 
    239239      END 
    240240      ELSE:BEGIN 
     
    247247          dummy = report('Attribut ''units'' not found for the variable '+invar.name+'!C we create a fake calendar ...') 
    248248          fakecal = 1 
    249           time = date0fk + lindgen(jpt) 
     249          time = date0fk + lindgen(1>jpt) 
    250250        ENDIF ELSE BEGIN  
    251251; we read the time axis 
     
    271271            dummy = report('attribut units of time has not the good format: [^ ]* since ([0-9]){4}-([0-9]){2}-([0-9]){2}.*') 
    272272            fakecal = 1 
    273             time = date0fk + lindgen(jpt) 
     273            time = date0fk + lindgen(1>jpt) 
    274274          ENDIF ELSE BEGIN  
    275275            debut = str_sep(mots[2], '-') 
     
    325325            IF max(histogram([long(time-time[0])])) GT 1 THEN fakecal = 1 ELSE fakecal = 0 
    326326            date0fk = date2jul(19000101) 
    327             IF keyword_set(fakecal) THEN time = date0fk+lindgen(jpt) $ 
     327            IF keyword_set(fakecal) THEN time = date0fk+lindgen(1>jpt) $ 
    328328            ELSE time = long(time) 
    329329; 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro

    r157 r181  
    258258  based = widget_base(base, /row, /align_center, uname = 'arg base', sensitive = 0) 
    259259  dummyid = widget_label(based, value = 'procedure arguments') 
    260   agrbase = widget_text(based, value = '', uvalue = {name:'argtxt'} $ 
     260  argbase = widget_text(based, value = '', uvalue = {name:'argtxt'} $ 
    261261                        , uname = 'argtxt', xsize = 45, /EDITABLE) 
    262262; keyword informations 
Note: See TracChangeset for help on using the changeset viewer.