scopesim.source.source_fields.HDUSourceField#
- class scopesim.source.source_fields.HDUSourceField(*args, **kwargs)#
Bases:
SourceFieldBase class for source fields with HDU.
Added in version 0.9.0.
Methods
__init__(field, *[, meta])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.
Shortcut 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.
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.