Changeset 883 for SHX/trunk


Ignore:
Timestamp:
11/29/12 11:28:33 (8 years ago)
Author:
marcus
Message:
  • replace NaN when dividing traces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/commands/connect.py

    r769 r883  
    7272            # replace infinite values by zero 
    7373            new_trace.data[np.isinf(new_trace.data)] = 0 
     74            # replace NaNs 
     75            new_trace.data[np.isnan(new_trace.data)] = 0 
    7476        else: 
    7577            raise ShxError("Unsupport connect method: %s" % mode, status=1712) 
Note: See TracChangeset for help on using the changeset viewer.