" File "/Users/dfee/repos/rtm/rtm/grid.py", line 441, in grid_search
tr.stats.starttime = tr.stats.starttime - time_shift.data
File "/Users/dfee/anaconda/envs/rtm/lib/python3.7/site-packages/obspy/core/utcdatetime.py", line 946, in sub
return UTCDateTime(ns=self._ns - int(round(value * 1e9)))
ValueError: cannot convert float NaN to integer"
What do we want to do about bad data in the DEMs? I think setting them to zero might be ok, or we could just skip/zero out that trace during the stacking process. Negative values (underwater) also need to be taken accounted for, although they can probably just be set to zero.
Nan's in the travel time removal causes an error:
" File "/Users/dfee/repos/rtm/rtm/grid.py", line 441, in grid_search tr.stats.starttime = tr.stats.starttime - time_shift.data
File "/Users/dfee/anaconda/envs/rtm/lib/python3.7/site-packages/obspy/core/utcdatetime.py", line 946, in sub return UTCDateTime(ns=self._ns - int(round(value * 1e9)))
ValueError: cannot convert float NaN to integer"
What do we want to do about bad data in the DEMs? I think setting them to zero might be ok, or we could just skip/zero out that trace during the stacking process. Negative values (underwater) also need to be taken accounted for, although they can probably just be set to zero.