Commit f10f8ced authored by Michael Monkenbusch's avatar Michael Monkenbusch
Browse files

Merge branch 'devel' into mmtest

parents 619cc985 c18c247f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ python/drspine/version.py
# misc other files
.history*
.gdbinit
drspine_profile
fits_*
Makefile.def

ChangeLog

0 → 100644
+25 −0
Original line number Diff line number Diff line


* version 1.0.8 (Apr 7, 2020)
- [MM] test version of direct bgr subtraction
- [MM] test version of multiple ref/bgr matches
- [PZ] allow to overwrite certain parameters on read
    * for now we can specify sample_temp and scattering_angle
    * in addition to (previously defined) phase_offset and tfac
    * example: read s1234.echo as sample sample_temp 273.15 scattering_angle 2.3
- [PZ] reduction parameter r.fqt_maxsigma now means absolute (not relative!) $\sigma_{F(Q,t)}$
    * default value is 1.0

- [PZ/MM] number of bug fixes
    * bug fix int read_data for JNSE array bounds
    * before clearing matches, check if valid scan (caused crash on some macOS machines)
    * warning if empty collection e.g. when q limits outside data range (instead of silent ignore)
    * goto label in macros can now be longer than 8 characters
    * fix runtime error when -s/-e options expect an int (see drspine -h)
    * commented out "test" messages and unused variables
    * make program params more consistent
    * appendix describing drspine parameters (design.pdf, appendix G)
    * clarifications in describing coordinate system (design.pdf, appendix C)

* version 1.0.1 (Oct 24, 2019)
- previous "official" release
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ export PROJARCH=$(PROJECT)-$(VERSION_MAJOR).$(VERSION_MINOR)

export VERSION_MAJOR=1
export VERSION_MINOR=0
export VERSION_RELEASE=1
export VERSION_RELEASE=8

git_rev=$(shell git rev-parse --short HEAD 2> /dev/null)
ifeq "$(git_rev)" ""
+13 −13
Original line number Diff line number Diff line
@@ -12,51 +12,51 @@ with the center (0,0,0) at the sample position, see Fig.~\ref{fig:ella_top_view}
	the NSE Laboratory Frame. The frame center is at the sample position.
	Two NSE carriers are shown in blue. L1 - is the source to sample distance
	and L2 is the distance from the sample to the detector.
	The polar angle $\phi$ is measured with respect to the x-axis
	and the center of the of the detector is denoted by $\phi_0$}
	The polar angle $\varphi$ is measured with respect to the x-axis
	and the center of the of the detector is denoted by $\varphi_0$ (scattering angle).}
	\label{fig:ella_top_view}
\end{figure}
The x-axis is horizontal and points downstream from the source toward
sample. The z-axis is vertical pointing up, and the y-axis is
horizontal completing the right handed coordinate system.
The polar angle $\phi$ is measured with respect to the x-axis (polar
The polar angle $\varphi$ is measured with respect to the x-axis (polar
axis) and the azimuthal angle $\theta$ is measured in the y-z plane
with 0 coinciding with the y-axis and clockwise direction when looking
with $0^{\circ}$ coinciding with the y-axis and clockwise direction when looking
downstream with the neutron flux direction.


\subsection{The Detector Coordinate System}
The NSE detector can rotate in horizontal plane (x-y) around the
sample position from $\phi_0=[0,\phi_0^{max}]$, where $\phi_0^{max}$ is instrument specific.
sample position from $\varphi_0=[0,\varphi_0^{max}]$, where $\varphi_0^{max}$ is instrument specific.
\begin{figure}[h!]
	\centering
	\includegraphics[height=7cm]{detector_view}
	\caption[The detector view of the NSE Laboratory Frame]{The detector view of the NSE
	Laboratory Frame.  The spectrometer detector is at the straight configuration,  i.e.
	$\phi_0 = 0$. Neutron flux is pointing out of the page. Each detector pixel is labeled by a pair of indices $(i,j)$.
	$\varphi_0 = 0$. Neutron flux is pointing out of the page. Each detector pixel is labeled by a pair of indices $(i,j)$.
	The horizontal index $i$ is parallel to y-axis and the vertical index $j$ is anti-parallel to the z-axis.}
  \label{fig:ella_detector_view}
\end{figure}
The NSE detector pixels are labeled by a pair of integer indices $(i,j)$
that run from $(1,1)$ to $(NI, NJ)$, where in a typical configuration $NI=NJ=32$.
that run from $(1,1)$ to $(N_i, N_j)$, where in a typical configuration $N_i=N_j=32$.
The horizontal index $i$ is running parallel to the y-axis and the vertical one $j$
is running anti-parallel to the z-axis. The coordinates of
the center of a (i,j) pixel when the detector is at $\phi_0=0$ are given by
the center of a (i,j) pixel when the detector is at $\varphi_0=0$ are given by
\begin{subequations}
\label{eq:pixel_coordinates}
\begin{eqnarray}
  x_C & = & L2                       \\
  y_C & = & +(i-(NI+1)/2)\times W \\
  z_C & = & -(j-(NJ+1)/2) \times H
  y_C & = & +(i-(N_i+1)/2)\times W \\
  z_C & = & -(j-(N_j+1)/2) \times H
\end{eqnarray}
\end{subequations}
where W and H are pixel width and height.
And when the detector is rotated by the angle $\phi_0$ around the sample, the coordinates of the pixel (i,j) are now given
And when the detector is rotated by the angle $\varphi_0$ around the sample, the coordinates of the pixel (i,j) are now given
\begin{subequations}
\label{eq:pixel_coordinates_rotated}
\begin{eqnarray}
  x_R & = & x_C\cos\phi_0 - y_C\sin\phi_0 \\
  y_R & = & x_C\sin\phi_0 + y_C\cos\phi_0 \\
  x_R & = & x_C\cos\varphi_0 - y_C\sin\varphi_0 \\
  y_R & = & x_C\sin\varphi_0 + y_C\cos\varphi_0 \\
  z_R & = & z_C
\end{eqnarray}
\end{subequations}
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ Throughout the document the following priorities are assumed:

\include{whatabout4pointecho_ins}

\include{reduction_parameters}

\end{appendices}


Loading