SkyCoordTableCoordinate

class ndcube.extra_coords.table_coord.SkyCoordTableCoordinate(*tables, mesh=False, names=None, physical_types=None)[source]

Bases: BaseTableCoordinate

A lookup table created from a SkyCoord.

If mesh is True in this class then numpy.meshgrid is called when the class is constructed, this is to allow slicing operations on the tables which make the length of the dimensions different.

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

combine_slices(slice1, slice2)

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

static combine_slices(slice1, slice2)[source]
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”.