high_level_objects_to_values#

astropy.wcs.wcsapi.high_level_objects_to_values(*world_objects, low_level_wcs)[source]#

Convert the input high level object to low level values.

This function uses the information in wcs.world_axis_object_classes and wcs.world_axis_object_components to convert the high level objects (such as SkyCoord) to low level “values” which should be scalars or Numpy arrays.

This is used in HighLevelWCSMixin.world_to_pixel, but provided as a separate function for use in other places where needed.

Parameters:
*world_objects: object

High level coordinate objects.

low_level_wcs: `.BaseLowLevelWCS`

The WCS object to use to interpret the coordinates.