Access, query, and manipulate LOFAR antenna positions
Project description
LOFAR antenna database
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.5.0.tar.gz
(172.9 kB
view details)
Built Distribution
lofarantpos-0.5.0-py3-none-any.whl
(170.2 kB
view details)
File details
Details for the file lofarantpos-0.5.0.tar.gz
.
File metadata
- Download URL: lofarantpos-0.5.0.tar.gz
- Upload date:
- Size: 172.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fbaf3a7d659dc5a639cf8e44b970127b7a570a34a1f3e038ae3cee86f21526 |
|
MD5 | 75ddc47aad460a104364eb07b53a7491 |
|
BLAKE2b-256 | d8a48b073443a1e6bf59ba6b3de686abf0b745251819750a57ccab18a0939276 |
File details
Details for the file lofarantpos-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: lofarantpos-0.5.0-py3-none-any.whl
- Upload date:
- Size: 170.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e101156b39cba2564ae0b158def8389386f1e2922f50ed7ff7808ba9db60d2b |
|
MD5 | 70078b998ddbe96a5cd763f241878445 |
|
BLAKE2b-256 | 5d83b34173f8ff1d4278324b5ca09ac4046a8ce63c0c98062fc1ec384100955e |