- astrocut.center_on_path(path, size, cutout_fles, target=None, img_wcs=None, target_pixel_file=None, output_path='.', verbose=True)
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.
Note: No resampling is done so there will be some jitter in the moving target placement.
Table (or similar) object with columns “time,” containing
Timeobjects and “position,” containing
Size in pixels of the cutout rectangle centered on the path locations ther will be returned. Formatted as [ny,nx]
List of strings, Target Pixel File paths that the path crosses.
Optional. The name or ID of the moving target represented by the path.
Optional WCS object that is the WCS from the original image (TESS FFI usually) all the cutouts came from.
Optional. The name for the output target pixel file. If no name is supplied, the file will be named:
Optional. The path where the output file is saved. The current directory is default.
Optional. If true intermediate information is printed.
The file path for the output target pixel file.