.PHONY: all


FIG_DIR := ./figures

all: beacon clocks phases findks reconstruct


beacon:
	./aa_generate_beacon.py > figures/aa.log
	./ab_modify_clocks.py 0 > figures/ab.log
	./ac_show_signal_to_noise.py --no-show-plots --fig-dir=${FIG_DIR}

clocks:
	./ab_modify_clocks.py 15 --gaussian

phases:
	./ba_measure_beacon_phase.py --no-show-plots --fig-dir=${FIG_DIR}
	./bb_measure_true_phase.py --no-show-plots --fig-dir=${FIG_DIR}
	./bc_baseline_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR}
	./bd_antenna_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR}

findks:
	./ca_period_from_shower.py --no-show-plots --fig-dir=${FIG_DIR}
	./cb_report_measured_antenna_time_offsets.py --no-show-plots --fig-dir=${FIG_DIR}

reconstruct:
	./da_reconstruction.py --no-show-plots --fig-dir=${FIG_DIR}
	./db_longitudinal_figure.py --no-show-plots --fig-dir=${FIG_DIR}

dist-clean:
	rm -f ZH_airshower/antennas.hdf5
	rm -f ZH_airshower/clocks.csv
	rm -f ZH_airshower/tx.json