Utility Functions (photutils.utils)


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


General-purpose utility 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.
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.


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