HighLevelWCSMixin¶
-
class
astropy.wcs.wcsapi.
HighLevelWCSMixin
[source]¶ Bases:
astropy.wcs.wcsapi.BaseHighLevelWCS
Mix-in class that automatically provides the high-level WCS API for the low-level WCS object given by the
low_level_wcs
property.Attributes Summary
Returns a reference to the underlying low-level WCS object.
Methods Summary
pixel_to_world
(self, *pixel_arrays)Convert pixel coordinates to world coordinates (represented by high-level objects).
world_to_pixel
(self, *world_objects)Convert world coordinates (represented by Astropy objects) to pixel coordinates.
Attributes Documentation
-
low_level_wcs
¶ Returns a reference to the underlying low-level WCS object.
Methods Documentation
-
pixel_to_world
(self, *pixel_arrays)[source]¶ Convert pixel coordinates to world coordinates (represented by high-level objects).
If a single high-level object is used to represent the world coordinates (i.e., if
len(wcs.world_axis_object_classes) == 1
), it is returned as-is (not in a tuple/list), otherwise a tuple of high-level objects is returned. Seepixel_to_world_values
for pixel indexing and ordering conventions.
-
world_to_pixel
(self, *world_objects)[source]¶ Convert world coordinates (represented by Astropy objects) to pixel coordinates.
If
pixel_n_dim
is1
, this method returns a single scalar or array, otherwise a tuple of scalars or arrays is returned. Seeworld_to_pixel_values
for pixel indexing and ordering conventions.
-