### Reorganized files, working on statistics

```The source files have been separated: with the Make (`.mk') files now
in `reproduce/make' and the scripts (for the time being only AWK) in
`reproduce/scripts'. Also work has started on deriving the statistics
of each field, but is not yet complete (it isn't a prerequisite of the
final PDF for now in this commit).```
parent d5828815
 ... ... @@ -64,7 +64,7 @@ all: \$(BSYM) description.pdf # Note that we cannot simply include `reproduce/src/*.mk'. Because the # order of reading them into Make actually matters in some cases. include \$(foreach m, preparations download degrade-hst input-cutouts \ catalog description, reproduce/src/\$(m).mk) catalog statistics description, reproduce/make/\$(m).mk) ... ...
 ... ... @@ -173,48 +173,3 @@ \$(fullmosaic): \$(ccatdir)/udf-%.txt: \$\$(foreach i, 1 2 3 4 5 6 7 8 9, \ # Put all the non-commented rows of each subfield. for file in \$^; do awk '!/^#/{print}' \$\$file >> \$@; done # Prepare 2D histograms # --------------------- # # For time being, we are plotting 2D histograms. twodxmin=20 twodxmax=30 twodxnbins=40 twodymin=-1.8125 twodymax=1.8125 twodynbins=42 twoddir = \$(BDIR)/tex/2D-histograms two-d-hists = \$(foreach field, udf udf10, \ \$(foreach filter, \$(filters), \ \$(twoddir)/\$(field)-\$(filter).txt) ) \$(two-d-hists): \$(twoddir)/%.txt: \$(ccatdir)/%.txt | \$(twoddir) # Pull out the two columns to generate the histogram awk '!/^#/{print \$\$5, \$\$8}' \$(ccatdir)/\$*.txt > \$(twoddir)/\$*_fh.txt # Generate the 2D histogram. awk -vxmin=\$(twodxmin) -vxmax=\$(twodxmax) -vymin=\$(twodymin) \ -vymax=\$(twodymax) -vxnumbins=\$(twodxnbins) \ -vynumbins=\$(twodynbins) -vcol=8 -vshowemptylast=1 \ -vextraout=0 -i reproduce/src/checks.awk \ -f reproduce/src/2dhist.awk \$(twoddir)/\$*_fh.txt > \$@ # Clean up rm \$(twoddir)/\$*_fh.txt # TeX macros # ---------- \$(mtexdir)/catalog.tex: \$(two-d-hists) | \$(mtexdir) echo "\\newcommand{\\twodxmin}{\$(twodxmin)}" > \$@ echo "\\newcommand{\\twodxmax}{\$(twodxmax)}" >> \$@ echo "\\newcommand{\\twodxnbins}{\$(twodxnbins)}" >> \$@ echo "\\newcommand{\\twodynbins}{\$(twodynbins)}" >> \$@
 ... ... @@ -48,7 +48,7 @@ tikz:; mkdir tikz # do not necessarily exist before Make actually starts (for example # when the pipeline is run for the first time). You just have to add # their root filename to the prerequisites list manually here. tex/pipeline.tex: \$(foreach t, versions catalog, \$(mtexdir)/\$(t).tex) tex/pipeline.tex: \$(foreach t, versions statistics, \$(mtexdir)/\$(t).tex) echo "\\newcommand{\\buildtexdir}{\$(BDIR)/tex}" > \$@ cat \$^ >> \$@ ... ...