iris-edu / stationxml-validator

GNU General Public License v3.0
16 stars 8 forks source link

Error 403: Compare null unit stages to the response cascade #43

Closed timronan closed 6 years ago

timronan commented 6 years ago

Error 403 is triggering when stages with "null" units are compared to the units of other stages within the response cascade. The preamp stage is comprised of only SEED blockette [58], which is unitless because blockette [58] does not contain a field that defines unit strings. The Nominal Response Library (NRL) is written to define preamp stages by blocklette [58], so every time a NRL response is included in station metadata 403 error will occur upon validation.

This error could be fixed by skipping the 403 test on preamp, "null unit", stages. An exception to error 403 could be made for stages with null units.

Refer to: https://github.com/iris-edu/StationXML-Validator/issues/9

EX1, Refer to stage 2: https://service.iris.edu/fdsnws/station/1/query?net=AV&sta=ILW&cha=SHN&starttime=2016-09-30T01:00:00&level=response&format=xml&includecomments=true&nodata=404

timronan commented 6 years ago

Error 403 triggers because station operators often assign the output unit of a stage a plural and the input unit of the subsequent stage as singular.

https://service.iris.edu/fdsnws/station/1/query?net=HV&sta=HCDH&cha=HNN&starttime=2018-06-01T01:00:00&level=response&format=xml&includecomments=true&nodata=404

This is an error and should lead 403 to trigger. Issue closed.