Package pyraf :: Module irafgwcs
[hide private]
[frames] | no frames]

Module irafgwcs

source code

irafgwcs.py: WCS handling for graphics

This contains some peculiar code to work around bugs in splot (and possibly other tasks) where the WCS for an existing plot gets changed before the plot is cleared. I save the changed wcs in self.pending and only commit the change when it appears to really be applicable.

$Id: irafgwcs.py 779 2007-02-09 16:52:50Z rij $

Classes [hide private]
  IrafGWcs
Class to handle the IRAF Graphics World Coordinate System Structure
Functions [hide private]
 
elog(x)
Extended range log scale.
source code
 
_setWCSDefault()
Define default WCS for STDGRAPH plotting area.
source code
Variables [hide private]
  WCS_SLOTS = 16
  WCS_RECORD_SIZE = 22
  LINEAR = 0
  LOG = 1
  ELOG = 2
  DEFINED = 1
  CLIP = 2
  NEWFORMAT = 4

Imports: struct, numpy, math, IrafError


Function Details [hide private]

elog(x)

source code 

Extended range log scale. Handles negative and positive values.

values between 10 and -10 are linearly scaled, values outside are log scaled (with appropriate sign changes.