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 to numpy.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

frame

Generate the Frame for this LookupTable.

model

Generate the Astropy Model for this LookupTable.

n_inputs

Number of pixel dimensions in this table.

Methods Summary

is_scalar()

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 and ExtraCoords to know if the dimension has been “dropped”.