astro.main.Imstat (version @(#)$Revision: 1.27 $)
index
/astro-wise/AWEHOME/AWBASE/astro/main/Imstat.py

image statistics
 
This module defines the Imstat object. The Imstat object is used by BaseFrame
objects to store image statistics.

 
Classes
       
common.database.DBMain.DBObject(__builtin__.object)
Imstat

 
class Imstat(common.database.DBMain.DBObject)
    This class contains the image statistics.
 
 
Method resolution order:
Imstat
common.database.DBMain.DBObject
__builtin__.object

Methods defined here:
calculate(self, frame, zone=None, pixmap=None)
calculate_iter(self, frame, zone=None, pixmap=None, max_iter=5, threshold=5.0)
set_from_header(self, header)
set_stats(self, stats)
Copy the attributes of an eclipse.stats object to the Imstat
atrributes.
show(self, region_name='Frame')
update_header(self, header)

Data descriptors defined here:
max
Maximum value of data [ADU]
max_x
X position of maximum pixel value [None]
max_y
Y position of maximum pixel value [None]
mean
Mean value of data [ADU]
median
Median of data [ADU]
min
Minimum value of data [ADU]
min_x
X position of minimum pixel value [None]
min_y
Y position of minimum pixel value [None]
npix
Number of pixels in data [None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established
stdev
Standard deviation of data [ADU]
x_lower
X position of lower left corner of Imstat region [None]
x_upper
X position of upper right corner of Imstat region [None]
y_lower
Y position of lower left corner of Imstat region [None]
y_upper
Y position of upper right corner of Imstat region [None]

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0x2aaab36d1248>
pickle_id = None

 
Data
        __version__ = '@(#)$Revision: 1.27 $'