pyregion_subset

astroquery.alma.utils.pyregion_subset(region, data, mywcs)[source]

Return a subset of an image (data) given a region.

Parameters:
region : Shape

A Shape from a pyregion-parsed region file

data : np.ndarray

An array with shape described by WCS

mywcs : astropy.wcs.WCS

A world coordinate system describing the data