Skip to main content

Typed observation objects for geolocation measurements (TDOA, FDOA, AOA, Range)

Project description

GeoSol Research Logo

GRI Obs

Typed observation objects for geolocation measurements.

Overview

gri-obs provides self-contained observation objects that carry measurement data, noise characterization, and sensor geometry for geolocation systems. Each observation embeds everything needed to evaluate measurement functions against an emitter state vector.

Observation Types

Type Measurement Units Collectors
TdoaObs Time Difference of Arrival seconds 2 positions
TdoaDotObs Time derivative of TDOA (frequency-independent FDOA) s/s 2 positions + velocities
FdoaObs Frequency Difference of Arrival Hz 2 positions + velocities
AoaObs Angle of Arrival (direction cosines) unitless 1 position + rotation
RangeObs Distance meters 1 position

Installation

pip install gri-obs

Or for local development:

git clone https://gitlab.com/geosol-foss/python/gri-obs.git
cd gri-obs
uv sync

uv sync creates the virtual environment, installs dependencies, and wires up the git hooks automatically (it sets core.hooksPath to .githooks). See CONTRIBUTING.md for the full workflow.

Usage

from gri_obs import TdoaObs, FdoaObs, AoaObs, RangeObs
from gri_pos import Pos
import numpy as np

# TDOA observation
tdoa = TdoaObs(
    time=100.0,
    value=1.5e-6,           # 1.5 microseconds
    std_dev=1e-9,            # 1 nanosecond
    collector1=Pos.LLA(38.0, -77.0, 400_000.0),
    collector2=Pos.LLA(39.0, -76.0, 400_000.0),
    sensor_id="tdoa_12",
)

# AOA observation from azimuth/elevation
aoa = AoaObs.from_azel(
    time=100.0,
    azimuth_rad=0.785,       # 45 degrees
    elevation_rad=0.524,     # 30 degrees
    std_dev_az_rad=0.001,
    std_dev_el_rad=0.001,
    collector=Pos.LLA(38.0, -77.0, 100.0),
    sensor_id="aoa_1",
)

# Filter mixed observation lists
from gri_obs import filter_tdoa, filter_aoa
all_obs = [tdoa, aoa]
tdoa_only = filter_tdoa(all_obs)

Timestamps

Observations accept any timestamp type -- float seconds, datetime objects, or gri_nsepoch.Time for nanosecond precision. The observation carries the timestamp but does not interpret it.

Dependencies

License

MIT -- see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gri_obs-0.2.0.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gri_obs-0.2.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file gri_obs-0.2.0.tar.gz.

File metadata

  • Download URL: gri_obs-0.2.0.tar.gz
  • Upload date:
  • Size: 65.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gri_obs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 75039f91dfcb33e17c5b7c48734462f349e24741ea87822428537aa9b547d808
MD5 9f4eca5b83331610919f3cb4eb1c5387
BLAKE2b-256 7f71b5e4ca92140f193e64de0e4a0fed6bf10ef8c2e6aad48a13f800eabe4b1b

See more details on using hashes here.

File details

Details for the file gri_obs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gri_obs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gri_obs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac3f92aca7e467614d075483bbf613097e7b9f6f6f3f5a92be3bae1d7e2e2d3
MD5 3ba175f1e1ab433ea29ba14e19955cc7
BLAKE2b-256 f0ebed8bf0988840dca80fd7d2c81639a5a9b5587a20d5d5760ab3778cd78fe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page