scalergb
- romanisim.util.scalergb(rgb, scales=None, gray=0)
Scales three flux images into an RGB image for displaying.
Images are scaled into [0, 1]. This routine was borrowed from the Legacy Survey viewer. It expects background subtracted images.
- Parameters:
- rgbnp.ndarray[ny, nx, 3]
the RGB images to scale
- scaleslist[float] (must contain 3 floats)
rescale each image by this amount
- grayfloat
add a constant to the image to shift the sky background value from 0 to gray
- Returns:
- imnp.ndarray[ny, nx, 3]
scaled RGB image suitable for displaying