Coverage for python/lsst/sims/catUtils/utils/CatalogSetupFunctions.py : 84%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
photometryNameRoot='lsst', uncertainty=False): """ This method will read in an InstanceCatalog class (not an instantiation of that class; a class itself), and instantiation of ObservationMetaData and an instantiation of a CatalogDBObject class, instantiate the InstanceCatalog class according to the ObservationMetaData and CatalogDBObject and return the instantiated instanceCatalog.
Note that this class will tell the InstanceCatalog to only output photometric columns defined by the ObservationMetaData (i.e. if the ObservationMetaData.bandpass is 'u', then the instantiated InstanceCatalog will only write the u-based column of photometry.
@param [in] obs_metadata is an instantiation of an ObservationMetaData
@param [in] dbConnection is an instantiation of a CatalogDBObject daughter class
@param [in] catalogClass is a daughter class of InstanceCatalog (not an instantiation of that class; just the class itself)
@param [in] photometryNameRoot is a string indicating the naming convention of the photometry columns. This method will assume that columns are named
photometryNameRoot_bandpassName
Note: it is your responsibility to make sure that the catalogClass is able to calculate the columns specified this way (i.e. if photometryNameRoot is 'sdss', you should make sure that your catalogClass has getters for columns sdss_[u,g,r,i,z])
@param [out] an instantiation of the provided InstanceCatalog daughter class that is consistent with the other inputs """
#catalogClass
else:
else: column_outputs = [photometryNameRoot+'_'+obs_metadata.bandpass] if uncertainty: column_outputs.append('sigma_'+photometryNameRoot+'_'+obs_metadata.bandpass)
|