suncasa.eovsa.wrap_wsclean

Originally written by Dr. Peijin Zhang @peijin94 Major revision by Dr. Sijie Yu @sageyu123

Attributes

WSCLEAN_BIN

wsclean

Classes

WSClean

Functions

format_duration(seconds)

Format seconds into appropriate unit string.

runtime_report(func)

Decorator to report runtime of a function and log completion time.

_resolve_wsclean_bin()

Return the preferred WSClean executable path for EOVSA.

Module Contents

suncasa.eovsa.wrap_wsclean.format_duration(seconds)[source]

Format seconds into appropriate unit string.

suncasa.eovsa.wrap_wsclean.runtime_report(func)[source]

Decorator to report runtime of a function and log completion time.

suncasa.eovsa.wrap_wsclean._resolve_wsclean_bin()[source]

Return the preferred WSClean executable path for EOVSA.

Prefer the EOVSA compatibility wrapper, which depends on casacore2 and the legacy runtime libraries required by the current server build.

suncasa.eovsa.wrap_wsclean.WSCLEAN_BIN = '/usr/local/bin/wsclean-eovsa'[source]
class suncasa.eovsa.wrap_wsclean.WSClean(vis: str)[source]
vis[source]
params[source]
setup(**kwargs)[source]

Set WSClean parameters

Parameters:

sizeint or list, optional

Image size in pixels [width, height] or single value for square

scalestr, optional

Pixel scale (e.g., “2.5asec”)

weight_briggsfloat, optional

Briggs robust parameter

niterint, optional

Number of clean iterations

mgainfloat, optional

Major cycle gain

data_columnstr, optional

Data column to image

namestr, optional

Output name prefix

multiscalebool, optional

Enable multiscale clean

auto_maskfloat, optional

Auto-masking threshold

auto_thresholdfloat, optional

Auto threshold value

local_rmsbool, optional

Enable local RMS

no_update_modelbool, optional

Disable model data updates

intervals_outint, optional

Number of time intervals

spwslist or str, optional

Spectral windows to image

polstr, optional

Polarization to image

no_negativebool, optional

Prevent negative components

beam_sizefloat, optional

Beam size in arcsec

quietbool, optional

Suppress output

circular_beambool, optional

Use circular beam

build_command() str[source]

Build wsclean command

run(dryrun: bool = False) int[source]

Run wsclean command

Parameters:

dryrunbool, optional

If True, only print the command without executing

Returns:

int

Return code from wsclean execution

suncasa.eovsa.wrap_wsclean.wsclean[source]