From e623102768c426e86b0ed73904168006dfea2af9 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Sun, 25 Nov 2018 15:22:48 +0000
Subject: Pipeline now downloads and uses an input dataset

In most analysis situations (except for simulations), an input dataset is
necessary, but that part of the pipeline was just left out and a general
`SURVEY' variable was set and never used. So with this commit, we actually
use a sample FITS file from the FITS standard webpage, show it (as well as
its histogram) and do some basic calculations on it.

This preparation of the input datasets is done in a generic way to enable
easy addition of more datasets if necessary.
---
 tex/delete-me-wfpc2.tex | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 tex/delete-me-wfpc2.tex

(limited to 'tex/delete-me-wfpc2.tex')

diff --git a/tex/delete-me-wfpc2.tex b/tex/delete-me-wfpc2.tex
new file mode 100644
index 0000000..95b3105
--- /dev/null
+++ b/tex/delete-me-wfpc2.tex
@@ -0,0 +1,34 @@
+\begin{tikzpicture}
+
+  %% The displayed WFPC2 image.
+  \node[anchor=south west] (img) at (0,0)
+       {\includegraphics[width=0.5\linewidth]
+         {\bdir/tex/delete-me-wfpc2/wfpc2.pdf}};
+
+  %% Its label
+  \node[anchor=south west] at (0.45\linewidth,0.45\linewidth)
+       {\textcolor{white}{a}};
+
+  %% This histogram.
+  \begin{axis}[at={(0.52\linewidth,0.1\linewidth)},
+      no markers,
+      axis on top,
+      xmode=normal,
+      ymode=normal,
+      yticklabels={},
+      scale only axis,
+      xlabel=Pixel value,
+      width=0.5\linewidth,
+      height=0.412\linewidth,
+      enlarge y limits=false,
+      enlarge x limits=false,
+      ]
+    \addplot [const plot mark mid, fill=red]
+    table [x index=0, y index=1]
+    {\bdir/tex/delete-me-wfpc2/wfpc2-hist.txt}
+    \closedcycle;
+  \end{axis}
+
+  %% The histogram's label
+  \node[anchor=south west] at (0.95\linewidth,0.45\linewidth) {b};
+\end{tikzpicture}
-- 
cgit v1.2.1

