Region

class jwst.skymatch.region.Region(rid, coordinate_system)[source]

Bases: object

Base class for regions.

Parameters:
  • rid (int or string) – region ID

  • coordinate_system (astropy.wcs.CoordinateSystem instance or a string) – in the context of WCS this would be an instance of wcs.CoordinateSysem

Methods Summary

scan(mask)

Sets mask values to region id for all pixels within the region.

Methods Documentation

scan(mask)[source]

Sets mask values to region id for all pixels within the region. Subclasses must define this method.

Parameters:

mask (ndarray) – a byte array with the shape of the observation to be used as a mask

Returns:

mask – pixels which are not included in any region).

Return type:

array where the value of the elements is the region ID or 0 (for