gelsa.colorize#

Functions

colorize(specframe, image, wcs, fixed_wavelength)

composite(im_rgb, brightness[, mask, ...])

histogram_rgb(y, x, weight, bins_y, bins_x, hist)

Histogram 2D

make_wcs(ra, dec[, pa, rotate, ...])

make_wcs_from_specframe(frame[, ra, dec, ...])

mosaic_image(image_list, wcs_out)

reproject_specframe(frame_list, wcs_out[, ...])

spectro_composite(spec_im, im_rgb, wcs_in, ...)

Low-memory spectro composite, processed in strips of rows.

gelsa.colorize.histogram_rgb(y, x, weight, bins_y, bins_x, hist)[source]#

Histogram 2D

gelsa.colorize.spectro_composite(spec_im, im_rgb, wcs_in, wcs_out, levels=(5, 98), power=1, sigma=1, strip_rows=512, dtype=<class 'numpy.float32'>)[source]#

Low-memory spectro composite, processed in strips of rows.

Equivalent to replacing the HSV value channel of the reprojected, smoothed im_rgb with the normalized spec_im: with hue and saturation fixed, rgb_new = rgb * v_new / max(rgb) (grey v_new where max(rgb) == 0).

dtype : np.float32 (values in [0,1]) or np.uint8 (values 0-255).