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 = 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.3.1.tar.gz
(174.9 kB
view details)
Built Distribution
lofarantpos-0.3.1-py3-none-any.whl
(169.0 kB
view details)
File details
Details for the file lofarantpos-0.3.1.tar.gz
.
File metadata
- Download URL: lofarantpos-0.3.1.tar.gz
- Upload date:
- Size: 174.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2dcbfab6a1b41864f84a6ecbd267741f59fa4972cd72fe000cec49632283d8f |
|
MD5 | d581c0030ba8332b8c2f426e1fd5c5f0 |
|
BLAKE2b-256 | 446d987602d958ba3df2302784681c38e85fc9916d464276c3980c3478cbad54 |
File details
Details for the file lofarantpos-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: lofarantpos-0.3.1-py3-none-any.whl
- Upload date:
- Size: 169.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130d603caba77f0d70f48ce485016437a456d52b0ad5c6c7038cc2da9447b400 |
|
MD5 | 746272de142d610dbc55a5d0ddb454cf |
|
BLAKE2b-256 | 404d44b0bd7dd3dcb174ba566bd4f4f48bb6083453ca87cf6409b6c58c67f313 |