multicolorfits.combine_from_files#

multicolorfits.combine_from_files(fits_paths, colors, align_reference=0, align_frame=None, align_optimal=False, **combine_kwargs)[source]#

Load FITS files, optionally align them to a common grid, then combine.

Parameters:
  • fits_paths (list of str) – Paths to 2D FITS files.

  • colors (list of str) – Hex colors, one per file.

  • align_reference (int) – When aligning, index of the reference layer (default 0).

  • align_frame (str or None) – Celestial frame for the master grid ('galactic', …). None keeps the reference header’s native frame.

  • align_optimal (bool) – If True, build an optimal common header instead of using one reference.

  • **combine_kwargs – Forwarded to combine_layers() (stretches, colorspace, gamma, …).

Returns:

array, header – Combined RGB image and the common WCS header.