Skip to main content
`Ctrl`+`K`

# values_to_high_level_objects

astropy.wcs.wcsapi.values_to_high_level_objects(*world_values, low_level_wcs)

  Convert low level values into high level objects.

  This function uses the information in `low_level_wcs.world_axis_object_classes` and `low_level_wcs.world_axis_object_components` to convert low level “values” `Quantity` objects, to high level objects (such as `SkyCoord`).

  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 `BaseLowLevelWCS` or `object`

      Source of the world axis metadata to use for the conversion. A full `BaseLowLevelWCS` instance is accepted, but any object exposing `world_axis_object_classes` and `world_axis_object_components` attributes also works (for example a `types.SimpleNamespace` or a namedtuple). The `serialized_classes` attribute is read if present and otherwise treated as `False`. This is useful when the metadata for the intended conversion direction does not match what a WCS exposes by default.