lofarimaging/README-upstream.md

55 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2020-03-04 12:28:05 -07:00
# 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.
2020-04-01 01:06:41 -06:00
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).
2020-03-04 12:28:05 -07:00
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lofar-astron/lofarimaging/master?filepath=lofarimaging.ipynb)
### Installation
2020-04-01 00:49:37 -06:00
Download or clone this repository. To install, run
```
>>> python setup.py develop
```
Alternatively, install just the external requirements with
2020-03-04 12:28:05 -07:00
```
>>> 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
```
2017-08-08 03:34:41 -06:00
### To start the notebook
2020-03-04 12:28:05 -07:00
Open the notebook in a Jupyter notebook (or Jupyterlab) instance. You can start such an instance with
2017-08-08 03:34:41 -06:00
`>> jupyter notebook`
### To run the entire notebook
`Kernel > Restart & Run All`
### Notes
2020-03-04 12:28:05 -07:00
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.
2020-03-04 14:06:22 -07:00
### Release: Version 1.5
2020-03-04 12:28:05 -07:00
* 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
2018-09-23 15:54:42 -06:00
2020-03-04 14:06:22 -07:00
### Release: Version 1.4
2020-03-04 12:28:05 -07:00
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`.
2020-03-04 14:06:22 -07:00
### Release: Version 1.3
2020-03-04 12:28:05 -07:00
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](http://astron.nl/~moss/caltables.zip) (~65 MB download): , or download them from their [repository](https://svn.astron.nl/Station/trunk/CalTables).