This repository contains the code of VAST Post-Processing, which further processes ASKAP-VAST observation data.
- Code base in
Python 3.9.x
- Crops and corrects FITS images
- Crops and corrects catalogues
- Generates MOCs and STMOCs
- Clone this repository onto your local machine.
git clone [email protected]:askap-vast/vast-post-processing.git
- Navigate to the repository.
cd vast-post-processing/
- Install Poetry and Poe the Poet.
pip install poetry
pip install poethepoet
- Install the rest of this package's dependencies with Poetry.
poetry install
- The package is now installed. You can enter a virtual environment with
poetry shell
This project is separated by module. The following modules are available by command.
link_neighbours
convolve_neighbours
swarp_neighbours
selavy_prepare
crop_fields
To run the main program, run
vast_post_processing --data-root <DIRECTORY>
The test suite expects at least one image observation, and its corresponding data files. To check for the existence and organisation of the test data, run the data test subsuite.
- Follow the installation instructions above, and if not already entered, enter
the
vast-post-processing
environment with
poetry shell
- Test for local test data existence with
pytest tests/data/test_data.py
- If all tests pass, proceed to develop your own tests. Otherwise, your test
data directory is not initialised or configured correctly. Run the
pull_data
script with
pull_test_data
This process will take several minutes.
Note this script requires ssh
access to the vast-data
virtual system. Read
here for more
information.
You can edit various settings and which observations to pull in
tests/data/pull_config.yaml
.
- After test data has been downloaded, the fixtures found in the various
conftest.py
files will resolve, and all current tests should pass. Future tests can now be implemented as well.