Thread: null returns from fdsnws-station service

Started: 2014-09-11 14:16:58
Last activity: 2014-09-11 15:24:44
Topics: Web Services
Matthew.Hoyles@ga.gov.au
2014-09-11 14:16:58
Hello iris webservices,

Some of our queries to the fdsnws station service are returning nothing. This only happens for certain stations and certain time periods, and with matchtimeseries=TRUE.

For example this returns nothing:
http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-10T09%3A47%3A11&sta=BJT&level=chan&matchtimeseries=TRUE&net=IC&start=2014-09-10T09%3A27%3A11

But this (without the matchtimeseries=TRUE) returns XML:
http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-10T09%3A47%3A11&sta=BJT&level=chan&net=IC&start=2014-09-10T09%3A27%3A11

As does this (with matchtimeseries=TRUE, but 3 days earlier):
http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-07T09%3A47%3A11&sta=BJT&level=chan&matchtimeseries=TRUE&net=IC&start=2014-09-07T09%3A27%3A11

Does this lack of results mean that none of the channels have data for the time period selected? Is this a bug or expected behaviour?

Regards,
Matthew

Matthew Hoyles
Senior Software Developer | Software Development and Support
ICT Innovation and Services | GEOSCIENCE AUSTRALIA
____________________________________________________________
Phone: +61 2 6249 9890 Fax: +61 2 6249 9999
Email: Matthew.Hoyles<at>ga.gov.au Web: www.ga.gov.auhttp://www.ga.gov.au/
Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT
GPO Box 378 Canberra ACT 2601 Australia
Applying geoscience to Australia's most important challenges


Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.
-------------------------------------------------------------------------------------------------------------------------


  • Philip Crotwell
    2014-09-11 15:24:44
    Hi

    If you are querying the web services programmatically instead of
    within a web browser, then you have to check the return code. The
    default for the fdsn web services is to return a 204 status code for
    queries that return no data.

    You might try adding nodata=404 to your queries, at least for testing
    purposes in the browser. Unfortunately, 204 tells the browser "don't
    update the current display", so it looks like nothing happened. Not
    the best choice IMHO. A 205 would have been better as it would have at
    least caused a page refresh, but it is what it is.

    Philip

    On Thu, Sep 11, 2014 at 3:16 AM, <Matthew.Hoyles<at>ga.gov.au> wrote:
    Hello iris webservices,



    Some of our queries to the fdsnws station service are returning nothing.
    This only happens for certain stations and certain time periods, and with
    matchtimeseries=TRUE.



    For example this returns nothing:

    http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-10T09%3A47%3A11&sta=BJT&level=chan&matchtimeseries=TRUE&net=IC&start=2014-09-10T09%3A27%3A11



    But this (without the matchtimeseries=TRUE) returns XML:

    http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-10T09%3A47%3A11&sta=BJT&level=chan&net=IC&start=2014-09-10T09%3A27%3A11



    As does this (with matchtimeseries=TRUE, but 3 days earlier):

    http://service.iris.edu/fdsnws/station/1/query?loc=00&end=2014-09-07T09%3A47%3A11&sta=BJT&level=chan&matchtimeseries=TRUE&net=IC&start=2014-09-07T09%3A27%3A11



    Does this lack of results mean that none of the channels have data for the
    time period selected? Is this a bug or expected behaviour?



    Regards,

    Matthew



    Matthew Hoyles
    Senior Software Developer | Software Development and Support

    ICT Innovation and Services | GEOSCIENCE AUSTRALIA

    ____________________________________________________________

    Phone: +61 2 6249 9890 Fax: +61 2 6249 9999

    Email: Matthew.Hoyles<at>ga.gov.au Web: www.ga.gov.au

    Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT

    GPO Box 378 Canberra ACT 2601 Australia

    Applying geoscience to Australia’s most important challenges



    Geoscience Australia Disclaimer: This e-mail (and files transmitted with it)
    is intended only for the person or entity to which it is addressed. If you
    are not the intended recipient, then you have received this e-mail by
    mistake and any use, dissemination, forwarding, printing or copying of this
    e-mail and its file attachments is prohibited. The security of emails
    transmitted cannot be guaranteed; by forwarding or replying to this email,
    you acknowledge and accept these risks.
    -------------------------------------------------------------------------------------------------------------------------


    _______________________________________________
    webservices mailing list
    webservices<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/webservices



08:54:41 v.01697673