stacked_seds.stacking.get_galaxy_pixel_coords

stacked_seds.stacking.get_galaxy_pixel_coords(image_path, region_path)[source]

Reads a FITS image header and a region file to get galaxy pixel coordinates.

Parameters:
  • image_path (str) – Path to the FITS image file.

  • region_path (str) – Path to the .reg file containing galaxy world coordinates.

Returns:

An array of (x, y) pixel coordinates for each galaxy.

Return type:

np.ndarray