Utility Functions (photutils.utils)

Introduction

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

Reference/API

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.RandomState instance.
cutout_footprint(data, position[, box_size, …])

Deprecated since version 0.5.

filter_data(data, kernel[, mode, …]) Convolve a 2D image with a 2D kernel.
get_version_info() Return astropy and photutils versions.
interpolate_masked_data(data, mask[, error, …])

Deprecated since version 0.4.

make_random_cmap([ncolors, random_state]) Make a matplotlib colormap consisting of (random) muted colors.
mask_to_mirrored_num(image, mask_image, …) Replace masked pixels with the value of the pixel mirrored across a given center_position.
std_blocksum(data, block_sizes[, mask]) Calculate the standard deviation of block-summed data values at sizes of block_sizes.

Classes

ShepardIDWInterpolator(coordinates, values) Class to perform Inverse Distance Weighted (IDW) interpolation.

Class Inheritance Diagram

Inheritance diagram of photutils.utils.interpolation.ShepardIDWInterpolator