craftutils.observation.epoch.SkyCoord.contained_by(wcs, image=None, **kwargs)

Determines if the SkyCoord is contained in the given wcs footprint.

Parameters

wcs~astropy.wcs.WCS

The coordinate to check if it is within the wcs coordinate.

imagearray

Optional. The image associated with the wcs object that the cooordinate is being checked against. If not given the naxis keywords will be used to determine if the coordinate falls within the wcs footprint.

**kwargs

Additional arguments to pass to ~astropy.coordinates.SkyCoord.to_pixel

Returns

responsebool

True means the WCS footprint contains the coordinate, False means it does not.