New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FDSN Mass Downloader supporting restricted data #1350
Conversation
Should not be too hard to add, I guess? |
Yea that's super simple to add. |
I guess in practice most people will usually only have credentials for a single provider. So how about the following API: providers = [
"IRIS",
obspy.clients.fdsn.Client("my_provider", user="me", password="my_password),
"ORFEUS"] Then its less logic and IMHO clearer what is going on. |
Hey guys, Has this been added anywhere? |
Not yet - if you need it right now you can just hack it into this line here:
|
These can then also work with authenticated requests and what not.
Also improves the existing documentation.
This is now a PR including tests and documentation. It now works like this: from obspy.clients.fdsn import Client
client_orfeus = Client("ORFEUS", user="random", password="some_pw")
client_eth = Client("ETH", user="from_me", password="to_you")
mdl = MassDownloader(providers=[client_orfeus, "IRIS", client_eth]) This is nice because its quite general and will also work if we potentially support other authentication methods in the future. It will just reuse the passed client instance. |
No reviews yet but I'm merging as this is a small change, mostly on a part of ObsPy that is my doing, and it has a test :-) |
@krischer, changelog maybe? |
Oops. My bad - I just added it to the latest master. |
It could be useful if "FDSN Mass Downloader" would support downloading restricted data apart from public one.
Could be something like this:
providers = [
[http://fdsn.service, username, password],
[http://fdsn.service2, username2, password2],
[http://fdsn.service3, username3, password3]
]