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.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lofarantpos-0.7.1.tar.gz
Algorithm Hash digest
SHA256 6d918c4c2180762e7c764529080d8527f0f8c4c03f617c0cf62b0c3ea28d3348
MD5 f2eaedd4a60f0711e4cf366d9f2c0c91
BLAKE2b-256 18c34bd0f0d6ae8614356a0c80b6125bd4a99b47afc1d8905f6434184578e6b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lofarantpos-0.7.1-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.11.9

File hashes

Hashes for lofarantpos-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0fb7a7b39e7711580eb7a2e9bb87e5ad5ea81db39b42cf1d2bfac8ddcce1161
MD5 7391b5eebbcd552c7c28526b78b8bf7e
BLAKE2b-256 541fff3aa6daa933c58bb294c3777b822c4a87a70e173960941793a0b3d4f49b

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