center_on_path
- astrocut.center_on_path(path, size, cutout_fles, target=None, img_wcs=None, target_pixel_file=None, output_path='.', verbose=True)[source]
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.
- Parameters:
- path
Table Table (or similar) object with columns “time,” containing
Timeobjects and “position,” containingSkycoordobjects.- sizearray
Size in pixels of the cutout rectangle centered on the path locations ther will be returned. Formatted as [ny,nx]
- cutout_fleslist
List of strings, Target Pixel File paths that the path crosses.
- targetstr
Optional. The name or ID of the moving target represented by the path.
- img_wcs
WCS Optional WCS object that is the WCS from the original image (TESS FFI usually) all the cutouts came from.
- target_pixel_filestr
Optional. The name for the output target pixel file. If no name is supplied, the file will be named:
<target/path>_<cutout_size>_<time range>_astrocut.fits- output_pathstr
Optional. The path where the output file is saved. The current directory is default.
- verbosebool
Optional. If true intermediate information is printed.
- path
- Returns:
- responsestr
The file path for the output target pixel file.