imaginglss.model.catalogue module¶
Python class for handling object catalogs associated with a data release. The catalogs are obtained from FITS files. This class does some caching for speed.
-
class
imaginglss.model.catalogue.
BigFileCatalogue
(cachedir, aliases)[source]¶ Bases:
imaginglss.utils.columnstore.ColumnStore
-
dtype
¶
-
size
¶
-
-
class
imaginglss.model.catalogue.
C
(name)[source]¶ Bases:
imaginglss.utils.npyquery.Column
C provides a shorthand for querying the catalogue with the
imaginglss.utils.npyquery
mini language
-
class
imaginglss.model.catalogue.
Catalogue
(bricks, format_filename, aliases, columns)[source]¶ Bases:
object
Parameters: bricks: list
a list of bricks names that the catalogue covers.
format_filename : function
a function converts a brick object to a filename of the tractor catalogue
aliases : list
a list of fields to transform; this is to support migration of schema from older data release to newer ones. The list is of from (oldname, newname, transformfunction)
Attributes
dtype (dtype) A container of the data type of columns in numpy.dtype
-
dtype
¶
-
size
¶
-
-
imaginglss.model.catalogue.
coord2xyz
(coord)[source]¶ Given coord=(RA,DEC) returns unit vectors, nhat. A helper function.
Parameters: coord : array_like
coord = (RA, DEC) in degrees.
Returns: vector : array_like
Unit vectors corresponding to RA, DEC, in (, 3).