Reference/API

stginga.gingawrapper Module

Wrapper script to run Ginga optimized for STScI data.

Functions

run_stginga(sys_argv)

Run this from command line.

stginga.plugin_info Module

This module contains functions to handle stginga plugins. See Running Ginga With stginga Plugins.

Functions

load_plugins(ginga)

Load the stginga plugins.

show_plugin_install_info()

Print the documentation on how to install the ginga plugins.

stginga.utils Module

Utility functions for stginga.

Functions

calc_stat(data[, sigma, niter, algorithm])

Calculate statistics for given data.

interpolate_badpix(image, badpix_mask, ...)

Use spline interpolation to fix bad pixel(s).

find_ext(imfile, ext)

Determine whether given FITS file has the requested extension.

scale_wcs(input_hdr, zoom_factor[, debug])

Rescale FITS WCS by the given zoom factor.

scale_image(infile, outfile, zoom_factor[, ...])

Rescale the image size in the given extension by the given zoom factor and adjust WCS accordingly.

scale_image_with_dq(infile, outfile, ...[, ...])

Rescale the image size in the given extension by the given block size, taking data quality (DQ) flags into account, and adjust WCS accordingly.

Classes

DQParser(definition_file)

Class to handle parsing of DQ flags.

stginga.plugins.local_plugin_mixin Module

Mixin classes for local plugins for Ginga.

Classes

HelpMixin()

MEFMixin()

Mixin class for Ginga local plugin that enables manipulation of multi-extension FITS images.

ParamMixin()

Mixin class for Ginga local plugin that enables the feature to save/load parameters.