Move beacon field figures into subdir

This commit is contained in:
Eric Teunis de Boone 2022-10-18 07:31:51 +02:00
parent ba6b9dde1f
commit cca2488480
4 changed files with 129 additions and 109 deletions

View File

@ -1,29 +1,21 @@
.PHONY: all dist dist-clean
SUBDIRS := $(subst Makefile,,$(wildcard */Makefile))
.PHONY: all dist dist-clean $(SUBDIRS)
all: dist $(SUBDIRS)
all: dist
dist: \
single_beacon \
field_single \
field_three \
field_square \
field \
antenna_setup \
#
$(SUBDIRS):
@$(MAKE) -C $@
dist-clean:
rm -v sine_beacon.*
rm -v ttl_beacon.*
rm -v field_single_left_time.*
rm -v field_single_left_phase.*
rm -v field_single_center_time.*
rm -v field_single_center_phase.*
rm -v field_three_left_time.*
rm -v field_three_left_phase.*
rm -v field_three_center_time.*
rm -v field_three_center_phase.*
rm -v field_square_all_time.*
rm -v field_square_all_phase.*
rm -v field_square_ref0_time.*
rm -v field_square_ref0_phase.*
beacon_spatial_time_difference_setup.pdf: src/beacon_spatial_time_difference_setup.py
$< $@
@ -39,84 +31,6 @@ ttl_beacon.%: src/single_beacon.py
$< --periods 2 --no-grid --with-rates ttl $@
field_single: \
field_single_left_time.pdf field_single_left_time.png \
field_single_left_phase.pdf field_single_left_phase.png \
field_single_left_time_nomax.pdf field_single_left_time_nomax.png \
field_single_center_time.pdf field_single_center_time.png \
field_single_center_phase.pdf field_single_center_phase.png \
field_single_center_time_nomax.pdf field_single_center_time_nomax.png \
#
field_single_left_time.%: src/beacon_field.py
$< --time $@ single-left
field_single_left_phase.%: src/beacon_field.py
$< --phase $@ single-left
field_single_left_time_nomax.%: src/beacon_field.py
$< --time $@ single-left --max-rms 0
field_single_center_time.%: src/beacon_field.py
$< --time $@ single-center
field_single_center_phase.%: src/beacon_field.py
$< --phase $@ single-center
field_single_center_time_nomax.%: src/beacon_field.py
$< --time $@ single-center --max-rms 0
field_three: \
field_three_left_time.pdf field_three_left_time.png \
field_three_left_phase.pdf field_three_left_phase.png \
field_three_center_time.pdf field_three_center_time.png \
field_three_center_phase.pdf field_three_center_phase.png \
field_three_left_time_nomax.pdf field_three_left_time_nomax.png \
field_three_center_time_nomax.pdf field_three_center_time_nomax.png \
#
field_three_left_time.%: src/beacon_field.py
$< --time $@ three-left
field_three_left_phase.%: src/beacon_field.py
$< --phase $@ three-left
field_three_left_time_nomax.%: src/beacon_field.py
$< --time $@ three-left --max-rms 0
field_three_center_time.%: src/beacon_field.py
$< --time $@ three-center
field_three_center_time_nomax.%: src/beacon_field.py
$< --time $@ three-center --max-rms 0
field_three_center_phase.%: src/beacon_field.py
$< --phase $@ three-center
field_three_center_time_nomax.%: src/beacon_field.py
$< --time $@ three-center --no-max
field_square: \
field_square_all_time.pdf field_square_all_time.png \
field_square_all_phase.pdf field_square_all_phase.png \
field_square_ref0_time.pdf field_square_ref0_time.png \
field_square_ref0_phase.pdf field_square_ref0_phase.png \
field_square_all_time_zoomtx.pdf field_square_all_time_zoomtx.png \
field_square_all_phase_zoomtx.pdf field_square_all_phase_zoomtx.png \
field_square_ref0_time_zoomtx.pdf field_square_ref0_time_zoomtx.png \
field_square_ref0_phase_zoomtx.pdf field_square_ref0_phase_zoomtx.png \
#
field_square_ref0_time.%: src/beacon_field.py
$< --time $@ square --ref 0
field_square_ref0_phase.%: src/beacon_field.py
$< --phase $@ square --ref 0
field_square_all_time.%: src/beacon_field.py
$< --time $@ square
field_square_all_phase.%: src/beacon_field.py
$< --phase $@ square
field_square_ref0_time_zoomtx.%: src/beacon_field.py
$< --time $@ square --ref 0 --zoom tx
field_square_ref0_phase_zoomtx.%: src/beacon_field.py
$< --phase $@ square --ref 0 --zoom tx
field_square_all_time_zoomtx.%: src/beacon_field.py
$< --time $@ square --zoom tx
field_square_all_phase_zoomtx.%: src/beacon_field.py
$< --phase $@ square --zoom tx
antenna_setup: \
antenna_setup_four.pdf antenna_setup_four.png \
antenna_setup_three.pdf antenna_setup_three.png \

View File

