Skip to main content

psimager

Fast dirty imaging of measurement sets for power spectrum analyses: dirty Stokes and PSF images with the ducc0 w-gridder, with the options, file names and FITS keywords of WSClean, so that pspipe and ps_eor read them as WSClean images.

The MSs are read once, in large row chunks, and the output channels are gridded in parallel, each by one ducc0 call. Imaging many channels is then many times faster than with WSClean, which reorders the data on disk and grids one image at a time.

Installation

pip install psimager

Usage

psimager -name img -size 400 400 -scale 6amin -pol IV -channels-out 363 -weight natural \
    -minuv-l 5 -maxuv-l 100 -data-column CORRECTED_DATA -even-odd -make-psf -no-dirty obs*.MS

writes img-even-0000-I-image.fits, img-even-0000-V-image.fits, img-even-0000-psf.fits, ..., for each output channel, for the even and the odd time steps.

Options

As WSClean's: -name, -data-column, -pol, -size, -scale, -channel-range, -channels-out, -interval, -intervals-out, -even-timesteps, -odd-timesteps, -minuv-l, -maxuv-l, -minuvw-m, -maxuvw-m, -weight natural|uniform|briggs ROBUST, -visibility-weighting-mode, -taper-edge, -padding (of the weighting grid), -wgridder-accuracy, -j, -parallel-gridding, -mem, -abs-mem, -make-psf, -no-dirty. See psimager --help.

Differences with WSClean:

  • -even-odd images the even and the odd time steps in one pass, as NAME-even-* and NAME-odd-*.
  • -parallel-gridding defaults to -j: one thread per output channel, which is the fastest.
  • No deconvolution and no -MFS- images.
  • WSClean's gridding options (-oversampling, -kernel-size, -nwlayers, -grid-mode, -reorder, -temp-dir, ...) are accepted and ignored, with a warning, so that a WSClean command line runs unchanged.
  • Only single-field, single-SPW MSs with linear correlations.

The data are read in chunks of at most 30 GB by default (-abs-mem), or -mem % (33) of the node's memory if smaller, so that several psimager runs can share a node, e.g. as job steps of a Slurm allocation; give -abs-mem to use more on a node of its own.

Images are in Jy/PSF (the PSF peaks at 1), one file per output channel and Stokes parameter, with WSClean's WSCNVIS, WSCENVIS, WSCVWSUM, WSCIMGWG and WSCNORMF computed from the Stokes I weights, and BMAJ, BMIN, BPA fitted to the PSF.

Metadata

Release files for psimager 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psimager 0.2
File Size Uploaded Provenance Actions
psimager-0.2.tar.gz 25.8 kB Without provenance Details for psimager-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psimager 0.2
File Interpreter ABI Platform Actions
psimager-0.2-py3-none-any.whl Python 3 none any Details for psimager-0.2-py3-none-any.whl

Total release size: 52.4 kB

Release files / psimager-0.2.tar.gz

Download URL psimager-0.2.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b9aa39533c4c73ec830d40258ecc172d8005f9db7e41ee1dc1fbc3205a1650d1
BLAKE2b-256 checksum
How to use checksums
f71318b01866beeee7c9b917a476e17b99a80ad528e8446fe8c228850f4bc6d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.14 Linux/7.0.0-38-generic

Release files / psimager-0.2-py3-none-any.whl

Download URL psimager-0.2-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef5c944837a0c093629bc6fc05f682edb845296ca6c0bb77a7e8428df2720d56
BLAKE2b-256 checksum
How to use checksums
61ecc5ee52bcd6229d315bfaac0836e7713a66cb877bccfec67d0ebfa868bad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.14 Linux/7.0.0-38-generic

Security for psimager 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page