extent_in_other_wcs#

sunpy.util.extent_in_other_wcs(
original_wcs,
target_wcs,
*,
method,
original_shape=None,
integers=False,
)[source]#

Returns the pixel extent of one WCS in a different WCS.

Parameters:
  • original_wcs (WCS) – The original WCS

  • target_wcs (WCS) – The target WCS

  • method (str) – The method for determining the extent: ‘all’, ‘edges’, or ‘corners’

  • original_shape (2-element tuple) – The array shape of the original WCS. This is optional if it is already defined in original_wcs

  • integers (bool) – If True, round the output appropriately to integer values. Defaults to False.

Returns:

min_x, max_x, min_y, max_y (float or int) – The pixel extent