MeerKAT demerit map utilities
Best to clone from github and use pip install from a setup virtual environment to install the scripts and their dependencies:
$ git clone https://github.com/mauch/demerit
$ pip install ./demerit
There are 3 scripts (in all cases use --help for further information):
-
make-demerit-map.pywill generate a FITS file with an all-sky demerit map for a selected band. Beware - this takes over 24 hours to run for an all-sky demerit map. -
get-demerit.pywill print information about the demerit score and bright sources at a given input position and band. -
plot-cum-demerit.pywill take a FITS file created bymake-demerit-map.pyand make png plots of the cumulative demerit score and the demerit map itself. It will also produce .npy files contain the derived cumulative distribution which can replace these contained in the static dir of the package. These .npy files are used to derive the per-cent of sky value reported by theget-demerit.pyscript.