Changeset 508 for trunk


Ignore:
Timestamp:
06/02/17 21:22:28 (7 years ago)
Author:
smasson
Message:

minor improvments

Location:
trunk/SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/INIT/initncdf.pro

    r495 r508  
    7474PRO initncdf, ncfilein $ 
    7575              , ZAXISNAME=zaxisname, START1=start1 $ 
    76               , XYINDEX=xyindex, ZINDEX=zindex $ 
     76              , XYINDEX=xyindex, ZINDEX=zindex, ABSZ = absz $ 
    7777              , _EXTRA=ex 
    7878; 
     
    134134  IF keyword_set(zindex) AND keyword_set(zaxis) THEN $ 
    135135     zaxis = keyword_set(start1) + findgen(n_elements(zaxis)) 
     136  IF keyword_set(absz) AND n_elements(zaxis) NE 0 THEN zaxis = abs(zaxis) 
    136137;---------------------------------------------------------- 
    137138; mask 
  • trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro

    r501 r508  
    120120                    , GRID = grid, CALLITSELF = callitself, DIREC = direc $ 
    121121                    , ZETAFILENAME = zetafilename, ZETAZERO = zetazero $ 
    122                     , ZINVAR = zinvar, ISROMS = isroms, _EXTRA = ex 
     122                    , ZINVAR = zinvar, ISROMS = isroms, NOTROMS3D = notroms3d, _EXTRA = ex 
    123123; 
    124124  compile_opt idl2, strictarrsubs 
     
    405405;--------------------------------------------------------------------- 
    406406; if it is roms outputs, we need to get additional infos... 
    407   IF NOT keyword_set(callitself) THEN BEGIN 
     407  IF NOT ( keyword_set(callitself) OR keyword_set(notroms3d) ) THEN BEGIN 
    408408    IF (strmid(dimnames[0], 0, 3) EQ 'xi_' AND strmid(dimnames[1], 0, 4) EQ 'eta_') OR keyword_set(isroms) THEN BEGIN 
    409409      ncdf_attget, cdfid, 'theta_s', theta_s, /global 
  • trunk/SRC/Utilities/linearequation.pro

    r371 r508  
    4646; 
    4747 
    48    if size(point1, /type) EQ 6 OR size(point1, /type) EQ 9 then begin 
    49       x1 = float(point1) 
    50       y1 = imaginary(point1) 
    51    ENDIF ELSE BEGIN 
     48  if size(point1, /type) EQ 6 OR size(point1, /type) EQ 9 then begin 
     49    x1 = real_part(point1) 
     50    y1 = imaginary(point1) 
     51  ENDIF ELSE BEGIN 
     52    if size(point1, /type) EQ 5 then begin 
     53      x1 = double(reform(point1[0, *])) 
     54      y1 = double(reform(point1[1, *])) 
     55    ENDIF ELSE BEGIN 
    5256      x1 = float(reform(point1[0, *])) 
    5357      y1 = float(reform(point1[1, *])) 
    54    ENDELSE 
    55  
    56    if size(point2, /type) EQ 6 OR size(point2, /type) EQ 9 then begin 
    57       x2 = float(point2) 
    58       y2 = imaginary(point2) 
    59    ENDIF ELSE BEGIN 
     58    ENDELSE 
     59  ENDELSE 
     60   
     61  if size(point2, /type) EQ 6 OR size(point2, /type) EQ 9 then begin 
     62    x2 = real_part(point2) 
     63    y2 = imaginary(point2) 
     64  ENDIF ELSE BEGIN 
     65    if size(point2, /type) EQ 5 then begin 
     66      x2 = double(reform(point2[0, *])) 
     67      y2 = double(reform(point2[1, *])) 
     68    ENDIF ELSE BEGIN 
    6069      x2 = float(reform(point2[0, *])) 
    6170      y2 = float(reform(point2[1, *])) 
    62    ENDELSE 
    63  
     71    ENDELSE 
     72  ENDELSE 
     73   
    6474   vertical = where(x1 EQ x2) 
    6575   novertical = where(x1 NE x2) 
Note: See TracChangeset for help on using the changeset viewer.