Changeset 17618


Ignore:
Timestamp:
04/01/14 10:40:39 (11 years ago)
Author:
cborstad
Message:

better default fill value for nan's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/processdata.py

    r17617 r17618  
    4141       
    4242        #process NaN's if any
    43         nanfill=options.getfieldvalue('nan',0)
     43        nanfill=options.getfieldvalue('nan',-999)
    4444        if npy.any(npy.isnan(data)):
    4545                data[npy.isnan(data)]=nanfill
    46                 print "WARNING: nan's treated as zeros by default.  Change using pairoption 'nan',nan_fill_value in plotmodel call"
     46                print "WARNING: nan's treated as -999 by default.  Change using pairoption 'nan',nan_fill_value in plotmodel call"
    4747
    4848        #non-patch processing
Note: See TracChangeset for help on using the changeset viewer.