Index: trunk/MagicSoft/Mars/mastro/MAstroSky2Local.cc
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstroSky2Local.cc	(revision 7202)
+++ trunk/MagicSoft/Mars/mastro/MAstroSky2Local.cc	(revision 7217)
@@ -129,7 +129,11 @@
 // seen with an Alt/Az telescope.
 //
+// dzd and daz is a pointing offset, which is subtracted from the
+// calculated local coordinates correspoding to time, observatory
+// and ra/dec.
+//
 // For more information see MAstro::RotationAngle
 //
-Double_t MAstroSky2Local::RotationAngle(Double_t ra, Double_t dec) const
+Double_t MAstroSky2Local::RotationAngle(Double_t ra, Double_t dec, Double_t dzd, Double_t daz) const
 {
     TVector3 v;
@@ -137,4 +141,4 @@
     v *= *this;
 
-    return MAstro::RotationAngle(ZZ(), XZ(), v.Theta(), v.Phi());
+    return MAstro::RotationAngle(ZZ(), XZ(), v.Theta()-dzd, v.Phi()-daz);
 }
Index: trunk/MagicSoft/Mars/mastro/MAstroSky2Local.h
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstroSky2Local.h	(revision 7202)
+++ trunk/MagicSoft/Mars/mastro/MAstroSky2Local.h	(revision 7217)
@@ -18,5 +18,5 @@
     MAstroSky2Local(const MTime &t, const MObservatory &obs);
 
-    Double_t RotationAngle(Double_t ra, Double_t dec) const;
+    Double_t RotationAngle(Double_t ra, Double_t dec, Double_t dzd=0, Double_t daz=0) const;
 
     ClassDef(MAstroSky2Local, 1) // Rotation Matrix to convert sky coordinates to ideal local coordinates
