Closed tclements closed 4 years ago
I'll note this is a feature request, rather than a bug!
I promise I'll work on this, but it might be awhile. I'm still working on a reader for Silixa's TDMS (which may or may not be a variant on standard TDMS), and looking into GPU SeisIO. I also need to implement Dylan's instrument deconvolution.
There's more to it than that string, though. If that was the only change required, this would work:
s = "2016-06-23T00:00:00"
t = "2016-06-23T01:00:00"
S = get_data("FDSN","YW.1002..DPZ",s=s,t=t,src="http://service.iris.edu/ph5ws/",v=2,opts="reqtype=fdsn")
Yet that code returns 500 (Internal Server Error)
on the timeseries query.
I could add an internal function for PH5WS requests, but it seems like IRIS wants PH5 query syntax to be interchangeable with FDSN. So it might be best to email IRIS about differences between PH5WS and FDSNWS with HTTP POST methods.
Okay, thanks for the tip on opts. I can talk to IRIS and try to write up a PR on this today.
After some digging, PH5 POST requests need to be made in this format
reqtype=FDSN
format=mseed
YW 1002 -- DPZ 2016-06-23T00:00:00 2016-06-23T01:00:00
the only changes required are the ordering of reqtype
& format
plus it looks like --
is needed when the location is empty.
Working on a solution for this right now.
I'm trying to download data from the IRIS DMC PH5WS dataselect Web Service (https://service.iris.edu/ph5ws/dataselect/1/).
Request data from PH5WS:
Station request works well. I believe dataselect is failing because a
reqtype
of[fdsn shot, receiver]
is required in PH5 queries. For now, it seems addingreqtype=fdsn
would allow for PH5 queries but shot and receiver queries might require some more work/different syntax.Here is the working request url:
https://service.iris.edu/ph5ws/dataselect/1/query?reqtype=fdsn&format=mseed&net=YW&sta=1002&cha=DPZ&starttime=2016-06-23T00:00:00&endtime=2016-06-23T01:00:00&nodata=404