PZC ‐ Function Library - danecross/SOM-photoz-BFD GitHub Wiki
PZC.__init__(simulations_path, redshift_catalog, outpath, wideSOM_res, deepSOM_res, redshift_colname='Z')
Constructor for PZC class.
Args:
simulations_path(str): path to the classified simulationsredshift_catalog(str): path to a classified catalog of wide field galaxies with redshift informationoutpath(str): the directory to which we save all resultswideSOM_res(int): resolution of the wide SOMdeepSOM_res(int): resolution of the deep SOMredshift_colname(str, opt): name of the redshift column in the above catalog
PZC.make_redshift_map(self, weights=None, zmax=4)
Calculates p(z|chat) (after the simulations have been created).
Arguments:
- weights (, optional): Not Implemented Yet.
- zmax (float, optional): the maximum redshift cutoff to use
PZC.save(self, savepath='.')
Saves the PZC path.
Arguents:
savepath(str): directory to save the object files
Note: saves wide/deep SOM
load_PZC(savepath)
Loads a saved PZC object from the path specified by savepath.