Index: trunk/psastro/src/psastroMaskUpdates.c
===================================================================
--- trunk/psastro/src/psastroMaskUpdates.c	(revision 41342)
+++ trunk/psastro/src/psastroMaskUpdates.c	(revision 41348)
@@ -424,6 +424,6 @@
                         psastroGhost *ghost = ghosts->data[i];
                         //offset the ghost angles with the astrometric rotation angle
-                        ghost->inner.theta -= (ROT_PARITY * ROTANGLE);
-                        ghost->outer.theta -= (ROT_PARITY * ROTANGLE);
+                        ghost->inner.theta = ghost->inner.theta - AST_T0;
+                        ghost->outer.theta = ghost->outer.theta - AST_T0;
                         // XXX bright vs faint ghost bits? (OR with SUSPECT)
                         psastroMaskEllipticalAnnulus (readoutMask->mask, ghostMaskValue, ghost->chip->x, ghost->chip->y, ghost->inner, ghost->outer);
@@ -444,4 +444,5 @@
                         //psastroMaskRectangle (readoutMask->mask, glintMaskValue, glint->x0, glint->y0, glint->x1, glint->y1);
 
+                        psLogMsg ("psastro", 3, "glint: %d %f %f %f %f %f\n",i, glint->data.F32[0], glint->data.F32[1],glint->data.F32[2], glint->data.F32[3], glint->data.F32[4]);
 		        psastroMaskBox (readoutMask->mask, glintMaskValue, glint->data.F32[0], glint->data.F32[1],
 				    glint->data.F32[2], glint->data.F32[3], glint->data.F32[4]);
