polyfemos.back.station.Station¶
-
class
polyfemos.back.station.
Station
(network_code='', station_code='', location_code='', locy=0.0, locx=0.0, epsg='', digitizer='', sensor='', starttime='', endtime='')[source]¶ Bases:
object
Class for handling information of one station
Public Methods
-
__init__
(network_code='', station_code='', location_code='', locy=0.0, locx=0.0, epsg='', digitizer='', sensor='', starttime='', endtime='')[source]¶ - Parameters
network_code (str) – Network code, e.g. “FN”
station_code (str) – Code of the station, e.g. “MSF”
location_code (str) – Location of the station, e.g. “00” or empty
locy (float) – Y coordinate
locx (float) – X coordinate
epsg (str) – EPSG number for
locx
andlocy
coordinatesdigitizer (str) – Model/name of the station’s digitizer
sensor (str) – Model/name of the station’s sensor
starttime (
Ordinal
) –endtime (
Ordinal
) –
-
filter_parameters
(**kwargs)[source]¶ Filters
self.parameters
according to givenkwargs
. The values of the kwargs should be list of values, or one value. If given keyword argument is attribute of theParameter
class, and the given value(s) are not equal to the the parameter, the parameter is excluded.
Private Methods
-
_add_to_header
(field, *args)[source]¶ Any number of
args
can be provided, and are processed into a string repsentation of a list. Each arg is converted into a string as follows:None
->""
, empty stringfloat('nan')
->"NaN"
""
->"NaN"
stringvalue -> "stringvalue"
123 -> "123"
- Parameters
field (str) –
-
_compare
(op, other)[source]¶ Compares starttimes of the stations
self
andother
. If station ids do not match, always returnsFalse
.
Special Methods
-
__ge__
(other)[source]¶ see
_compare()
for more info
-
__gt__
(other)[source]¶ see
_compare()
for more info
-
__le__
(other)[source]¶ see
_compare()
for more info
-
__lt__
(other)[source]¶ see
_compare()
for more info
-