Comments (4)
Thank you for the report. I'm looking into this now.
from seisio.jl.
OK, I found the problem. The bad news is that it's definitely an issue with GeoNet. Marine replicated this bug in ObsPy earlier today. The good news is that I know how to fix it. Amazingly enough, my blind guess about the cause is correct:
When GeoNet changes a channel's parameters, they record a startDate
attribute for the new XML element, but there's no endDate
attribute added to the old element. However, it seems that a channel element with noendDate
is considered valid in the time range -∞:+∞; for example, your query for 2016 returns some channel elements with a startDate
of November 2017. I did an identical query through their webpage and got exactly the same results.
Workaround: I can add a control loop to SeisIO that retains one unique entry per channel, based on startDate
. This might be messy because I need to test each channel ID for uniqueness, then loop over each group of IDs to create an array of endDate
values, then retain the element that's correct for the query window.
Do you know anyone at GeoNet? Could you encourage them to add endDate
values to their station XML? I ask because it's easy to imagine a "use case" where this breaks research: suppose a program reads station XML until the first match of each channel. That's OK for normal station XML, but would yield Geonet parameters that are outdated and therefore wrong. Now suppose one's research requires correcting to true ground velocity, and the "wrong" parameters include a gain...
(I thought of this because I encountered a very similar "use case" with Win32 data in 2016: JMA, Nagoya University, and HiNet each had their own parameter file for the two JMA stations on Mt. Ontake. No two parameter files agreed. The gain of each seismic channel varied from file to file by ~50%; the gain of each infrasound channel varied by 3-4 orders of magnitude. No one knew which parameters were current.)
I'll add a fix to SeisIO in a few days. At the moment I'm trying to learn why the Julia ecosystem didn't update SeisIO to v0.3.0.
from seisio.jl.
Hi, I implemented a rewrite of FDSN_sta_xml tonight that should include a very clean workaround for this problem. Are you still having this issue, or is it now fixed?
from seisio.jl.
from seisio.jl.
Related Issues (20)
- Can't resolve path in tutorial/install.jl HOT 4
- TagBot trigger issue HOT 2
- sync!(C::SeisChannel) does not update C.t HOT 1
- Strange behavior with get_data!() HOT 1
- read_data fails on file with fs == 0 HOT 1
- filtfilt! converts all data to NaN HOT 14
- Failing DataFormat test on julia 1.6.1 HOT 11
- ArgumentError on reading ASDF file HOT 1
- SeisIO prevents other packages to be updated HOT 5
- Support for another Q files? HOT 3
- Malformed SeisChannel ID (station code) in `read_sac_stream` HOT 4
- Can't read multiple SAC files using `read_data` HOT 2
- Using SeisIO to read metadata file (format of resp) with errors?
- Transition test file download from SVN to Base.download? HOT 2
- How to read an entire list of sac files? HOT 4
- Very slow mseed read time
- SeisIO v1.2.1 fails to compile on M1 Mac
- ERROR:LoadError:unable to open libLLVM
- LoadError: There was an error during testing HOT 4
- Error during data testing-Utils/test_units HOT 2
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 seisio.jl.