WriteTo#

class prose.blocks.utils.WriteTo(destination, label='processed', imtype=True, overwrite=False, name=None)[source]#

Write image to FITS file

Parameters:
  • destination (str) – destination folder (folder and parents created if not existing)

  • label (str, optional) – added at the end of filename as {original_path}_{label}.fits, by default “processed”

  • imtype (bool, optional) – If bool, whether to set image imtype as label (image.header[“IMTYPE”] = label). If a str, label to set for imtype (image.header[“IMTYPE”] = imtype) , by default True

  • overwrite (bool, optional) – whether to overwrite existing file, by default False

  • name (str, optional) – name of the block, by default None