[webservices] Unreadable file format for miniseed data from web services
Bruce Weertman
bruce at iris.washington.edu
Tue Feb 15 20:10:41 PST 2011
Alessia:
Could this be a problem with the merged data quality indicator in the miniseed. It defaults to "M" in ws-dataselect and ws-bulkdataselect.
Have you tried using "Q" or "R" or "D" which have been around for longer?
For example:
Try data from this query:
http://www.iris.edu/ws/dataselect/query?net=IU&sta=ANMO&loc=00&cha=BHZ&start=2010-02-27T06.30.00&end=2010-02-27T10.30.00&quality=Q&ref=direct
If that works, then the problem is mostly likely with incompatibility in qmerge - it can't handle the newer values.
BTW:
Here's an undocumented trick that you can do with the dataselect webservice
set ref=token instead of direct, get the token back and then pass it to the undocumented ws-msi webservice
(msi = miniseed inspector)
For example here's a sequence:
http://www.iris.edu/ws/dataselect/query?net=IU&sta=ANMO&loc=00&cha=BHZ&start=2010-02-27T06.30.00&end=2010-02-27T10.30.00&quality=Q&ref=token
this returns:
dataselect.1032b7cfd25a64e4d8d15cf019d1d056
Then pass that to msi like this:
http://www.iris.edu/ws/msi/query?token=dataselect.1032b7cfd25a64e4d8d15cf019d1d056
you can set the information level to 0, 1 or 2 like this:
http://www.iris.edu/ws/msi/query?token=dataselect.1032b7cfd25a64e4d8d15cf019d1d056&level=2
Cheers,
-Bruce
On Feb 15, 2011, at 8:38 AM, Alessia Maggi wrote:
> Dear Webservices people,
>
> I am having difficulty reading the miniseed files obtained through webservices. I have tried several methods of obtaining the data, from straight http requests, to the Perl client scripts, to wget requests on the bulkdataselect service...
>
> Every time, the miniseed files are incorrectly formatted, so qmerge and sdrsplit refuse to work:
>
> e.g.
>
> alessia at makalu:~$ qmerge -nv IU.ANMO.00.BHZ.2010.058.06.30.00.000-2010.058.10.30.00.000.miniseed
> Error: unrecognizable input file IU.ANMO.00.BHZ.2010.058.06.30.00.000-2010.058.10.30.00.000.miniseed
>
> alessia at makalu:~$ sdrsplit -C IU.ANMO.00.BHZ.2010.058.06.30.00.000-2010.058.10.30.00.000.miniseed
> unknown header type: -1
>
> The files have an integer number of 4096 byte blocs, and seem to start with somewhat correct blocs (as far as I can tell using od -c)...
>
> Do you have any ideas? Any help would be gratefully received!
>
> Alessia
>
> PS: I attach an example of a miniseed file obtained by clicking on the following url from the http://www.iris.edu/ws/dataselect/ webpage
>
> http://www.iris.edu/ws/dataselect/query?net=IU&sta=ANMO&loc=00&cha=BHZ&start=2010-02-27T06:30:00.000&end=2010-02-27T10:30:00.000
>
>
>
>
> <IU-1.ANMO.00.BHZ.2010.058.06.30.00.000-2010.058.10.30.00.000.miniseed>_______________________________________________
> webservices mailing list
> webservices at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/webservices
More information about the webservices
mailing list