Comments (3)
This is a bug happening when caching or storing the available route epochs in stationlite; already the content of the routing DB is wrong:
[stationlite db query triggered by request:]
SELECT DISTINCT channelepoch.code AS channelepoch_code, channelepoch.locationcode AS channelepoch_locationcode, station.code AS station_code, network.code AS network_code, epoch.starttime AS epoch_starttime, epoch.endtime AS epoch_endtime, routing.starttime AS routing_starttime, routing.endtime AS routing_endtime, endpoint.url AS endpoint_url
FROM channelepoch JOIN epoch ON channelepoch.epoch_ref = epoch.id
JOIN epochtype ON epoch.epochtype_ref = epochtype.id
JOIN routing ON routing.epoch_ref = epoch.id
JOIN network ON channelepoch.network_ref = network.id JOIN station ON channelepoch.station_ref = station.id
JOIN stationepoch ON stationepoch.station_ref = station.id JOIN endpoint ON routing.endpoint_ref = endpoint.id JOIN service ON endpoint.service_ref = service.id
WHERE network.code LIKE '%'
AND station.code LIKE '%'
AND channelepoch.code LIKE '%'
AND channelepoch.locationcode LIKE '%'
AND service.name = 'station' AND epochtype.type = 'CHANNEL' AND
stationepoch.latitude >= 38.41301 AND stationepoch.latitude <= 38.41401 AND stationepoch.longitude >= 21.94 AND stationepoch.longitude <= 21.95
AND (epoch.endtime > '2022-06-03T00:00:00'::timestamp OR epoch.endtime IS NULL)
AND epoch.starttime < '2022-06-12T00:00:00'::timestamp;
[response]
channelepoch_code | channelepoch_locationcode | station_code | network_code | epoch_starttime | epoch_endtime | routing_starttime | routing_endtime | endpoint_url
-------------------+---------------------------+--------------+--------------+---------------------+---------------------+---------------------+---------------------+-----------------------------------------------------
HHE | 00 | EF02 | 2D | 2021-10-07 00:00:00 | 2032-12-31 00:00:00 | 2021-01-01 00:00:00 | 2032-12-31 00:00:00 | http://geofon.gfz-potsdam.de/fdsnws/station/1/query
HHN | 00 | EF02 | 2D | 2021-10-07 00:00:00 | 2032-12-31 00:00:00 | 2021-01-01 00:00:00 | 2032-12-31 00:00:00 | http://geofon.gfz-potsdam.de/fdsnws/station/1/query
HHZ | 00 | EF02 | 2D | 2021-10-07 00:00:00 | 2032-12-31 00:00:00 | 2021-01-01 00:00:00 | 2032-12-31 00:00:00 | http://geofon.gfz-potsdam.de/fdsnws/station/1/query
(3 rows)
from eidaws.
Note this issue is fundamental to the data model of stationlite; stationlite assumes stationcodes to be unique.
As a result, for non-unique station codes in case of data/metadata selection based on station properties (location, epoch in case no stream epochs are defined), response may refer to the wrong station.
This requires major refactoring.
from eidaws.
The problem affects 4884 of roughly 21000 stations, of which 527 in permanent networks. Stations like "A02", "A03" show up in up to 8 (mostly temporary) networks.
from eidaws.
Related Issues (16)
- Allow harvesting from files HOT 1
- `fdsnws-station` query filter parameters for `eidaws-stationlite`
- Epochs returned by `eidaws-stationlite` for `service=station&level=network|station`
- Make use `aiofiles.SpooledTemporaryFile`
- Allow non-standard URL base paths HOT 3
- Upgrade to `aioredis>=2.0.0`
- Enhance `fdsnws-station` crawling
- Improve route cleanup HOT 1
- Upgrade to `redis-py>=4.2.x`
- Upgrade to `aiohttp>=3.8.0`
- Optionally force HTTP while harvesting
- Circular spatial query filter parameters for `eidaws-stationlite`
- eida-stationlite-harvest seems not to update the lastseen date in table datacenter of routing DB HOT 1
- Routing harvesting duplicates channelepochs (and related epochs) in the routing DB HOT 4
- RuntimeError in middleware HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eidaws.