[obspy-users] help to download data
gaelle vanessa Nana
vanessa.gaelle3 at gmail.com
Mon May 13 13:38:39 CEST 2019
Thank you marcel, it is working now.
Le lun. 13 mai 2019 à 09:29, Marcel Tesch <marcel.tesch at ifg.uni-kiel.de> a
> this network has multiple locations per station, specifically '01' for
> 'LH*', and '02' for 'BH*'. Try to change your location parameter from '' to
> either '*', or '02' and it should work.
> > On 9. May 2019, at 13:56, gaelle vanessa Nana <vanessa.gaelle3 at gmail.com>
> > hello,
> > I use this python code to download data, but unfortunatelly, i cannot
> download. I need your help.
> > import obspy
> > from obspy.clients.fdsn.mass_downloader import RectangularDomain, \
> > Restrictions, MassDownloader
> > # Rectangular domain containing parts of southern Germany.
> > domain = RectangularDomain(minlatitude=2, maxlatitude=12,
> > minlongitude=6, maxlongitude=16)
> > restrictions = Restrictions(
> > # Get data for a whole year.
> > starttime=obspy.UTCDateTime(2006, 1, 1),
> > endtime=obspy.UTCDateTime(2007, 1, 1),
> > # Chunk it to have one file per day.
> > chunklength_in_sec=86400,
> > # Considering the enormous amount of data associated with continuous
> > # requests, you might want to limit the data based on SEED
> > # If the location code is specified, the location priority list is
> > # used; the same is true for the channel argument and priority list.
> > network="XB", station="CM*", location="", channel="BH*",
> > # The typical use case for such a data set are noise correlations
> > # gaps are dealt with at a later stage.
> > reject_channels_with_gaps=False,
> > # Same is true with the minimum length. All data might be useful.
> > minimum_length=0.0,
> > # Guard against the same station having different names.
> > minimum_interstation_distance_in_m=100.0)
> > # Restrict the number of providers if you know which serve the desired
> > # data. If in doubt just don't specify - then all providers will be
> > # queried.
> > mdl = MassDownloader(providers=["IRIS" ])
> > mdl.download(domain, restrictions, mseed_storage="waveforms",
> > stationxml_storage="stations")
> > _______________________________________________
> > obspy-users mailing list
> > obspy-users at lists.swapbytes.de
> > https://lists.swapbytes.de/mailman/listinfo/obspy-users
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the obspy-users