Commit 4ef92b82 authored by Carl Schaffer's avatar Carl Schaffer
Browse files

making sure that derotator data is only accessed if the derotator was installed

parent f2afcfb7
......@@ -221,11 +221,11 @@ class GrisFitsFile(FitsFile):
p0_angle = self.p0_angle
azimut = self._get_value(['AZIMUT'])
zenit = self.zenit
rotangle = self.ROTANGLE
slitorie = self.SLITORIE
const_term = -130 # determined by trial and error to match results from cross correlation with HMI
alpha = -1 * gregor_parallactic_angle(self.obs_time) + azimut - zenit - p0_angle + const_term
if self.derotator_in:
rotangle = self.ROTANGLE
alpha = -2 * rotangle + (const_term / 2)
angle = slitorie - alpha
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment