QuantityTableCoordinate¶
- class ndcube.extra_coords.table_coord.QuantityTableCoordinate(*tables, mesh=False, names=None, physical_types=None)[source]¶
Bases:
BaseTableCoordinate
A lookup table made up of
N
Quantity
objects.This class can either be instantiated with N ND arrays (i.e. the output of
numpy.meshgrid
) or N 1D arrays (i.e. the input tonumpy.meshgrid
).Notes
The reason for supporting both the input and output of meshgrid is that meshgrid isn’t called when
mesh=True
, the “meshing” is done in the gWCS layer.Attributes Summary
Generate the Frame for this LookupTable.
Generate the Astropy Model for this LookupTable.
Number of pixel dimensions in this table.
Methods Summary
Return a boolean if this coordinate is a scalar.
Attributes Documentation
- frame¶
Generate the Frame for this LookupTable.
- model¶
Generate the Astropy Model for this LookupTable.
- n_inputs¶
Methods Documentation
- is_scalar()[source]¶
Return a boolean if this coordinate is a scalar.
This is used by
MultipleTableCoordinate
andExtraCoords
to know if the dimension has been “dropped”.