Utility Functions (photutils.utils)

Introduction

The photutils.utils package contains general-purpose utility functions.

Reference/API

This subpackage provides general-purpose utility functions.

Functions

calc_total_error(data, bkg_error, effective_gain)

Calculate a total error array, combining a background-only error array with the Poisson noise of sources.

circular_footprint(radius[, dtype])

Create a circular footprint.

make_random_cmap([ncolors, seed])

Make a matplotlib colormap consisting of (random) muted colors.

Classes

CutoutImage(data, position, shape[, mode, ...])

Create a cutout object from a 2D array.

ImageDepth(aper_radius, *[, nsigma, ...])

Class to calculate the limiting flux and magnitude of an image.

NoDetectionsWarning

A warning class to indicate no sources were detected.

ShepardIDWInterpolator(coordinates, values)

Class to perform Inverse Distance Weighted (IDW) interpolation.

Class Inheritance Diagram

Inheritance diagram of photutils.utils.cutouts.CutoutImage, photutils.utils.depths.ImageDepth, photutils.utils.exceptions.NoDetectionsWarning, photutils.utils.interpolation.ShepardIDWInterpolator