MultipleTableCoordinate#
- class ndcube.extra_coords.MultipleTableCoordinate(*table_coordinates)[source]#
- Bases: - BaseTableCoordinate- A Holder for multiple - ndcube.extra_coords.BaseTableCoordinateobjects.- This class allows the generation of a gWCS from many - BaseTableCoordinateobjects.- Parameters:
- lookup_tables ( - BaseTableCoordinate) – One or more lookup table coordinate classes to combine into a gWCS object.
 - Notes - The most useful method of constructing a - LookupTableCoordclass is to combine multiple instances of- BaseTableCoordinatewith the- &operator.- Attributes Summary - The gWCS coordinate frame for all the lookup tables. - The combined astropy model for all the lookup tables. - Number of pixel dimensions in this table. - Methods Summary - interpolate(new_array_grids, **kwargs)- Interpolate MultipleTableCoordinate to new array index grids. - Return a boolean if this coordinate is a scalar. - Attributes Documentation - dropped_world_dimensions#
 - frame#
- The gWCS coordinate frame for all the lookup tables. 
 - model#
- The combined astropy model for all the lookup tables. 
 - n_inputs#
 - Methods Documentation - interpolate(new_array_grids, **kwargs)[source]#
- Interpolate MultipleTableCoordinate to new array index grids. - Kwargs are passed to underlying interpolation function. - Parameters:
- new_array_grids (array-like) – The array index values at which the the new values of the coords are desired. A grid must be supplied for each pixel axis (in array-axis order). All grids must be the same shape. 
- Returns:
- new_coord ( - MultipleTableCoordinate) – New TableCoordinate object holding the interpolated coords.
 
 - is_scalar()[source]#
- Return a boolean if this coordinate is a scalar. - This is used by - MultipleTableCoordinateand- ndcube.ExtraCoordsto know if the dimension has been “dropped”.
 
