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

bugfix tvplus + roms + xxx

Location:
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.