class FDSNBuilder(BaseBuilder):
Build a request using a FDSN server for Event and another for Station metadata
This class implements a request builder module that uses FDSN calls to servers to fetch information and build a request.
| Parameters | |
| fdsn | The URL for the Event FDSN server. |
| fdsn | The URL for the Station FDSN server. |
| Method | event |
Perform the search of events and find stations based on the events |
| Method | eventid |
Use a specific eventid or a list of eventids to build a request |
| Method | list |
Perform a simple query to find networks in the station server |
| Method | list |
Perform a simple query to find stations from given network in the station server |
| Method | station |
Perform the search of stations and find events based on the stations |
| Instance Variable | e |
This is the saved instance of the FDSN station client |
| Instance Variable | s |
This is the saved instance of the FDSN event client |
| Static Method | _choose |
Undocumented |
| Static Method | _get |
Undocumented |
| Method | __collect |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | __str__ |
Undocumented |
Inherited from BaseBuilder:
| Static Method | event |
Generate a printout list of individual events in the request |
| Static Method | filter |
Filter channels to be requested. |
| Static Method | filter |
Filter the request based on the items, mode and operation. |
| Static Method | filter_net |
Filter out request lines that are already listed in the existing list. |
| Static Method | filter |
Filter out request lines not overlaping with this datetime range |
| Static Method | load |
Load a request from file |
| Static Method | map |
Make a map using cartopy representing the request. |
| Static Method | reqlen |
Count the total number of lines in request |
| Static Method | request |
Show some stats from the request |
| Static Method | save |
Save a built request to file |
| Static Method | show |
Write a summary of the request to the screen |
| Static Method | station |
Generate a printout list of individual stations in the request |
| Static Method | stev |
Generate a printout list of events and stations in the request |
| Method | set |
Enable of disable the use of restricted station while building the request |
| Method | set |
Show events obtained from server before continuing to build the request. |
| Static Method | __x |
Undocumented |
| Method | __build |
t0 is a UTCDateTime eventLatitude is degrees eventLongitude is degrees eventDepth is in Meters |
| Method | __build |
Undocumented |
| Method | __build |
networkCode is String stationCode is String stationLatitude is degrees stationLongitude is degrees stationElevation is Meters |
| Method | __find_arrival |
delta is in degrees depth is in meters |
| Method | _build |
Undocumented |
| Method | _build |
Undocumented |
| Method | _check |
Undocumented |
| Method | _fill |
Undocumented |
| Method | _fill |
Undocumented |
| Method | _get |
Undocumented |
| Method | _organize |
Undocumented |
| Method | _organize |
Undocumented |
| Method | _resolve |
Undocumented |
| Instance Variable | __include |
A global flag used by self._fill_kwargsstation to include or not restricted inventory. |
| Instance Variable | __tworker |
Undocumented |
| Instance Variable | _plotevents |
A global flag used by eventBased and stationBased to show or not events. |
Perform the search of events and find stations based on the events
This method use the given time, region depth and magnitude constrains to search for events in the given FDSN server and for each event search for stations given the other parameters (networkStationList, stationRestrictionArea and distanceRange) to build a request. It will search for suitable data channels inside each station using the targetSamplingRate and allowedLocGainList.
Final time window for each request line will be based on the theoretical arrival time for phase phasesOrPhaseGroupList (use 'ttp' for P-waves or read the docs on obspy taup class) using the dataWindowRange parameter interval.
Will consider the restricted flag state of the Builder.
| Parameters | |
t0:str or UTCDateTime | |
t1:str or UTCDateTime | |
targetint | |
allowedlist | |
dataRange | |
phasesstr | |
eventAreaRange | |
magnitudeRange | |
depthRange | |
networklist, optional | |
stationAreaRange, optional | |
distanceRange, optional | |
| Returns | |
request | A request object (dict of list of tuples) |
Use a specific eventid or a list of eventids to build a request
This method will obtain from the event FDSN server the information for the given event ids and using the return information will build the request. The request will only contain stations that are used to locate the event.
Phased marks will be saved to be added to the final SAC file header. The only additional parameter is the dataWindowRange that will be used to determine de request time window. For each channel, on each station a time window will be determined using the first Phase plus the start of the dataWindowRange and the last Phase plus the end of the dataWindowRange.
Event picked stations that are not on the station FDSN server are also ignored from the request.
Will consider the restricted flag state of the Builder.
| Parameters | |
eventidstr or list | |
dataRange | |
| Returns | |
request | A request object (dict of list of tuples) |
Perform a simple query to find networks in the station server
Will consider the restricted flag state of the Builder.
| Parameters | |
t0:str or UTCDateTime | The starttime for the search |
t1:str or UTCDateTime | The endtime for the search |
| Returns | |
inventory | The metadata inventory in obspy format with level = network. |
Perform a simple query to find stations from given network in the station server
Will consider the restricted flag state of the Builder.
| Parameters | |
t0:str or UTCDateTime | The starttime for the search |
t1:str or UTCDateTime | The endtime for the search |
net:str, default "*" | A network code pattern to restrict the search |
dobool, default False | Generate a map of stations |
globalbool, default False | Restrict map to station region |
gridsbool, default False | Add a grid to the map |
| Returns | |
inventory | The metadata inventory in obspy format with level = network. |
Perform the search of stations and find events based on the stations
This method use the given time, codes and region to constrain the search for stations in the given FDSN server and for each station search for events given the other parameters (eventRestrictionArea, magnitudeRange, depthRange and distanceRange) to build a request. It will search for suitable data channels inside each station using the targetSamplingRate and allowedLocGainList.
Final time window for each request line will be based on the theoretical arrival time for phase phasesOrPhaseGroupList (use 'ttp' for P-waves or read the docs on obspy taup class) using the dataWindowRange parameter interval.
Will consider the restricted flag state of the Builder.
| Parameters | |
t0:str or UTCDateTime | |
t1:str or UTCDateTime | |
targetint | |
allowedlist | |
dataRange | |
phasesstr | |
networklist | |
stationAreaRange | |
eventAreaRange, optional | |
magnitudeRange, optional | |
depthRange, optional | |
distanceRange, optional | |
| Returns | |
request | A request object (dict of list of tuples) |