stampmaker

phrosty.imagesubtraction.stampmaker(ra, dec, shape, img, savedir=None, savename=None)[source]

Make stamps.

TODO : pass an array of ra and dec to make this more efficient; otherwise, we may be writing and deleting a FITS image over and over again!

Parameters:
  • ra (float) – RA of center of stamp in degrees.

  • dec (float) – Dec of center of stamp in degrees.

  • shape (np.array) – Shape of stamp. must be a numpy array. e.g. np.array([100,100])

  • img (snappl.image.Image) – Image from whose data the stamp will be extracted.

  • savedir (Path, default None) – Directory stamp will be saved to. Defaults to “stamps” underneath phtometry.phrosty.paths.dia_out_dir from the config.

  • savename (Path, default None) – Base name of stamp filepath; defaults to the name from img’s path.

Returns:

savepath – Full savepath of stamp. Combined inputs “savedir/savename”.

Return type:

Path