Functions | |
def | makemask |
def | findnearest |
def | regridmask |
def | addimagemask |
def | expandchanmask |
def | translatefreqrange |
def | checkinput |
def | checkinmask |
def | extractmaskname |
def | makeEmptyimage |
def task_makemask.addimagemask | ( | sumimage, | |
imagetoadd, | |||
threshold = 0.0 |
|||
) |
add image masks (assumed the images are already in the same coordinates)
Definition at line 849 of file task_makemask.py.
References taskinit.gentools().
Referenced by makemask().
def task_makemask.checkinmask | ( | parentimage, | |
tfmaskname | |||
) |
check existance of the internal mask
Definition at line 939 of file task_makemask.py.
Referenced by checkinput(), and makemask().
def task_makemask.checkinput | ( | inpname | ) |
do existance check on image and internal mask
Definition at line 919 of file task_makemask.py.
References checkinmask(), and extractmaskname().
Referenced by makemask().
def task_makemask.expandchanmask | ( | inimage, | |
inchans, | |||
outimage, | |||
outchans | |||
) |
expand masks in channel direction,and insert then to output image with the same coordinates (post-regridded) only differ by channels
Definition at line 859 of file task_makemask.py.
References findnearest().
Referenced by makemask().
def task_makemask.extractmaskname | ( | maskname | ) |
split out imagename and maskname from a maskname string returns (parentimage, internalmask)
Definition at line 957 of file task_makemask.py.
Referenced by checkinput(), and makemask().
def task_makemask.findnearest | ( | arr, | |
val | |||
) |
Definition at line 795 of file task_makemask.py.
Referenced by expandchanmask().
def task_makemask.makeEmptyimage | ( | template, | |
outimage | |||
) |
make an empty image with the coords from template
Definition at line 980 of file task_makemask.py.
References taskinit.gentools().
Referenced by makemask().
def task_makemask.makemask | ( | mode, | |
inpimage, | |||
inpmask, | |||
output, | |||
overwrite, | |||
inpfreqs, | |||
outfreqs | |||
) |
make /manipulate masks
Definition at line 64 of file task_makemask.py.
References addimagemask(), checkinmask(), checkinput(), expandchanmask(), extractmaskname(), taskinit.gentools(), makeEmptyimage(), recipes.pixelmask2cleanmask.pixelmask2cleanmask(), regridmask(), irc_cs_task_regression.sum, and translatefreqrange().
def task_makemask.regridmask | ( | inputmask, | |
template, | |||
outputmask, | |||
axes = [3 , |
|||
method = 'linear' , |
|||
chanrange = None |
|||
) |
Regrid input mask (image) to output mask using a template. Currently the template must be a CASA image. The default interpolation method is set to 'linear' (since 'nearest' sometime fails).
Definition at line 802 of file task_makemask.py.
References taskinit.gentools().
Referenced by makemask().
def task_makemask.translatefreqrange | ( | freqrange, | |
csys | |||
) |
convert the range in list mainly for frequeny and velocity range determination
Definition at line 900 of file task_makemask.py.
Referenced by makemask().