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
fetch(column, start, end)[source]
neighbours(coord, sep)[source]
open(brick)[source]
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

visit(catalogue)[source]
exception imaginglss.model.catalogue.CacheExpired[source]

Bases: RuntimeError

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
open(brick)[source]
size
class imaginglss.model.catalogue.TransformedColumn(ref, columns, transform)[source]

Bases: object

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).

imaginglss.model.catalogue.native_dtype(dtype)[source]

Convert a dtype to native dtype. A helper function.

Do not use.

imaginglss.model.catalogue.subdtype(dtype, columns)[source]
imaginglss.model.catalogue.uppercase_dtype(dtype)[source]

Convert a dtype to upper case. A helper function.

Do not use.