sccala.gen_testdata
Functions
|
Function generating simulated datasets for standardisation |
|
|
|
Module Contents
- sccala.gen_testdata.gen_testdata(zrange, save, size=250, plots=False, hubble=False, zrange_hubble=(0.001, 0.005), hubble_size=25, h0=70.0)
Function generating simulated datasets for standardisation
Parameters
- zrangelist or tuple
Lower and upper limit of redshift interval for which testdata is to be generated
- savestr
Filename under which data will be saved
- sizeint
Number of simulated SNe to generate. Default: 250
- plotsbool
Specified is diagnostic plots are to be generated. WARNING: Will output plot to current working directory. Any existing plots with the same names will be overwritten. Default: False
- hubblebool
If True, a calibrator sample will be generated as well. Default: False
- zrange_tuplelist or tuple
Lower and upper limit of redshift interval for which calibrator testdata is to be generated. Default: (0.001, 0.005)
- hubble_sizeint
Number of simulated calibrator SNe. Default: 25
- h0float
Value of the Hubble constant used for simulating calibrator sample. Default: 70.0
Returns
- datapd.DataFrame
DataFrame containing the simulated testdata
- sccala.gen_testdata.main(args)
- sccala.gen_testdata.cli()