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 simulations
  • redshift_catalog (str): path to a classified catalog of wide field galaxies with redshift information
  • outpath (str): the directory to which we save all results
  • wideSOM_res (int): resolution of the wide SOM
  • deepSOM_res (int): resolution of the deep SOM
  • redshift_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.