MosaicIndividualFieldsStep
This step will produce mosaics for each individual tile in a mosaic. This can be useful for e.g. large mosaics, where you may want to test something on a portion of the image before running on the full mosaic.
API
- class pjpipe.MosaicIndividualFieldsStep(target, band, in_dir, out_dir, procs, crf_ext='crf_tweakback', resample_parameters=None, parallel=True, overwrite=False)[source]
Mosaic each individual field in an observation set
N.B. This should be run on _crf_tweakback files, so this step assumes you’ve already run level 3 and any astrometric alignment.
- Parameters:
target – Target to consider
band – Band to consider
in_dir – Input directory for the crf files
out_dir – Where to save the mosaicked files to
procs – Number of processes to run in parallel
crf_ext – Extension for files to mosaic. Defaults to crf_tweakback
resample_parameters – Parameters to pass to the JWST resample step
overwrite – Whether to overwrite or not. Defaults to False
- do_step()[source]
Run mosaicking individual fields
- parallel_mosaic_fields(visit)[source]
Parallellise mosaicking
- Parameters:
visit – Visit to produce mosaic for
- run_step(individual_visits, procs=1)[source]
Wrap parallelism around mosaicking
- Parameters:
individual_visits – List of individual visits
procs – Number of parallel processes to run. Defaults to 1