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

Class SMoc

source code

object --+    
         |    
PgSAdapter --+
             |
            SMoc

a MOC with a pgsphere interface.

The default constructor accepts a pymoc.MOC instance, which is accessible as the moc attribute. The database interface uses the ASCII serialisation, for which there's the fromASCII constructor.

Instance Methods
 
__init__(self, moc)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
asASCII(self)
returns an ascii serialisation of this MOC.
source code
 
asPoly(self) source code
 
asSTCS(self, frame) source code
 
asSMoc(self, order=6)
returns a copy of self, normalised for order.
source code
 
getPlot(self, **kwargs)
returns a png string with a plot visualising this moc.
source code
 
asFITS(self)
returns a standard FITS (table) representation of this MOC.
source code
 
asDALI(self)
returns the string representation of this MOC.
source code
 
asNUNIQs(self)
returns a list of integers usable as nuniqs.
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
 
fromASCII(cls, literal)
returns an SMoc from a quasi-standard ASCII serialisation.
source code
 
fromCells(cls, order, pixels)
returns a SMoc instance from a collection of pixels at order.
source code
 
fromFITS(cls, literal)
returns an SMoc from a string containing a FITS-serialised MOC.
source code
 
fromDALI(cls, literal)
returns an SMoc from a MOC string.
source code
Class Variables
  pgType = 'smoc'
hash(x)
  checkedAttributes = ['moc']
Properties

Inherited from object: __class__

Method Details

__init__(self, moc)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

asPoly(self)

source code 
Overrides: PgSAdapter.asPoly

asDALI(self)

source code 

returns the string representation of this MOC.

This isn't what DALI actually says at this point, but we suspect it will say that at some point.

fromDALI(cls, literal)
Class Method

source code 

returns an SMoc from a MOC string.

(see asDALI)