stacked_seds.stacking.create_stamps

stacked_seds.stacking.create_stamps(image_data, wcs_obj, pixel_coords, stamp_size=51)[source]

Creates cutout stamps for each coordinate in the pixel coordinate array.

Parameters:
  • image_data (np.ndarray) – The 2D FITS image data.

  • wcs_obj (wcs.WCS) – The World Coordinate System object from the FITS header.

  • pixel_coords (np.ndarray) – Array of (x, y) pixel coordinates.

  • stamp_size (int) – The edge length of the square stamp in pixels.

Returns:

A 3D array of all valid (correctly sized) stamps.

Return type:

np.ndarray