HighLevelWCSWrapper¶
-
class
astropy.wcs.wcsapi.HighLevelWCSWrapper(low_level_wcs)[source]¶ Bases:
astropy.wcs.wcsapi.HighLevelWCSMixinWrapper class that can take any
BaseLowLevelWCSobject and expose the high-level WCS API.Attributes Summary
See
array_shapeReturns a reference to the underlying low-level WCS object.
See
pixel_boundsSee
world_n_dimSee
world_axis_unitsSee
world_n_dimMethods Summary
array_index_to_world(*index_arrays)Convert array indices to world coordinates (represented by Astropy objects).
pixel_to_world(*pixel_arrays)Convert pixel coordinates to world coordinates (represented by high-level objects).
world_to_array_index(*world_objects)Convert world coordinates (represented by Astropy objects) to array indices.
world_to_pixel(*world_objects)Convert world coordinates (represented by Astropy objects) to pixel coordinates.
Attributes Documentation
-
array_shape¶ See
array_shape
-
axis_correlation_matrix¶
-
low_level_wcs¶
-
pixel_bounds¶ See
pixel_bounds
-
pixel_n_dim¶ See
world_n_dim
-
world_axis_physical_types¶
-
world_axis_units¶ See
world_axis_units
-
world_n_dim¶ See
world_n_dim
Methods Documentation
-
array_index_to_world(*index_arrays)¶ Convert array indices to world coordinates (represented by Astropy 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. Seearray_index_to_world_valuesfor pixel indexing and ordering conventions.
-
pixel_to_world(*pixel_arrays)¶ 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_valuesfor pixel indexing and ordering conventions.
-
world_to_array_index(*world_objects)¶ Convert world coordinates (represented by Astropy objects) to array indices.
If
pixel_n_dimis1, this method returns a single scalar or array, otherwise a tuple of scalars or arrays is returned. Seeworld_to_array_index_valuesfor pixel indexing and ordering conventions. The indices should be returned as rounded integers.
-
world_to_pixel(*world_objects)¶ Convert world coordinates (represented by Astropy objects) to pixel coordinates.
If
pixel_n_dimis1, this method returns a single scalar or array, otherwise a tuple of scalars or arrays is returned. Seeworld_to_pixel_valuesfor pixel indexing and ordering conventions.
-