Changeset 121 for trunk


Ignore:
Timestamp:
09/11/08 16:25:54 (16 years ago)
Author:
ericg
Message:

mask value now correct when scale_factor is present in netCDF file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/nc_read.pro

    r117 r121  
    6161 
    6262   IF debug_w THEN print, '     ' 
    63    IF debug_w AND $ 
    64     keyword_set(boxzoom) THEN print,  '    boxzoom=', boxzoom 
     63   IF debug_w AND keyword_set(boxzoom) THEN print,  '    boxzoom=', boxzoom 
    6564   IF debug_w THEN print,  '    firstxt,firstyt,firstzt=', firstxt, firstyt, firstzt 
    6665   IF debug_w THEN print,  '    lastxt,lastyt,lastzt=', firstxt, firstyt, firstzt    
     
    8988 
    9089; replace NaN with valmask 
    91    idx_t = where (~finite(field.data)) 
    92    IF idx_t[0] NE -1 THEN field.data(idx_t) = valmask 
     90;   idx_t = where (~finite(field.data)) 
     91;   IF idx_t(0) NE -1 THEN field.data(idx_t) = valmask 
    9392 
    9493; get valmask (might need valmask = float(string(valmask)) 
     
    105104      ENDIF 
    106105   ENDIF 
     106 
     107   IF debug_w THEN print, '     valmask=',valmask  
    107108 
    108109; if pseudo 3d mask, read mask file and set masked points to valmask 
Note: See TracChangeset for help on using the changeset viewer.