stackfactory API Reference
Make stacks from a set of chip images.
-
class skyoffset.stackfactory.ChipStacker(stackdb, workdir, swarp_configs=None)[source]
General-purpose class for stacking single-extension FITS, adding a
sky offset to achieve uniform sky bias.
Parameters: | stackdb : skyoffset.imagedb.MosaicDB instance
The MosaicDB instance to store stack documents in.
workdir : str
Directory to make stacks in. This directory will be created if
necessary.
swarp_configs : dict
A dictionary of configurations to pass to
moastro.astromatic.Swarp.
|
-
pipeline(stack_name, image_keys, image_paths, weight_paths, noise_paths=None, db_meta=None)[source]
Pipeline for running the ChipStacker method to produce stacks
and addd them to the stack DB.
Parameters: | stack_name : str
Name of the stack being produced (for filenames and MongoDB
document ``_id``s.
image_keys : list
List of image identifier strings (can be image keys from your
moastro.imagelog.ImageLog.
image_paths : list
List of paths (strings) to images being stacked.
weight_paths : list
List of paths (strings) to weight maps, corresponding to
image_paths.
noise_paths : list
List of paths (strings) to noise maps, corresponding to
iamge_paths.
dbmeta : dict
Arbitrary metadata to store in the stack’s StackDB document.
|