-
Notifications
You must be signed in to change notification settings - Fork 20
Description
This report is derived from an observation we did while resoving an webservices problem.
Our station inventory is managed as native FDSN StationXML and converted into SC Inventory XML as part of the configuration process. In one specific case the coordinates for different epochs differ, while the location code remains unchaged. We understand that while FDSN does not define rules on the exact usage of the location code, SC Inventory data model requires a location to have the same coordinates. This situation is usually handled by fdsnxml2inv by providing a warning and use only one set of coordinates for all comprised epochs. In our case these informations are not used, so this modification of metadata seems acceptable.
Processing /tmp/20231124_161019-build_seiscomp3_db_from_stationxml/stationxml/IV_.stationxml
- parsing StationXML
- converting into SeisComP-XML
W IV.CPOZ location '' starting 2011-07-19 10:55:00 has conflicting coordinates: using the last read
lat 40.8211 != 40.8211
lon 14.1191 != 14.1187
elevation 52 != 2
However, the problem we encountered is that the timespans in this situation are then handled in an incoherent way. The station correctly reports an open timespan. On the other hand, the location reports an endtime corrisponding to the first epoch and thus exluding the later two epochs. The two epochs are still retained in the resulting Inventory XML. Below the output from scinv ls:
station CPOZ Darsena Pozzuoli - Stazione Osservatorio Vesuviano
epoch 2011-07-19 10:55:00
location __
epoch 2011-07-19 10:55:00 - 2022-03-31 10:00:00
channel HHE
epoch 2011-07-19 10:55:00 - 2022-03-31 10:00:00
channel HHE
epoch 2022-04-11 11:00:00 - 2023-03-01 00:18:00
channel HHE
epoch 2023-03-01 00:18:00
channel HHN
epoch 2011-07-19 10:55:00 - 2022-03-31 10:00:00
channel HHN
epoch 2022-04-11 11:00:00 - 2023-03-01 00:18:00
channel HHN
epoch 2023-03-01 00:18:00
channel HHZ
epoch 2011-07-19 10:55:00 - 2022-03-31 10:00:00
channel HHZ
epoch 2022-04-11 11:00:00 - 2023-03-01 00:18:00
channel HHZ
epoch 2023-03-01 00:18:00
channel HNE
epoch 2023-03-01 00:18:00
channel HNN
epoch 2023-03-01 00:18:00
channel HNZ
epoch 2023-03-01 00:18:00
This behaviour seems unexpected and may be considered a bug. We understand that SC Inventory cannot represent the original StationXML information unchanged. However, if the change of representation is acceptable, location timespan should be set accordingly.
I attach the problematic files.