Skip to main content

Access, query, and manipulate LOFAR antenna positions

Project description

LOFAR antenna database

Full documentation

Module for manipulating LOFAR antenna databases. Typical usage is to create an instance of a LofarAntennaDatabase:

>>> import lofarantpos.db

>>> db = lofarantpos.db.LofarAntennaDatabase()

>>> cs001lba_etrs = db.phase_centres['CS001LBA']
array([3826923.942,  460915.117, 5064643.229])

>>> db.antenna_pqr('RS210LBA')[:5]
array([[ 0.        ,  0.        ,  0.        ],
       [-0.00006...,  2.55059...,  0.00185...],
       [ 2.24997...,  1.3499502 ,  0.00130...],
       [ 2.24982..., -1.35031..., -0.0004149 ],
       [ 0.00006..., -2.55059..., -0.00185...]])

Some functions are included to convert xyz coordinates to latitude, longitude, height w.r.t. WGS84 ellipsoid.

>>> from lofarantpos.geo import geographic_from_xyz

>>> geographic_from_xyz(cs001lba_etrs)
{'lon_rad': 0.11986275972340964,
 'lat_rad': 0.9234780446647385,
 'height_m': 50.162683041766286}

Installation

This module can be pip-installed:

pip install lofarantpos

Alternatively, install it from this source with

python setup.py install

Note This package used to be called lofar-antenna-positions. It may be necessary to uninstall lofar-antenna-positions before installing.

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

lofarantpos-0.7.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

lofarantpos-0.7.0-py3-none-any.whl (174.3 kB view details)

Uploaded Python 3

File details

Details for the file lofarantpos-0.7.0.tar.gz.

File metadata

  • Download URL: lofarantpos-0.7.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for lofarantpos-0.7.0.tar.gz
Algorithm Hash digest
SHA256 fe7ce4f61e4fe051719c4c2993ac4658d8aa8b08dcace1deb8484b4bdf89ff5b
MD5 fcf0f9848f4a0e96053857379376aa06
BLAKE2b-256 20949d4cc703017b8f4d784e242f7cca711d91760348b72615d65a94d0de43e8

See more details on using hashes here.

File details

Details for the file lofarantpos-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: lofarantpos-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 174.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for lofarantpos-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f77a95212ccb46ed2b3a6e399d84b9ae1e007a12b25fc62492d241c7a45a861
MD5 1401cbe146b9338a63cdd639b1cd952b
BLAKE2b-256 e8d78d4f13a4cfba90ca48cd56cd7848e27c2b3ce2b60182342daa23c045e0fc

See more details on using hashes here.

Supported by

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