@ -0,0 +1,103 @@
.PHONY: all dist distclean
all: dist
dist: \
field_single \
field_three \
field_square \
#
distclean:
rm -v field_single_left_time.*
rm -v field_single_left_phase.*
rm -v field_single_center_time.*
rm -v field_single_center_phase.*
rm -v field_three_left_time.*
rm -v field_three_left_phase.*
rm -v field_three_center_time.*
rm -v field_three_center_phase.*
rm -v field_square_all_time.*
rm -v field_square_all_phase.*
rm -v field_square_ref0_time.*
rm -v field_square_ref0_phase.*
field_single: \
field_single_left_time.pdf field_single_left_time.png \
field_single_left_phase.pdf field_single_left_phase.png \
field_single_left_time_nomax.pdf field_single_left_time_nomax.png \
field_single_center_time.pdf field_single_center_time.png \
field_single_center_phase.pdf field_single_center_phase.png \
field_single_center_time_nomax.pdf field_single_center_time_nomax.png \
#
field_single_left_time.%: src/beacon_field.py
$< --time $@ single-left
field_single_left_phase.%: src/beacon_field.py
$< --phase $@ single-left
field_single_left_time_nomax.%: src/beacon_field.py
$< --time $@ single-left --max-rms 0
field_single_center_time.%: src/beacon_field.py
$< --time $@ single-center
field_single_center_phase.%: src/beacon_field.py
$< --phase $@ single-center
field_single_center_time_nomax.%: src/beacon_field.py
$< --time $@ single-center --max-rms 0
field_three: \
field_three_left_time.pdf field_three_left_time.png \
field_three_left_phase.pdf field_three_left_phase.png \
field_three_center_time.pdf field_three_center_time.png \
field_three_center_phase.pdf field_three_center_phase.png \
field_three_left_time_nomax.pdf field_three_left_time_nomax.png \
field_three_center_time_nomax.pdf field_three_center_time_nomax.png \
#
field_three_left_time.%: src/beacon_field.py
$< --time $@ three-left
field_three_left_phase.%: src/beacon_field.py
$< --phase $@ three-left
field_three_left_time_nomax.%: src/beacon_field.py
$< --time $@ three-left --max-rms 0
field_three_center_time.%: src/beacon_field.py
$< --time $@ three-center
field_three_center_time_nomax.%: src/beacon_field.py
$< --time $@ three-center --max-rms 0
field_three_center_phase.%: src/beacon_field.py
$< --phase $@ three-center
field_three_center_time_nomax.%: src/beacon_field.py
$< --time $@ three-center --no-max
field_square: \
field_square_all_time.pdf field_square_all_time.png \
field_square_all_phase.pdf field_square_all_phase.png \
field_square_ref0_time.pdf field_square_ref0_time.png \
field_square_ref0_phase.pdf field_square_ref0_phase.png \
field_square_all_time_zoomtx.pdf field_square_all_time_zoomtx.png \
field_square_all_phase_zoomtx.pdf field_square_all_phase_zoomtx.png \
field_square_ref0_time_zoomtx.pdf field_square_ref0_time_zoomtx.png \
field_square_ref0_phase_zoomtx.pdf field_square_ref0_phase_zoomtx.png \
#
field_square_ref0_time.%: src/beacon_field.py
$< --time $@ square --ref 0
field_square_ref0_phase.%: src/beacon_field.py
$< --phase $@ square --ref 0
field_square_all_time.%: src/beacon_field.py
$< --time $@ square
field_square_all_phase.%: src/beacon_field.py
$< --phase $@ square
field_square_ref0_time_zoomtx.%: src/beacon_field.py
$< --time $@ square --ref 0 --zoom tx
field_square_ref0_phase_zoomtx.%: src/beacon_field.py
$< --phase $@ square --ref 0 --zoom tx
field_square_all_time_zoomtx.%: src/beacon_field.py
$< --time $@ square --zoom tx
field_square_all_phase_zoomtx.%: src/beacon_field.py
$< --phase $@ square --zoom tx

View File

@ -255,6 +255,9 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.fname == 'none':
args.fname = None
if args.fname is not None:
if path.isdir(args.fname):
args.fname = path.join(args.fname, path.splitext(path.basename(__file__))[0]) # leave off extension

View File

@ -125,50 +125,50 @@
\subsection{Pulse}
\begin{frame}{Beacon: Pulse (single baseline)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_single_center_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_single_left_time.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_single_center_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_single_left_time.pdf}
\end{figure}
\end{frame}
\begin{frame}{Beacon: Pulse (3 baselines)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_three_center_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_three_left_time.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_three_center_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_three_left_time.pdf}
\end{figure}
\end{frame}
\begin{frame}{Beacon: Pulse (multi baseline)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_square_ref0_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_square_all_time.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_square_ref0_time.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_square_all_time.pdf}
\end{figure}
\end{frame}
\subsection{Sine}
\begin{frame}{Beacon: Sine (single baseline)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_single_center_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_single_left_phase.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_single_center_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_single_left_phase.pdf}
\end{figure}
\end{frame}
\begin{frame}{Beacon: Sine (3 baseline)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_three_center_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_three_left_phase.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_three_center_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_three_left_phase.pdf}
\end{figure}
\end{frame}
\begin{frame}{Beacon: Sine (multi baseline reference antenna)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_square_ref0_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_square_ref0_phase_zoomtx.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_square_ref0_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_square_ref0_phase_zoomtx.pdf}
\end{figure}
\end{frame}
\begin{frame}{Beacon: Sine (all baselines)}
\begin{figure}
\includegraphics<1>[width=\textwidth]{beacon/field_square_all_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field_square_all_phase_zoomtx.pdf}
\includegraphics<1>[width=\textwidth]{beacon/field/field_square_all_phase.pdf}
\includegraphics<2>[width=\textwidth]{beacon/field/field_square_all_phase_zoomtx.pdf}
\end{figure}
\end{frame}