One Pass Fitting Documentation

This is the documentation for One Pass Fitting.

Reference/API

one_pass_fitting Package

Functions

make_jwst_tweakreg_catfile(images, catalogs)

Create a catalog file associating images with their corresponding catalogs, for use in JWST TweakRegStep.

create_image_handlers(images[, catalogs])

Create a list of ImageHandler-like objects, to be used for catalog merging.

merge_catalogs(im_handlers[, match_size, ...])

Merge and aggregate multiple catalogs based on their positions in the output frame.

separate_and_agglomerate(xy_arr[, ...])

Separates and agglomerates data points into clusters based on distance in a multi-step process.

compute_coverage(cat, ref_wcs, wcs_list)

Computes how many exposures and seconds cover a catalog of positions in a drizzled frame.

make_model_image(data, cat, mod[, size])

Reconstructs image from psf models at given positions/fluxes

subtract_psfs(data, cat, mod[, size])

Subtracts PSF models from the specified positions in the data.

get_subtrahend(xs, ys, fluxes, mod, shape[, ...])

Constructs the image to be subtracted based on PSF models at given positions.

Classes

OnePassPhot(psf_model[, hmin, fmin, pmax, ...])

Perform one-pass photometry on an image using a PSF model.

one_pass_fitting.background_measurement Module

Contains utilities for estimating backgrounds using photutils aperture classes and clipped statistics

Functions

aperture_stats_tbl(data, apertures[, ...])

Computes mean/median/mode/std in Photutils apertures.

estimate_all_backgrounds(xs, ys, r_in, ...)

Compute sky values around (xs, ys) in data with specified annulus parameters

one_pass_fitting.data_handlers Package

This subpackage contains the classes that are used to set up the images/catalogs for merging (matching/averaging).

To extend this suite of tools for other instruments, subclass the ImageHandler class. More documentation regarding this subclassing coming soon.

Functions

find_catalogs(image)

For a given FITS image, return a list of Astropy Tables representing catalogs for each science extension.

Classes

ImageHandler(catalog)

Base class containing methods for corrections relevant for multiple detectors

WFC3UVISHandler(image, catalog)

ImageHandler subclass for HST WFC3/UVIS

WFC3IRHandler(image, catalog)

ImageHandler subclass for HST WFC3/IR

NIRCamHandler(image, catalog)

ImageHandler subclass for JWST NIRCam

MIRIHandler(image, catalog)

ImageHandler subclass for JWST MIRI