Skip to main content

Python script for interpolating FITS model images over frequency

Project description

https://img.shields.io/pypi/v/smops.svg

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.4.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

smops-0.1.4-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file smops-0.1.4.tar.gz.

File metadata

  • Download URL: smops-0.1.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for smops-0.1.4.tar.gz
Algorithm Hash digest
SHA256 21043903fbf617528787b789e2a9590f0029ea985985bbba50fd89cbf1e1dad0
MD5 506e4c6de68715e26102ba785e84d3e6
BLAKE2b-256 c425e8d14f709cd0ef3df16473c5c6d3642adaeb291964f616958288988923dd

See more details on using hashes here.

File details

Details for the file smops-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: smops-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for smops-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 21ad86946bf8c1c050d7447d1635fbea21d58faa007cfa371a17357194d8dca7
MD5 da83c93801ddf14e8ce751f5c64e7ef7
BLAKE2b-256 d6a4b15db5a157d707dd49c84aefad3f36edf5b1803bf3d40e58ba1c0c229259

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page