pyregion_subset

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

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

Parameters
regionShape

A Shape from a pyregion-parsed region file

datanp.ndarray

An array with shape described by WCS

mywcsastropy.wcs.WCS

A world coordinate system describing the data