Package gavo :: Package utils :: Module pgsphere :: Class SBox
[frames] | no frames]

Class SBox

source code

object --+    
         |    
PgSAdapter --+
             |
            SBox

A spherical box from pgSphere.

The constructor accepts the two corner points.

Instance Methods
 
__init__(self, corner1, corner2)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
asSTCS(self, systemString) source code
 
asPoly(self) source code
 
asDALI(self) source code

Inherited from PgSAdapter: __eq__, __ne__, __repr__, asSODA

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
fromSIAPPars(cls, ra, dec, raSize, decSize)
returns an SBox corresponding to what SIAP passes in.
source code
 
fromDALI(cls, daliSeq) source code
Class Variables
  pgType = 'sbox'
hash(x)
  checkedAttributes = ['corner1', 'corner2']
  pattern = re.compile(r'\([^\(\)]+\)')
Properties

Inherited from object: __class__

Method Details

__init__(self, corner1, corner2)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

fromSIAPPars(cls, ra, dec, raSize, decSize)
Class Method

source code 

returns an SBox corresponding to what SIAP passes in.

In particular, all values are in degrees, and a cartesian projection is assumed.

This is for use with SIAP and tries to partially implement that silly prescription of "folding" over at the poles. If that happens, a TwoSBoxes exception is raised. It contains two SBoxes that should be ORed. I agree that sucks. Let's fix SIAP.

asPoly(self)

source code 
Overrides: PgSAdapter.asPoly