# Skymaps and posterior samples can be downloaded from https://dcc.ligo.org/LIGO-P1800381/public ,https://dcc.ligo.org/LIGO-P1800370/public  

# Example of command line to run empty catalog analysis
gwcosmo_single_posterior --method population --posterior_samples GW150914_GWTC-1.hdf5 --skymap GW150914_skymap.fits.gz --Pdet BBH-powerlaw-gaussian_alpha_3.78_beta_0.81_Mmin_4.98_Mmax_112.5_mu_32.27_lambda_0.03_sigma_3.88_delta_4.8_Nsamps150000_full_waveform_snr_11.0.p --min_H0 20 --max_H0 140 --bins_H0 100 --outputfile GW150914/GW150914 --redshift_uncertainty True --redshift_evolution Madau --Lambda 4.59 --Madau_beta 2.86 --Madau_zp 2.47 --reweight_posterior_samples True --zmax 10 --seed 400 --numerical True 

# Example of command line to run catalog analysis
export GWCOSMO_CATALOG_PATH=/path/to/catalog/file
gwcosmo_single_posterior --method statistical --posterior_samples GW150914_GWTC-1.hdf5 --skymap GW150914_skymap.fits.gz --Pdet BBH-powerlaw-gaussian_alpha_3.78_beta_0.81_Mmin_4.98_Mmax_112.5_mu_32.27_lambda_0.03_sigma_3.88_delta_4.8_Nsamps150000_full_waveform_snr_11.0.p --min_H0 20 --max_H0 140 --bins_H0 100 --outputfile GW150914/GW150914  --catalog GLADE+ --galaxy_weighting True --catalog_band K --assume_complete_catalog False --redshift_uncertainty True --redshift_evolution Madau --Lambda 4.59 --Madau_beta 2.86 --Madau_zp 2.47 --Kcorrections True --reweight_posterior_samples True --zmax 10.0 --sky_area 0.999 --seed 400 --numerical True

# Example of command line to run counterpart
gwcosmo_single_posterior --method counterpart --Pdet BNS_Nsamps50000_full_waveform_snr_11.0.p --posterior_samples GW170817_GWTC-1.hdf5 --skymap GW170817_skymap.fits.gz  --counterpart_v 3017 --counterpart_ra 197.44875 --counterpart_dec -23.38388889 --counterpart_sigmav 166 --min_H0 20 --max_H0 140 --bins_H0 100 --outputfile GW170817/GW170817
