iris-edu / stationxml-validator

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

Distance between Sta and Cha issue #142

Open stephanezuzlewski opened 2 years ago

stephanezuzlewski commented 2 years ago

We have several sites (e.g. boreholes, dams) where the distance between the station and a given channel is well over 1 KM.

222,Error,BK,PKD1,,,1992-10-21T00:00:00,2000-10-01T23:59:00,Distance between Sta: PKD1 and Chan: BQ2 Loc: is expected to be less than 1 km but is 12.111411437028966 km

Those distances are indeed correct and should not be flagged as an error.

timronan commented 2 years ago

@stephanezuzlewski is the distance between the station and channel 1 KM apart in the X-Y plane or is it in the Z plane? Are these MagnetoTelluric data? We can consider softening this rule into a warning. This rule has helped us catch a number of typos in latitudes and longitudes so it should not be removed altogether. Thanks for providing some additional details and thanks for bringing this issue to our attention.

stephanezuzlewski commented 2 years ago

@timronan They could be apart either in the X-Y plane (in the case of a dam) or in the Z plane (in the case of a borehole site). The specific example I mentioned is an EM channel at a borehole site in Parkfield. But there are also NSMP dam structure arrays where the distance between the station and the channel is over 1 KM. Having this rule enforced as a warning instead of an error sounds like a reasonable alternative.

lschleicher commented 2 years ago

Hi, the validator is flagging our multi-sensor array sites (bridge and dam arrays) with error messages like “222,Error,NP,1035,,,1998-08-15T18:00:00,,Distance between Sta: 1035 and Chan: HN2 Loc: AA is expected to be less than 1 km but is 1.3460944237526158 km.” This is making it complicated to push new stations to production entered in SIS (which is using this validator for checks) and also streaming NP dam and bridge data to IRIS. Would it be possible to use the COSMOS codes for dams, bridges, geotechnical array sites to allow these sites to be accepted and not flagged by the validator. As a program focused on monitoring structures at the NSMP (NP array) we have many with this flag and it would be great to resolve them. Here is a current error list:


