Astrocut API

astrocut Package

Functions

asdf_cut(input_files, ra, dec[, ...])

Takes one of more ASDF input files (input_files) and generates a cutout of designated size cutout_size around the given coordinates (coordinates).

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.

cube_cut(cube_file, coordinates, cutout_size)

Takes a cube file (as created by CubeFactory), and makes a cutout target pixel file of the given size around the given coordinates.

cube_cut_from_footprint(coordinates, cutout_size)

Generates cutouts around coordinates of size cutout_size from image cube files hosted on the S3 cloud.

fits_cut(input_files, coordinates[, ...])

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.

get_center_pixel(gwcsobj, ra, dec)

Get the closest pixel location on an input image for a given set of coordinates.

img_cut(input_files, coordinates[, ...])

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.

ra_dec_crossmatch(all_ffis, coordinates, ...)

Returns the Full Frame Images (FFIs) whose footprints overlap with a cutout of a given position and size.

setup_logger()

Set up a logger for astrocut

Classes

ASDFCutout(input_files, coordinates[, ...])

Class for creating cutouts from ASDF files.

CubeFactory([max_memory])

Class for creating image cubes.

CutoutFactory()

Class for creating image cutouts from TESS image cube files.

CutoutsCombiner([fits_list, exts, img_combiner])

Class for combining cutouts.

FITSCutout(input_files, coordinates[, ...])

Class for creating cutouts from FITS files.

TessCubeCutout(input_files, coordinates[, ...])

Class for creating cutouts from TESS full frame image cubes.

TessFootprintCutout(coordinates[, ...])

Class for generating cutouts from TESS Full Frame Images (FFIs) hosted on the cloud based on the footprint of the cutout.

TicaCubeFactory([max_memory])

Class for creating TICA image cubes.