BaseHighLevelWCS

class astropy.wcs.wcsapi.BaseHighLevelWCS[source]

Bases: object

Abstract base class for the high-level WCS interface.

This is described in APE 14: A shared Python interface for World Coordinate Systems.

Attributes Summary

low_level_wcs Returns a reference to the underlying low-level WCS object.

Methods 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

low_level_wcs

Returns a reference to the underlying low-level WCS object.

Methods Documentation

array_index_to_world(*index_arrays)[source]

Convert array indices to world coordinates (represented by Astropy objects).

See array_index_to_world_values for pixel indexing and ordering conventions.

pixel_to_world(*pixel_arrays)[source]

Convert pixel coordinates to world coordinates (represented by high-level objects).

See pixel_to_world_values for pixel indexing and ordering conventions.

world_to_array_index(*world_objects)[source]

Convert world coordinates (represented by Astropy objects) to array indices.

See world_to_array_index_values for pixel indexing and ordering conventions. The indices should be returned as rounded integers.

world_to_pixel(*world_objects)[source]

Convert world coordinates (represented by Astropy objects) to pixel coordinates.

See world_to_pixel_values for pixel indexing and ordering conventions.