Reference/API
ginga.canvas.CanvasMixin Module
Classes
A CanvasMixin is combined with the CompoundMixin to make a tag-addressible canvas-like interface. |
ginga.canvas.CanvasObject Module
Functions
|
|
|
|
|
Classes
|
This is the abstract base class for a CanvasObject. |
ginga.canvas.CompoundMixin Module
Classes
A CompoundMixin is a mixin class that makes an object that is an aggregation of other objects. |
ginga.canvas.coordmap Module
Classes
|
A coordinate mapper that maps to the viewer's canvas in the viewer's canvas coordinates. |
|
A coordinate mapper that maps to the viewer in 'window' coordinates. |
|
A coordinate mapper that maps to the viewer in 'percentage' coordinates. |
|
A coordinate mapper that maps to the viewer in Cartesian coordinates that do not scale (unlike DataMapper). |
|
A coordinate mapper that maps to the viewer in data coordinates. |
|
A coordinate mapper that maps to the viewer in data coordinates that are offsets relative to some other reference object. |
|
A coordinate mapper that maps to the viewer in WCS coordinates. |
ginga.canvas.DrawingMixin Module
Classes
The DrawingMixin is a mixin class that adds drawing capability for some of the basic CanvasObject-derived types. |
ginga.canvas.types.layer Module
Classes
|
Compound object on a Ginga canvas. |
|
Class to handle canvas in Ginga. |
|
Drawing canvas. |
Class Inheritance Diagram
ginga.ImageView Module
This module handles image viewers.
Classes
|
An abstract base class for displaying images represented by Numpy data arrays. |
ginga.Bindings Module
Classes
|
Map physical events to logical events. |
|
Configurable event handling (bindings) for UI events. |
ginga.events Module
Classes
|
A key press or release event in a Ginga viewer. |
|
A pinch event in a Ginga viewer. |
|
A pinch event in a Ginga viewer. |
|
A mouse/pointer/cursor event in a Ginga viewer. |
|
A mouse or trackpad scroll event in a Ginga viewer. |
|
Base class for user interface events. |
ginga.rv.Channel Module
Classes
|
Class to manage a channel. |
ginga.rv.main Module
This module handles the main reference viewer.
Classes
|
This class exists solely to be able to customize the reference viewer startup. |
ginga.colors Module
Module to handle colors supported by Ginga.
Functions
Recalculate |
|
|
Find RGB or hex values for a supported color. |
|
Return RGB tuple of a given color. |
|
Add |
|
Remove a given color from |
Return |
|
|
Parse colors from a given filename. |
|
Parse colors from a given string buffer. |
ginga.AutoCuts Module
Functions
|
Return the class object used to implement an autocuts algorithm. |
Return the list of algorithm names for the available autocuts methods. |
Classes
|
Base class for auto cuts algorithms. |
|
Calculate the cut levels as the minimum and maximum of the data. |
|
Calculate the cut levels based on a histogram analysis of the data. |
|
Calculate the cut levels based on a standard deviation analysis of the data. |
|
Calculate the cut levels based on a median filtering analysis of the data. |
|
Calculate the cut levels based on a median filtering analysis of the data. |
ginga.util.io.io_asdf Module
Module wrapper for loading ASDF files.
Note
The API for this module is currently unstable and may change in a future release.
Functions
|
Load an object from an ASDF file. |
|
Load data from an open ASDF object. |
|
Load from an ASDF object. |
Classes
|
For loading ASDF data files. |
Class Inheritance Diagram
ginga.util.wcsmod Package
We are fortunate to have several possible choices for a python WCS package compatible with Ginga: astlib, kapteyn, starlink and astropy. kapteyn and astropy wrap Mark Calabretta’s “WCSLIB”, astLib wraps Jessica Mink’s “wcstools”, and I’m not sure what starlink uses (their own?).
Note that astlib requires pyfits (or astropy) in order to create a WCS object from a FITS header.
To force the use of one, do:
from ginga.util import wcsmod
wcsmod.use('kapteyn')
before you load any images. Otherwise Ginga will try to pick one for you.
Note that you can register custom WCS types using:
from ginga.util.wcsmod.common import register_wcs
register_wcs('mywcs', MyWCSClass, list_of_coord_types)
Look at the implemented WCS wrappers for details.
Functions
|
Get a WCS class corresponding to the registered name. |
ginga.util.wcs Module
This module handles calculations based on world coordinate system.
Functions
|
Convert RA hours, minutes, seconds into an angle in degrees. |
|
Convert dec sign, degrees, minutes, seconds into a signed angle in degrees. |
|
Convert dec sign, degrees, minutes, seconds into a signed angle in degrees. |
|
Converts the ra (in degrees) to HMS three tuple. |
|
Convert the dec, in degrees, to an (sign,D,M,S) tuple. |
|
Convert numeric arcseconds (aka DMS seconds) to degrees of arc. |
|
Convert a string representation of RA into a float in degrees. |
|
Convert a string representation of DEC into a float in degrees. |
|
This function is provided by MOKA2 Development Team (1996.xx.xx) and used in SOSS system. |
|
Convert Eq to Eq 2000. |
|
CREDIT: See IDL code at https://idlastro.gsfc.nasa.gov/ftp/pro/astrom/getrot.pro |
|
Calculate rotation and CDELT. |
|
Computes the relative orientation and scale of an image to a reference image. |
|
Calculate a set of WCS keywords for a 2D simple instrument FITS file with a 'standard' RA/DEC pixel projection. |
|
Format coordinates. |
|
Compute distance and position angle solving a spherical triangle (no approximations). |
|
Spherical triangulation. |
|
|
|
Calculate separation. |
|
Algorithm to compute RA/Dec from RA/Dec base position plus tangent plane offsets. |
|
Calculate offset. |
|
Convert longitude to degrees. |
|
Convert latitude to degrees. |
|
|
|
ginga.util.ap_region Module
This module provides Ginga support for DS9 type region files and objects via
the astropy-regions
package.
Functions
|
Convert an astropy-region object to a Ginga canvas object. |
|
Convenience function to plot an astropy-regions object on a Ginga canvas. |
|
Convert a Ginga canvas object to an astropy-region object. |
ginga.util.iqcalc Module
Module to handle image quality calculations.
Functions
|
Calculate mean for valid values. |
|
Like |
Classes
Base exception for raising errors in this module. |
|
|
Class to handle model fitting and FWHM calculations. |
ginga.util.iqcalc_astropy Module
Module to handle image quality calculations using astropy
.
Classes
|
This is |