1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| import obspy from obspy.clients.fdsn.mass_downloader import RectangularDomain, CircularDomain, \ Restrictions, MassDownloader
domain = CircularDomain( latitude=0, longitude=0, minradius=0.0, maxradius=12.0 ) restrictions = Restrictions( starttime=obspy.UTCDateTime(2005, 1, 15), endtime=obspy.UTCDateTime(2007, 10, 15), chunklength_in_sec=86400, network="??", station="????", location="*", channel="LHZ", reject_channels_with_gaps=False, minimum_length=0.0, minimum_interstation_distance_in_m=100.0)
mdl = MassDownloader() mdl.download(domain, restrictions, mseed_storage="waveforms", stationxml_storage="stations")
|