ism3d.xyhelper.maskmoment.momfuncs

Functions

calc_moments

Calculate moments of a masked cube and their errors

dilmsk

Dilate a mask from one specified threshold to another.

findflux

Calculate integrated spectrum and total integrated flux.

makenoise

Given a data cube and an optional gain cube, estimate the noise at each position, using the robust mad_std estimator in astropy.

maskguard

Pad a mask by specified number of pixels in all three dimensions.

prunemask

Apply area and velocity width criteria on mask regions.

smcube

Smooth an SNRcube to produce a higher signal-to-noise SNRcube.

writemom

Write out a moment map as a FITS file.