LowerDimensionalObject¶
-
class
spectral_cube.lower_dimensional_structures.LowerDimensionalObject[source]¶ Bases:
astropy.units.Quantity,spectral_cube.base_class.BaseNDClassGeneric class for 1D and 2D objects.
Attributes Summary
arrayGet a pure array representation of the LDO. hduheaderquantityGet a pure Quantityrepresentation of the LDO.Methods Summary
to(unit[, equivalencies])Return a new LowerDimensionalObjectof the same class with the specified unit.write(filename[, format, overwrite])Write the lower dimensional object to a file. Attributes Documentation
-
array¶ Get a pure array representation of the LDO. Useful when multiplying and using numpy indexing tricks.
-
hdu¶
-
header¶
Methods Documentation
-
to(unit, equivalencies=[])[source]¶ Return a new
LowerDimensionalObjectof the same class with the specified unit.See
astropy.units.Quantity.tofor further details.
-