Forklet of LOFAR single station imaging. https://spacecruft.org/spacecruft/lofarimaging
 
 
Go to file
Tammo Jan Dijkema 95953a26d0
Make comment match fixed code
2020-12-03 11:39:11 +01:00
.github/workflows Do not crash CI on codecov unavailability 2020-03-14 22:39:55 +01:00
lofarimaging Make comment match fixed code 2020-12-03 11:39:11 +01:00
test Add test caltables for lba sparse 2020-12-03 11:18:16 +01:00
.gitignore Ignore CalTables in git 2020-04-22 09:14:36 +02:00
CONTRIBUTORS.txt Add CONTRIBUTORS.txt 2020-03-04 19:10:41 +01:00
LICENSE Create LICENSE 2020-03-04 19:13:10 +01:00
README.md Modify wording 2020-04-01 18:06:41 +11:00
collect_from_opcua.py Use other freqs in collect_from_opcua 2020-05-28 11:31:09 +02:00
hdf5_tools.ipynb Add notebook with HDF5 utilities 2020-04-24 16:45:02 +02:00
image_opcua.ipynb Replace image_opcua notebook output 2020-03-24 12:51:11 +01:00
lofarimaging.ipynb Remove unused variable 2020-12-03 11:26:04 +01:00
requirements.txt Add tqdm to requirements 2020-04-30 17:11:05 +02:00
setup.py Add tqdm to requirements 2020-04-30 17:11:05 +02:00
viewer.ipynb Refactor make_xst_plots to get array data 2020-03-23 18:28:29 +01:00

README.md

LOFAR single station imaging

This repository contains code for imaging LOFAR data with direct Fourier transforms. This is a straightforward way to image single station data, or data from a limited number of baselines. Both sky images and near-field (ground) images are supported.

For imaging larger LOFAR data sets (in Measurement Sets), see the LOFAR imaging cookbook.

Much of the code in this repository was originally written by Vanessa Moss (https://github.com/cosmicpudding), based on a LOFAR imaging tutorial by Michiel Brentjens (https://github.com/brentjens).

Binder

Installation

Download or clone this repository. To install, run

>>> python setup.py develop

Alternatively, install just the external requirements with

>>> pip install -r requirements.txt

If you want to use calibration tables, download them from ASTRON, e.g. through

>>> svn co https://svn.astron.nl/Station/trunk/CalTables

To start the notebook

Open the notebook in a Jupyter notebook (or Jupyterlab) instance. You can start such an instance with >> jupyter notebook

To run the entire notebook

Kernel > Restart & Run All

Notes

This code ships with an example XST-dataset (20170720_095816_mode_3_xst_sb297.dat), obtained using station DE603LBA, specifically collecting data in subband 297 (58 MHz). It should run on any other XST-dataset, provided the station name is changed accordingly. By default, the code visualises timestep #0 of the 30 timesteps of integration, but this can also be modified to any other time slice.

Release: Version 1.5

  • Overlay the ground plot on a satellite image (both in a static PNG and as a Leaflet overlay in the notebook)
  • Annotate CygA, CasA and Sun on the sky plot
  • Support HBA imaging using one tile per element
  • Use station rotations from lofarantpos
  • Rotate the antennas, not the image
  • Show longitude and latitute of maximum pixel
  • Speed up the code somewhat by using numba and numexpr
  • Move some code from the notebook to a python file

Release: Version 1.4

Update to automatically parse some information from data file names, based on the wrapper script written by Mattia Mancini for recording station data (e.g. https://svn.astron.nl/viewvc/LOFAR/trunk/LCU/StationTest/rspctlprobe.py). Some formatting removed for compatibility with different operating systems. To obtain the LOFAR antenna database needed for antenna positions, please install: pip install lofarantpos.

Release: Version 1.3

Notebook has been updated to include station calibration for LBA (HBA to come later). This requires the "caltables" folder to be in the same directory as the notebook, but that can be changed as long as the location is changed also in the function. The calibration tables themselves are not included in this repository due to their size, but you can access them here (~65 MB download): , or download them from their repository.