pyrocko.model.location¶
Representation of a geographical location, base class for stations, events, etc.
Classes
|
Geographical location. |
- class Location(**kwargs)[source]¶
Bases:
ObjectGeographical location.
The location is given by a reference point at the earth’s surface (
lat,lon,elevation) and a cartesian offset from this point (north_shift,east_shift,depth). The offset corrected lat/lon coordinates of the location can be accessed though theeffective_latlon,effective_lat, andeffective_lonproperties.- ♦ lat¶
float, optional, default:0.0Latitude of reference point [deg].
- ♦ lon¶
float, optional, default:0.0Longitude of reference point [deg].
- ♦ north_shift¶
float, optional, default:0.0Northward cartesian offset from reference point [m].
- ♦ east_shift¶
float, optional, default:0.0Eastward cartesian offset from reference point [m].
- ♦ elevation¶
float, optional, default:0.0Surface elevation, above sea level [m].
- ♦ depth¶
float, default:0.0Depth, below surface [m].
- property effective_latlon¶
Property holding the offset-corrected lat/lon pair of the location.
- property effective_lat¶
Property holding the offset-corrected latitude of the location.
- property effective_lon¶
Property holding the offset-corrected longitude of the location.