def __init__(self, inputFile, distanceModulus=0.): """ Class Contructor inputFile str filename incl. path distanceModulus float apply a distance modulus (default 24.3mag) """ desc = 'PHAT catalog: %s' % inputFile Observations.__init__(self, inputFile,distanceModulus, desc=desc) self.setFilters( filters ) self.setBadValue(99.0)
def getObsinMag(self, num): """ Returns the original catalog magnitudes Looks like the same as getObs, but not decorated by @from_Vegamag_to_Flux(lamb, vega_mag) Which will not convert the values to fluxes """ return Observations.getObs(self, num)
def getObs(self, num): """ Using the decorator @from_Vegamag_to_Flux to return values in flux (not in flux/flux_vega) from vega magnitudes num int line in the table (0..n) By default, Observation.getObs() will consider: * 6 columns with names corresponding to the filters * 6 columns with the filternames+'err' as the measurement errors Bad values are already handled by default. Returns the fluxes, errors and mask of observation 'num'. Order matters!! (filters order) """ return Observations.getObs(self, num)