Aperture

class dysmalpy.aperture_classes.Aperture(aper_center=None, nx=None, ny=None, partial_weight=True, moment=False)[source]

Bases: object

Base Aperture class, containting a single aperture from which to extract a 1D spectrum and flux, velocity, and dispersion.

aper_center, center_pixel should be in Pixel units, and in x,y coordinates

Shape aper_center: 2 ( [x0, y0] )

Methods Summary

define_aperture_mask()

extract_aper_kin([spec_arr, cube, err, ...])

Extract the kinematic information from the aperture LOS spectral distribution:

extract_aper_spec([spec_arr, cube, err, ...])

Extract the raw LOS spectral distribution for the cube (data or model).

Methods Documentation

define_aperture_mask()[source]
extract_aper_kin(spec_arr=None, cube=None, err=None, mask=None, spec_mask=None)[source]
Extract the kinematic information from the aperture LOS spectral distribution:

flux, velocity, dispersion.

spec_arr: the spectral direction array – eg, vel array or wave array.

extract_aper_spec(spec_arr=None, cube=None, err=None, mask=None, spec_mask=None, skip_specmask=False)[source]

Extract the raw LOS spectral distribution for the cube (data or model). If setting mask, this must be the CUBE mask.