cutout_fits

Copyright (c) 2024 Alec Thomson. All rights reserved.

cutout-fits: A package to produce cutouts of (remote) FITS files.

Submodules

Attributes

Functions

make_cutout(→ astropy.io.fits.HDUList)

Make a cutout of a FITS file

Package Contents

cutout_fits.make_cutout(infile: str, outfile: str, ra_deg: float, dec_deg: float, radius_arcmin: float, freq_start_hz: float | None = None, freq_end_hz: float | None = None, overwrite: bool = False) astropy.io.fits.HDUList

Make a cutout of a FITS file

Parameters:
  • infile (str) – Path to FITS file - can be a remote URL

  • outfile (str) – Path to output file - must be local

  • ra_deg (float) – Centre RA in degrees

  • dec_deg (float) – Centre Dec in degrees

  • radius_arcmin (float) – Cutout radius in arcminutes

  • freq_start_hz (float | None, optional) – Start frequency in Hz. Defaults to None.

  • freq_end_hz (float | None, optional) – End frequency in Hz. Defaults to None.

  • overwrite (bool) – Whether to overwrite the output file.

Returns:

Cutout HDUList

Return type:

fits.HDUList

cutout_fits.__version__: str