Closed martinvandriel closed 8 years ago
well, probably some more things in the interface changed.
What event did you use and does it also happen with the instaseis API?
The USGS files from tides. In the API, there is a test, so I guess you adapted the tests to the new interface but not the GUI? I get a bunch of other errors when I use the GUI with finite sources also when resampling is off. I think these are related to the changes in resampling, source shifting etc.
Yea I guess we just need to adjust settings in the GUI. I'll have a look at it next week. If somebody feels like it we should also write tests for the GUI ;-)
Maybe a related problem with a USGS param file for the Okhotsk earthquake: [http://earthquake.usgs.gov/archive/product/finite-fault/usb000h4jh/us/1429394102320/web1/b000h4jh.param]
src = instaseis.FiniteSource.from_usgs_param_file('b000h4jh.param')
for i in range(0, len(names)):
print names[i]
receiver = instaseis.Receiver(
latitude=lat[i], longitude=lon[i], network="AB", station=names[i][3:7])
st = db.get_seismograms_finite_source(sources=src, receiver=receiver, components='Z')
(and yes, I know, the loop is not very pythony...)
ValueError Traceback (most recent call last)
Seems to be related to changes in resampling:
Traceback (most recent call last): File "/home/ex/local/src/instaseis/instaseis/gui/instaseis_gui.py", line 721, in on_update_button_released self.update(force=True) File "/home/ex/local/src/instaseis/instaseis/gui/instaseis_gui.py", line 402, in update progress_callback=get_prog_fct()) File "/home/ex/local/src/instaseis/instaseis/base_instaseis_db.py", line 428, in get_seismograms_finite_source a=kernelwidth, window="blackman") File "/home/ex/local/src/instaseis/instaseis/lanczos.py", line 237, in lanczos_interpolation _validate_parameters(data, old_start, old_dt, new_start, new_dt, new_npts) File "/home/ex/local/src/instaseis/instaseis/lanczos.py", line 68, in _validate_parameters raise ValueError("The new array must be fully contained in the old " ValueError: The new array must be fully contained in the old array. No extrapolation can be performed.