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.

check_random_state(seed)

Turn seed into a numpy.random.mtrand.RandomState instance.

make_random_cmap([ncolors, random_state])

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

Classes

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.exceptions.NoDetectionsWarning, photutils.utils.interpolation.ShepardIDWInterpolator