Ignore:
Timestamp:
09/11/06 09:11:26 (18 years ago)
Author:
smasson
Message:

bugfix + manage roms outputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/GRILLE/grille.pro

    r163 r172  
    111111;------------------------------------------------------------ 
    112112;------------------------------------------------------------ 
    113 pro grille, mask, glam, gphi, gdep, nx, ny, nz, firstx, firsty, firstz, lastx, lasty, lastz, e1, e2, e3, TRI = tri, NOTRI = notri, TOUT = tout, FORPLT = forplt, IFPLTZ = ifpltz, WDEPTH = wdepth, _EXTRA = ex 
     113pro grille, mask, glam, gphi, gdep, nx, ny, nz, firstx, firsty, firstz, lastx, lasty, lastz, e1, e2, e3, TRI = tri, NOTRI = notri, TOUT = tout, FORPLT = forplt, TYPE = type, WDEPTH = wdepth, _EXTRA = ex 
    114114;------------------------------------------------------------ 
    115115; include commons 
     
    119119@cm_4mesh 
    120120@cm_4data 
     121@cm_4cal ; for jpt 
    121122  IF NOT keyword_set(key_forgetold) THEN BEGIN 
    122123@updatenew 
     
    354355  ENDELSE 
    355356; for the vertical sections with partial steps 
    356   IF keyword_set(ifpltz) AND keyword_set(key_partialstep) THEN BEGIN 
     357  IF keyword_set(type) AND keyword_set(key_partialstep) THEN BEGIN 
    357358    CASE 1 OF 
    358       ifpltz EQ 'xz' AND ny EQ 1:BEGIN 
     359      type EQ 'xz' AND ny EQ 1:BEGIN 
    359360        bottom = total(tmask[firstx:lastx, firsty:lasty, firstz:lastz], 3) 
    360361        good = where(bottom NE 0 AND bottom NE nz+keyword_set(wdepth)) 
     
    370371        ENDIF 
    371372      END 
    372       ifpltz EQ 'yz' AND nx EQ 1:BEGIN 
     373      type EQ 'yz' AND nx EQ 1:BEGIN 
    373374        bottom = total(tmask[firstx:lastx, firsty:lasty, firstz:lastz], 3) 
    374375        good = where(bottom NE 0 AND bottom NE nz+keyword_set(wdepth)) 
     
    387388    ENDCASE 
    388389  ENDIF 
     390; for the vertical sections with roms 
     391  IF keyword_set(type) AND n_elements(romszinfos) NE 0 THEN BEGIN 
     392    romsdp = romsdepth() 
     393    IF romsdp[0] NE -1 THEN BEGIN  
     394      IF jpt EQ 1 THEN BEGIN 
     395        CASE type OF 
     396          'z':gdep = moyenne(temporary(romsdp), 'xy') 
     397          'xz':gdep = moyenne(temporary(romsdp), 'y') 
     398          'yz':gdep = moyenne(temporary(romsdp), 'x') 
     399          'zt':gdep = moyenne(temporary(romsdp), 'xy') 
     400          ELSE: 
     401        ENDCASE 
     402      ENDIF ELSE BEGIN  
     403        CASE type OF 
     404          'z':gdep = moyenne(temporary(romsdp), 'xyt') 
     405          'xz':gdep = grossemoyenne(temporary(romsdp), 'yt') 
     406          'yz':gdep = grossemoyenne(temporary(romsdp), 'xt') 
     407          'zt':gdep = grossemoyenne(temporary(romsdp), 'xy') 
     408          ELSE: 
     409        ENDCASE 
     410      ENDELSE 
     411      IF size(gdep, /n_dimensions) EQ 2 THEN $ 
     412         gdep = remplit(gdep, niter = 32000, mask = gdep LT 1.E19, /basique, /fillxdir) 
     413    ENDIF 
     414  ENDIF 
     415; 
    389416  IF testvar(var = key_performance) EQ 2 THEN $ 
    390417    print, 'temps grille: Variables se rapportant a la dimension verticale ', systime(1)-tempdeux 
Note: See TracChangeset for help on using the changeset viewer.