Python script for interpolating FITS model images over frequency
Project description
smops (aka Smooth Operator) is a python package for interpolating channelised FITS model images onto user-specified higher resolution frequency grid. For example, you can give smops a set of 4 per-subband model FITS images, and ask it to return 16 model images, which can then be fed back into e.g. wsclean for a predict operation. Usage:
smops --ms /ms/used/togen/images.ms -ip prefix-used-for-those-images -co 16 -order 4
Its options are:
usage: smops [-h] [-v] [-op] [-j] [-s] [-mem] -ms -ip -co [-order]
Refine model images in frequency
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-op , --output-prefix
What to prefix the new interpolated model name with.
-j , --num-threads Number of threads to use while writing out output images
-s , --stokes Which stokes model to extrapolate. Write as single string e.g IQUV. Required when there are multiple Stokes
images in a directory. Default 'I'.
-mem , --max-mem Approximate memory cap in GB
Required arguments:
-ms , --ms Input MS. Used for getting reference frequency
-ip , --input-prefix
The input image prefix. The same as the one used for wsclean
-co , --channels-out
Number of channels to generate out
-order , --polynomial-order
Order of the spectral polynomial
Free software: MIT license
Credits
This package is a brain child of @o-smirnov x @landmanbester and is under @ratt-ru.
It was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smops-0.1.6.tar.gz
(11.6 kB
view hashes)
Built Distribution
Close
Hashes for smops-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c9d2887e351f3747c7913314db7b1ea286e12287da9ac7e7f7739972276d34 |
|
MD5 | 37f23fb9fa0f173234cddb23583684a4 |
|
BLAKE2b-256 | 6c27a05892aa5ac39ac24f9b4ebf4f22cb3a229818b5936e426aadfd3085f9fc |