asdf_cut

astrocut.asdf_cut(input_file: str, ra: float, dec: float, cutout_size: int = 20, output_file: str = 'example_roman_cutout.fits', write_file: bool = True, fill_value: Union[int, float] = nan) Cutout2D[source]

Takes a single ASDF input file (input_file) and generates a cutout of designated size cutout_size around the given coordinates (coordinates).

Preliminary proof-of-concept functionality.

Parameters
input_filestr

The input ASDF file.

rafloat

The right ascension of the central cutout.

decfloat

The declination of the central cutout.

cutout_sizeint

Optional, default 20. The image cutout pixel size.

output_filestr

Optional, default “example_roman_cutout.fits”. The name of the output cutout file.

write_filebool

Optional, default True. Flag to write the cutout to a file or not.

fill_value: int | float

Optional, default np.nan. The fill value for pixels outside the original image.

Returns
astropy.nddata.Cutout2D:

An image cutout object.