# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg----------
default=10, help='Number of randomly distributed stations.')
default='CO', help='Network name')
optional=True, default=['BHE', 'BHN', 'BHZ'], help='Seismic channels to generate. Default: BHN, BHE, BHZ')
StationGenerator.clear(self) self._stations = None
return self.network_name, 'S%03i' % (istation + 1), '',
if self._stations is None:
if self.channels: channels = [model.station.Channel(c) for c in self.channels] else: channels = None
stations = [] for istation in range(self.nstations): lat, lon, north_shift, east_shift, depth = map( float, self.get_coordinates(istation))
net, sta, loc = self.nsl(istation) station = model.Station( net, sta, loc, lat=lat, lon=lon, north_shift=north_shift, east_shift=east_shift, depth=depth, channels=channels)
stations.append(station)
self._stations = stations
return self._stations
dists = [] for source in sources: for station in self.get_stations(): dists.append( source.distance_to(station))
return num.min(dists), num.max(dists)
return []
automap.add_stations(self.get_stations()) |