GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RhysAlfShaw/LCSpy: A python package that interacts with LoFAR LoTSS Survey Archives. Search for Sources, generate cutouts and download mosaics.

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
assets/images
assets/images
 
 
src/LCSpy
src/LCSpy
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
setup.cfg
setup.cfg
 
 
test.py
test.py
 
 

Repository files navigation

LoFAR Survey Archive - Python Package

This small package makes it easier to interface with LoFAR LoTSS archives.

Table of Contents

  1. Installation
  2. Searching the Source Catalogue
  3. Generate Image Cutouts
  4. Downloading Mosaic Data

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.

About

A python package that interacts with LoFAR LoTSS Survey Archives. Search for Sources, generate cutouts and download mosaics.

Topics

astrophysicslofarpythonradio-astronomy

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.