Conventions¶
These formats apply to all fields of the configuration.
Paths¶
Paths are absolute or relative to the directory where you start qseek. Start the search in the directory of the configuration file, so that relative paths in the configuration point to the right files. Qseek checks that every given file and directory exists when it reads the configuration.
Units¶
Distances, depths and elevations are in meters, times in seconds, frequencies in Hz. Depth is positive down.
Date and time¶
Dates and times follow ISO 8601 and need a time zone, e.g. Z or +00:00 for UTC. A date without a time is midnight UTC. "now", "today" and "yesterday" are also valid.
Durations¶
Durations follow ISO 8601 as well: "PT5M" is 5 minutes, "PT600S" 600 seconds, "PT1H30M" one and a half hours.
Station codes¶
Stations are identified by their network, station and location code (NSL), written as "<network>.<station>.<location>", e.g. "6A.STA13.00". The location code is often empty: "GE.RUE.". Network and location codes have up to two characters, station codes up to five.
Where a field selects stations, such as the blacklist of the stations, partial codes and wildcards match several stations: "6A." matches the whole network, "6A.STA*" all stations starting with STA.
Phase descriptions¶
A phase description names a phase of a ray tracer as "<tracer>:<phase>", e.g. "cake:P", "fm:S" or "constant:P". The phase_map of the image function assigns its P and S images to these phase descriptions, and every phase needs a ray tracer that calculates its travel times.
Locations¶
A location is a geographic reference, lat and lon in degrees, plus a shift to the east and north in meters. The search volume and the velocity models are placed with locations.
{
"lat": 52.3825,
"lon": 13.0644,
"east_shift": 0.0,
"north_shift": 0.0,
"elevation": 0.0,
"depth": 0.0
}
Location
pydantic-model
¶
Bases: BaseModel
A geographic location with a relative shift.
The location is the geographic reference lat, lon plus a shift in meters to the
east and north. Elevation and depth are in meters.
Fields:
east_shift
pydantic-field
¶
east_shift: float = 0.0
East shift towards geographical reference in meters.
north_shift
pydantic-field
¶
north_shift: float = 0.0
North shift towards geographical reference in meters.
effective_lat_lon
property
¶
Shift-corrected lat/lon pair of the location.
surface_distance_to
¶
azimuth_to
¶
distance_to
¶
offset_from
¶
shifted_origin
¶
shifted_origin() -> Self
Shift the origin of the location to the effective lat/lon.
Returns:
| Name | Type | Description |
|---|---|---|
Self |
Self
|
The shifted location. |