Error Explanation
222,Error,NP,1035,,,1998-08-15T18:00:00,,Distance between Sta: 1035 and Chan: HN2 Loc: AA is expected to be less than 1 km but is 1.3460944237526158 km Dam with multiple spread out sensors
222,Error,NP,1035,,,1998-08-15T18:00:00,,Distance between Sta: 1035 and Chan: HN3 Loc: AA is expected to be less than 1 km but is 1.3460944237526158 km Dam with multiple spread out sensors
222,Error,NP,1035,,,1998-08-15T18:00:00,,Distance between Sta: 1035 and Chan: HNZ Loc: AA is expected to be less than 1 km but is 1.3460944237526158 km Dam with multiple spread out sensors
222,Error,NP,1098,,,1999-09-23T18:00:00,,Distance between Sta: 1098 and Chan: HN2 Loc: AC is expected to be less than 1 km but is 1.0089374937046005 km Dam with multiple spread out sensors
222,Error,NP,1098,,,1999-09-23T18:00:00,,Distance between Sta: 1098 and Chan: HN3 Loc: AC is expected to be less than 1 km but is 1.0089374937046005 km Dam with multiple spread out sensors
222,Error,NP,1098,,,1999-09-23T18:00:00,,Distance between Sta: 1098 and Chan: HNZ Loc: AC is expected to be less than 1 km but is 1.0089374937046005 km Dam with multiple spread out sensors
222,Error,NP,1216,,,1999-09-08T18:00:00,,Distance between Sta: 1216 and Chan: HNE Loc: DS is expected to be less than 1 km but is 1.0984291886106323 km Dam with multiple spread out sensors
222,Error,NP,1216,,,1999-09-08T18:00:00,,Distance between Sta: 1216 and Chan: HNN Loc: DS is expected to be less than 1 km but is 1.0984291886106323 km Dam with multiple spread out sensors
222,Error,NP,1216,,,1999-09-08T18:00:00,,Distance between Sta: 1216 and Chan: HNZ Loc: DS is expected to be less than 1 km but is 1.0984291886106323 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HN2 Loc: LG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HN2 Loc: UG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HN3 Loc: LG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HN3 Loc: UG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HNZ Loc: LG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2161,,,2000-07-25T18:00:00,,Distance between Sta: 2161 and Chan: HNZ Loc: UG is expected to be less than 1 km but is 1.1192544664611133 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNE Loc: RA is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNE Loc: TW is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNN Loc: RA is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNN Loc: TW is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNZ Loc: RA is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2164,,,2002-02-04T18:00:00,,Distance between Sta: 2164 and Chan: HNZ Loc: TW is expected to be less than 1 km but is 1.0747145458486376 km Dam with multiple spread out sensors
222,Error,NP,2182,,,1999-03-23T18:00:00,,Distance between Sta: 2182 and Chan: HNE Loc: DS is expected to be less than 1 km but is 1.13258433752807 km Dam with multiple spread out sensors
222,Error,NP,2182,,,1999-03-23T18:00:00,,Distance between Sta: 2182 and Chan: HNN Loc: DS is expected to be less than 1 km but is 1.13258433752807 km Dam with multiple spread out sensors
222,Error,NP,2182,,,1999-03-23T18:00:00,,Distance between Sta: 2182 and Chan: HNZ Loc: DS is expected to be less than 1 km but is 1.13258433752807 km Dam with multiple spread out sensors
222,Error,NP,2190,,,1996-08-13T18:00:00,,Distance between Sta: 2190 and Chan: HNE Loc: P2 is expected to be less than 1 km but is 1.2811652845039427 km Dam with multiple spread out sensors
222,Error,NP,2190,,,1996-08-13T18:00:00,,Distance between Sta: 2190 and Chan: HNN Loc: P2 is expected to be less than 1 km but is 1.2811652845039427 km Dam with multiple spread out sensors
222,Error,NP,2190,,,1996-08-13T18:00:00,,Distance between Sta: 2190 and Chan: HNZ Loc: P2 is expected to be less than 1 km but is 1.2811652845039427 km Dam with multiple spread out sensors
222,Error,NP,2222,,,2002-07-15T18:00:00,,Distance between Sta: 2222 and Chan: HNE Loc: DS is expected to be less than 1 km but is 1.1878679788966842 km Dam with multiple spread out sensors
222,Error,NP,2222,,,2002-07-15T18:00:00,,Distance between Sta: 2222 and Chan: HNN Loc: DS is expected to be less than 1 km but is 1.1878679788966842 km Dam with multiple spread out sensors
222,Error,NP,2222,,,2002-07-15T18:00:00,,Distance between Sta: 2222 and Chan: HNZ Loc: DS is expected to be less than 1 km but is 1.1878679788966842 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNE Loc: RC is expected to be less than 1 km but is 1.43457959029747 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNE Loc: TR is expected to be less than 1 km but is 1.4227275425809636 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNN Loc: RC is expected to be less than 1 km but is 1.43457959029747 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNN Loc: TR is expected to be less than 1 km but is 1.4227275425809636 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNZ Loc: RC is expected to be less than 1 km but is 1.43457959029747 km Dam with multiple spread out sensors
222,Error,NP,2311,,,2002-08-26T18:00:00,,Distance between Sta: 2311 and Chan: HNZ Loc: TR is expected to be less than 1 km but is 1.4227275425809636 km Dam with multiple spread out sensors
222,Error,NP,289,,,2008-12-04T18:00:00,,Distance between Sta: 289 and Chan: HN2 Loc: CR is expected to be less than 1 km but is 1.3703508741429176 km Dam with multiple spread out sensors
222,Error,NP,289,,,2008-12-04T18:00:00,,Distance between Sta: 289 and Chan: HN3 Loc: CR is expected to be less than 1 km but is 1.3703508741429176 km Dam with multiple spread out sensors
222,Error,NP,289,,,2008-12-04T18:00:00,,Distance between Sta: 289 and Chan: HNZ Loc: CR is expected to be less than 1 km but is 1.3703508741429176 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HN2 Loc: LC is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HN2 Loc: LC is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HN3 Loc: LC is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HN3 Loc: LC is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNE Loc: RA is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNE Loc: RA is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNE Loc: RC is expected to be less than 1 km but is 2.6387128374613846 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNE Loc: TO is expected to be less than 1 km but is 1.1805287192357552 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNN Loc: RA is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNN Loc: RA is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNN Loc: RC is expected to be less than 1 km but is 2.6387128374613846 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNN Loc: TO is expected to be less than 1 km but is 1.1805287192357552 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: LC is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: LC is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: RA is expected to be less than 1 km but is 1.026072230194146 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: RA is expected to be less than 1 km but is 3.262279125395081 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: RC is expected to be less than 1 km but is 2.6387128374613846 km Dam with multiple spread out sensors
222,Error,NP,5472,,,1999-11-08T18:00:00,,Distance between Sta: 5472 and Chan: HNZ Loc: TO is expected to be less than 1 km but is 1.1805287192357552 km Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNE Loc: LA is expected to be less than 1 km but is 2.6623404847808065 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNE Loc: MT is expected to be less than 1 km but is 1.1647015329078327 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNN Loc: LA is expected to be less than 1 km but is 2.6623404847808065 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNN Loc: MT is expected to be less than 1 km but is 1.1647015329078327 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNZ Loc: LA is expected to be less than 1 km but is 2.6623404847808065 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,5474,,,1999-11-08T18:00:00,,Distance between Sta: 5474 and Chan: HNZ Loc: MT is expected to be less than 1 km but is 1.1647015329078327 km Miscillaneous/Dam with multiple spread out sensors
222,Error,NP,7005,,,2009-07-14T18:00:00,,Distance between Sta: 7005 and Chan: HN2 Loc: CD is expected to be less than 1 km but is 1.6883586737080782 km Dam with multiple spread out sensors
222,Error,NP,7005,,,2009-07-14T18:00:00,,Distance between Sta: 7005 and Chan: HN3 Loc: CD is expected to be less than 1 km but is 1.6883586737080782 km Dam with multiple spread out sensors
222,Error,NP,7005,,,2009-07-14T18:00:00,,Distance between Sta: 7005 and Chan: HNZ Loc: CD is expected to be less than 1 km but is 1.6883586737080782 km Dam with multiple spread out sensors
222,Error,NP,7006,,,2007-09-18T18:00:00,,Distance between Sta: 7006 and Chan: HN2 Loc: LG is expected to be less than 1 km but is 1.1333204483709698 km Dam with multiple spread out sensors
222,Error,NP,7006,,,2007-09-18T18:00:00,,Distance between Sta: 7006 and Chan: HN3 Loc: LG is expected to be less than 1 km but is 1.1333204483709698 km Dam with multiple spread out sensors
222,Error,NP,7006,,,2007-09-18T18:00:00,,Distance between Sta: 7006 and Chan: HNZ Loc: LG is expected to be less than 1 km but is 1.1333204483709698 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNE Loc: RA is expected to be less than 1 km but is 1.5588565560816 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNE Loc: RC is expected to be less than 1 km but is 1.6864090066851214 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNN Loc: RA is expected to be less than 1 km but is 1.5588565560816 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNN Loc: RC is expected to be less than 1 km but is 1.6864090066851214 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNZ Loc: RA is expected to be less than 1 km but is 1.5588565560816 km Dam with multiple spread out sensors
222,Error,NP,720,,,1983-04-15T18:00:00,,Distance between Sta: 720 and Chan: HNZ Loc: RC is expected to be less than 1 km but is 1.6864090066851214 km Dam with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNE Loc: E3 is expected to be less than 1 km but is 1.2036495290767755 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNE Loc: F4 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNE Loc: F5 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNE Loc: F6 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNN Loc: E3 is expected to be less than 1 km but is 1.2036495290767755 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNN Loc: F4 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNN Loc: F5 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNN Loc: F6 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNZ Loc: E3 is expected to be less than 1 km but is 1.2036495290767755 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNZ Loc: F4 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNZ Loc: F5 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,7405,,,2005-03-01T18:00:00,,Distance between Sta: 7405 and Chan: HNZ Loc: F6 is expected to be less than 1 km but is 1.3847618027165796 km Bridge with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN2 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN2 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN2 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN3 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN3 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HN3 Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HNZ Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HNZ Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors
222,Error,NP,819,,,2000-11-08T18:00:00,,Distance between Sta: 819 and Chan: HNZ Loc: CR is expected to be less than 1 km but is 1.2946256354870231 km Dam with multiple spread out sensors

 

timronan commented 2 years ago

Thank for this example. We will soften this rule from an error to a warning in the next stationxml-validator update. We will get begin working on a release candidate, and will let everyone know know when it is ready.

lschleicher commented 2 years ago

Thanks so much @timronan!

timronan commented 2 years ago

@stephanezuzlewski and @lschleicher stationxml-validator 1.7.2 has been released and addresses this issue by turning rule 222 from an error into a warning. The stationxml-loader has also been updated to include this changed rule. Please close this issue after you verify the update. Sorry for the delay on dealing with this issue.

https://github.com/iris-edu/stationxml-validator/releases/tag/stationxml-validator-1.7.2