A package to make calling cutouts and catalogues from the LoFAR survey easier.
Project description
LoFAR Survey Archive - Python Package
This small package makes it easier to interface with LoFAR LoTSS archives.
Table of Contents
Installation
This package can be installed using pip.
pip install LCSpy
Dependencies:
- Astropy
- requests
- json
- numpy
Dev-dependencies (optional)
- unittest
Searching the Source Catalogue.
import LCSpy
Sources = LCSpy.LoFAR_cat_search(ra={'h':15,'m':16,'s':12.35},dec={'h':45,'m':36,'s':03.1},sr=1)
Sources.total_data
Output: [['ILTJ151614.06+453524.4',229.058578709231,0.340728573673463,45.5901286238848,0.230064337704425,0.752771173177558,0.0656867834991941,1.18621806479747,0.156623581872246, ... ]
Alternatively you can ...
print('Name: ',Sources.Name)
print('Ra: ',Source.Ra)
print('Dec: ',Source.Dec)
print('Mosaic_id: ',Source.Mosiac_id)
Output:
Name: ILTJ151614.06+453524.4
Ra: 229.058578709231
Dec: 45.5901286238848
Mosaic_id: P229+45
Generate Image Cutouts.
import LCSpy
import matplotlib.pylab as plt
Image = LCSpy.cutout2d(ra=229.0586,dec=45.5901,size=0.05)
plt.imshow(Image.hdul[0].data)
plt.show()
Downloading Mosaic Data
import LCSpy
LCSpy.download_mosiac(save_dir='/USER/PARENT_DIRECTORY',mosaic_id='P200+55')
This will download the full mosiac.fits file to your choosen directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file LCSpy-0.0.3.tar.gz.
File metadata
- Download URL: LCSpy-0.0.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
738e3e9fa0a7d2d425571bcdcc09fbbb8e27ecc9386325ff2cff9de30789043a
|
|
| MD5 |
89f94e36a5c9d0fd380ab43907cb4b25
|
|
| BLAKE2b-256 |
be8f6589a53c9f9e1454bfbb9552bd41d2dff7cb57b0f627044b5979a7995fac
|
File details
Details for the file LCSpy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: LCSpy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e304315801c2fe222a490fc31dbce78b7e8507ec7e7edfacc5c0efcbcaf5d94
|
|
| MD5 |
2c5bd5ceda4fe119c10ade702ced42e6
|
|
| BLAKE2b-256 |
0e1f21eb54891c4e5458cb256869ab5f07fc5326de9b31de7da0ba4105bc1812
|