values_to_high_level_objects#
- astropy.wcs.wcsapi.values_to_high_level_objects(*world_values, low_level_wcs)[source]#
Convert low level values into high level objects.
This function uses the information in
low_level_wcs.world_axis_object_classesandlow_level_wcs.world_axis_object_componentsto convert low level “values”Quantityobjects, to high level objects (such asSkyCoord).This is used in
HighLevelWCSMixin.pixel_to_world, but provided as a separate function for use in other places where needed.- Parameters:
- *world_values
ArrayLike Low level, “values” representations of the world coordinates.
- low_level_wcs
BaseLowLevelWCSorobject Source of the world axis metadata to use for the conversion. A full
BaseLowLevelWCSinstance is accepted, but any object exposingworld_axis_object_classesandworld_axis_object_componentsattributes also works (for example atypes.SimpleNamespaceor a namedtuple). Theserialized_classesattribute is read if present and otherwise treated asFalse. This is useful when the metadata for the intended conversion direction does not match what a WCS exposes by default.
- *world_values