Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.35 KB

usage_plot_lcfit.md

File metadata and controls

41 lines (32 loc) · 1.35 KB

Usage: plot_lcfit.py [options]

Options:
  -h, --help         show this help message and exit
  --prodids=PRODIDS  prodid [input/plots/podids_fit.csv]
  --fileDir=FILEDIR  dir location of the results [Output_Fit]


Examples

    • Let us suppose that LC fit have been performed and the results are located in a directoryOutput_Fit:

      ls Output_Fit
      Fit_sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.0_sn_cosmo.hdf5 Fit_sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.25_sn_cosmo.hdf5

    • The prodids are then defined by
      • sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.0_sn_cosmo
      • sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.25_sn_cosmo
    • The inputfile for the display will thus look like:

      cat prodids.cvs

      nickname,prodid  
      cosmo_cosmo_evb_0.0,sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.0_sn_cosmo 
      cosmo_cosmo_evb_0.25,sn_cosmo_Fake_Fake_DESC_seas_-1_-2.0_0.2_380_800_ebvofMW_0.25_sn_cosmo 
      

      where the "nickname" is chosen by the user (it will be used as legend on the plot)

    • To display the results: python plot_scripts/lcfit/plot_lcfit.py --dirFile Output_Fit --prodids prodids.csv. By default, sigma_Color vs z is displayed: