Observations¶
-
class
beast.observationmodel.observations.
Observations
(inputFile, desc=None)[source]¶ Bases:
object
A generic class that interfaces observation catalog in a standardized way
Attributes: - inputFile: str
catalog source file
- filters: sequence(str)
list of filter names (internal standards)
- desc: str, optional
description of the observations
- badvalue: float, optional
value that tags a bad measurement that should not be used in the fitting.
- nObs: int
number of observations in the catalog
Generate a data interface object
Attributes Summary
nObs
Methods Summary
__call__
(self)Calling the object will show info enumobs
(self)getErrors
(self, num, filters)getFilters
(self)getFlux
(self, num)returns the flux of an observation from the number of counts getFluxerr
(self, num)returns the error on the flux of an observation from the number of counts (not used in the analysis) getMags
(self, num, filters)getObs
(self[, num])returns the flux info
(self)Prints some information about the catalog iterobs
(self)yield getObs keys
(self)Returns dataset content names readData
(self)read the dataset from the original source file setBadValue
(self, val)setDescription
(self, txt)setFilters
(self, filters)Attributes Documentation
-
nObs
¶
Methods Documentation