Datasets and Simulation (photutils.datasets)#

This subpackage contains tools for loading datasets or making simulated data.

These tools are typically used in examples, tutorials, and tests but can also be used for general data analysis or exploration.

Functions#

apply_poisson_noise(data[, seed])

Apply Poisson noise to an array, where the value of each element in the input array represents the expected number of counts.

get_path(filename[, location, cache, ...])

Get the local path for a given file.

load_irac_psf(channel[, show_progress])

Load a Spitzer IRAC PSF image.

load_simulated_hst_star_image([show_progress])

Load a simulated HST WFC3/IR F160W image of stars.

load_spitzer_catalog([show_progress])

Load a 4.5 micron Spitzer catalog.

load_spitzer_image([show_progress])

Load a 4.5 micron Spitzer image.

load_star_image([show_progress])

Load an optical image of stars.

make_100gaussians_image([noise])

Make an example image containing 100 2D Gaussians plus a constant background.

make_4gaussians_image([noise])

Make an example image containing four 2D Gaussians plus a constant background.

make_gwcs(shape[, galactic])

Create a simple celestial gWCS object in the ICRS coordinate frame.

make_model_image(shape, model, params_table, *)

Make a 2D image containing sources generated from a user-specified astropy 2D model.

make_model_params(shape, n_sources, *[, ...])

Make a table of randomly generated model positions and additional parameters for simulated sources.

make_noise_image(shape[, distribution, ...])

Make a noise image containing Gaussian or Poisson noise.

make_random_models_table(n_sources, param_ranges)

Make a QTable containing randomly generated parameters for an Astropy model to simulate a set of sources.

make_wcs(shape[, galactic])

Create a simple celestial WCS object in either the ICRS or Galactic coordinate frame.

params_table_to_models(params_table, model)

Create a list of models from a table of model parameters.