Astrocut API

astrocut Package

Functions

build_default_combine_function(template_hdu_arr)

Given an array of ImageHdu objects, initialize a function to combine an array of the same size/shape images where each pixel the mean of all images with available data at that pixel.

center_on_path(path, size, cutout_fles[, ...])

Given a moving target path that crosses through one or more cutout files (as produced by cube_cut/tesscut) and size, create a target pixel file containint a cutout of the requested size centered on the moving target given in the providedpath.

fits_cut(input_files, coordinates, cutout_size)

Takes one or more fits files with the same WCS/pointing, makes the same cutout in each file, and returns the result either in a single FITS file with one cutout per extension or in individual fits files.

img_cut(input_files, coordinates, cutout_size)

Takes one or more fits files with the same WCS/pointing, makes the same cutout in each file, and returns the result either as a single color image or in individual image files.

normalize_img(img_arr[, stretch, ...])

Apply given stretch and scaling to an image array.

path_to_footprints(path, size, img_wcs[, ...])

Given a path that intersects with a wcs footprint, return one or more rectangles that fully contain that intersection (plus padding given by 'size') with each rectangle no more than max_pixels in size.

Classes

CubeFactory([max_memory])

Class for creating image cubes.

CutoutFactory()

Class for creating image cutouts.

CutoutsCombiner([fits_list, exts, img_combiner])

Class for combining cutouts.

TicaCubeFactory([max_memory])

Class for creating TICA image cubes.