Connected-region stamps
Connected-region stamp mode builds irregular fitting regions from a star catalog instead of the classic rectangular grid search. It is available only in the pure Python backend.
Requirements
use_c_extension=Falseconfig.stamp_mode = "connected_regions"A
star_catalogarray of shape(N, 2)(FITS 1-based coordinates, same convention as elsewhere inHotpants)
Example
from hotpants import Hotpants, HotpantsConfig
config = HotpantsConfig(
stamp_mode="connected_regions",
region_max_diameter=40.0,
# other kernel / noise parameters as usual...
)
hp = Hotpants(
template,
science,
star_catalog=catalog_xy, # shape (N, 2), FITS 1-based
config=config,
use_c_extension=False,
)
results = hp.run_pipeline()