autowisp.browser_interface.diagnostics.preview_calibrated module

Class Inheritance Diagram

Inheritance diagram of BytesIO, DataReductionFile, DiagnosticType, Image, ImageDiagnostics, ImageProcessingManager, JsonResponse

View for previewing a calibrated FITS image by image ID and channel.

autowisp.browser_interface.diagnostics.preview_calibrated._generate_quantile_overlay_png(fits_fname, threshold)[source]

Highlight pixels in the image below threshold

Return PNG bytes: cyan at 50% alpha below threshold, transparent above.

autowisp.browser_interface.diagnostics.preview_calibrated._get_dr_fname(image_id, color_channel)[source]

Return the data-reduction file path for the given image and channel.

autowisp.browser_interface.diagnostics.preview_calibrated._get_overlay_choices(image_id, color_channel, db_session)[source]

Return the list of (value, label) overlay choices for this image.

autowisp.browser_interface.diagnostics.preview_calibrated._read_matched_positions(dr_file)[source]

Return extracted positions of stars matched to catalog entries.

autowisp.browser_interface.diagnostics.preview_calibrated._read_source_positions(dr_file, src_type)[source]

Return x, y positions for srcextract or srcproj sources from DR file.

autowisp.browser_interface.diagnostics.preview_calibrated.get_image_overlay(_, image_id, color_channel, overlay_type)[source]

Return JSON star positions for the requested overlay type.

autowisp.browser_interface.diagnostics.preview_calibrated.preview_calibrated_image(request, image_id, color_channel)[source]

Display the calibrated image for the given image and color channel.