EmissionLBV¶
-
modspectra.EmissionLBV(lbd_coords_withvel, density_gridin, cdelt, vel_disp, vmin, vmax, vel_resolution, L_range, B_range, species='hi', visualize=False, T_gas=<Quantity 120. K>, memmap=False, da_chunks_xyz=50, redden=None, case='B')[source]¶ Creates a Longitude-Latitude-Velocity SpectralCube object of neutral (HI 21cm) or ionized (H-Alpha) gas emission Uses output calculated from ‘modspectra.cube.EllipticalLBD’
Uses numexpr package to evaluate math
Parameters: lbd_coords_withvel: :class:’~astropy.coordinates.GalacticLSR’
astropy.coord array containing all coordinates corresponding to fabricated grid of points
dens_grid: ‘numpy.ndarray’
ndarray with shape (resolution) containing density of points in Longitude-Latitude-Distance grid axes order swapped to be ready for SpectralCube creation
cdelt: ‘numpy.ndarray’
ndarray with shape (3) containing the step size for Longitude, Latitude, and Distance used in the grid Used for WCS object creation in later instances
vel_disp: ‘number, Quantity
Velocity dispersion of the gas in units of km/s (if not Quantity)
vmin: ‘number, Quantity’
Min Velocity to create in grid in units of km/s (if not Quantity)
vmax: ‘number, Quantity’
Max Velocity to create in grid in units of km/s (if not Quantity)
vel_resolution: ‘int’
Resolution to Create along velocity axis
L_range: :list:’number’
Range of Longtiude to create grid over
B_range: :list:’number’
Range of Latitude to create grid over
species: ‘str’, optional, must be keyword of either ‘hi’ or ‘ha’
Specifies whether emission cube will be neutral (HI 21-cm) gas or ionized (H-Alpha) gas emission Defaults to HI netural gas
visualize: ‘bool’, optional, must be keyword
if using dask, returns dask visualization map
T_gas: ‘number, Quantity’, optional, must be keyword
Temperature of neutral HI 21-cm emitting gas in Kelvin Defaults to 120 K
memmap: ‘bool’, optional, must be keyword
if True, use dask for memory mapping when creating disk structure useful for higher resolution computes
da_chunks_xyz: ‘number’, optional, must be keyword
if memmap is True, sets the dask chunk size Default to 50, likely too small for efficiency
redden: ‘bool’, optional, must be keyword
if True, apply extinction corrections to emission using 3D dustmaps of Marshall et al. (2006) implemented via the dustmaps and extinction python packages
case: ‘str’, optional, must be keyword
if species is ‘ha’, then sets the recombination case to use Defaults to case B recombination
Returns: emission_cube: :class:’numpy.ndarray’
Emission values in DBL cube
DBL_wcs: ‘~astropy.wcs.WCS’
WCS information associated with emission_cube