extent_in_other_wcs#
- sunpy.util.extent_in_other_wcs(
- original_wcs,
- target_wcs,
- *,
- method,
- original_shape=None,
- integers=False,
Returns the pixel extent of one WCS in a different WCS.
- Parameters:
original_wcs (
WCS
) – The original WCStarget_wcs (
WCS
) – The target WCSmethod (
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
) – IfTrue
, round the output appropriately to integer values. Defaults toFalse
.
- Returns:
min_x, max_x, min_y, max_y (
float
orint
) – The pixel extent