scopesim.source.source_fields.CubeSourceField#
- class scopesim.source.source_fields.CubeSourceField(*args, **kwargs)#
Bases:
HDUSourceFieldSource field with 3D data cube.
Added in version 0.9.0.
- __init__(field: ~astropy.io.fits.hdu.image.ImageHDU, from_hdul: bool = False, *, meta: dict = <factory>) None#
Methods
__init__(field[, from_hdul, meta])from_hdulist(hdulist[, ext])Load source cube from HDUL.
get_corners([unit])Calculate and return footprint corner points in unit.
plot(axes, color)Plot source.
shift(dx, dy)Shift source by dx, dy.
Attributes
Extract BUNIT from header and parse into astropy Unit.
Shortcut for field.data.
from_hdulShortcut for field.header.
Shortcut for field.data.shape.
Return True if BUNIT includes any "per solid angle" parts.
Name of the object (if set).
Area covered by one pixel in arcsec**2.
Construct wavelength axis for cube in um.
Construct wavelength axis for cube in um.
wcsfieldmeta- property bunit: Unit#
Extract BUNIT from header and parse into astropy Unit.
If the BUNIT keyword is not present in the header, this will return the dimensionless unit, which should result in consistent behavior.
Added in version 0.11.1.
- get_corners(unit: Unit | str = 'arcsec') ndarray#
Calculate and return footprint corner points in unit.
- property is_bunit_spatially_differential: bool#
Return True if BUNIT includes any “per solid angle” parts.
Added in version 0.11.1.
- property pixel_area: Annotated[Quantity, Unit('arcsec2')]#
Area covered by one pixel in arcsec**2.
Added in version 0.11.1.