From 4a9d3163463b424436fcf7d0daa4f7af52b2a5f2 Mon Sep 17 00:00:00 2001
From: vertighel <davide.ricci82@gmail.com>
Date: Mon, 12 May 2025 00:39:48 +0200
Subject: [PATCH] Modified opc.ini

---
 noche/noche.py              |  1 +
 noche/observatories/opc.ini | 11 +++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/noche/noche.py b/noche/noche.py
index 4060ae4..120844c 100644
--- a/noche/noche.py
+++ b/noche/noche.py
@@ -218,6 +218,7 @@ class Noche:
                     log.warning(f"{k:<8} (Pre): from {x} to {self.header[k]}")
                 except Exception as e:
                     log.error(f"Failed to evaluate PreFormula for {k}: {e}")
+                    
         # # Apply Mapping
         # loc = config["Mapping"]
         # for k in loc.keys():
diff --git a/noche/observatories/opc.ini b/noche/observatories/opc.ini
index 28bd114..c62c6a3 100644
--- a/noche/observatories/opc.ini
+++ b/noche/observatories/opc.ini
@@ -9,7 +9,7 @@ INSTRUME = OPC Instrument         # Instrument name
 OBSTYPE = Imaging                 # Observation type
 DETECTOR = Moravian G4 - KAF09000 # Detector identifier
 DETSIZE = [1:4144,1:4126]         # [px] [1:x,1:y] Physical CCD dimensions
-DETROT = +0.0                     # [deg] Rotation offset of the detector
+DETROT = 90.0                     # [deg] Rotation offset of the detector
 XPIXSZ = 12                       # [um] Pixel X axis size
 YPIXSZ = 12                       # [um] Pixel Y axis size
 PIXSCALE = 0.38                   # [arcsec/px] Plate scale in binning 1
@@ -21,8 +21,8 @@ NAXIS1 = NAXIS1                   # [px] X Dimensions of detector
 NAXIS2 = NAXIS2                   # [px] Y dimension of detector
 # OBSERVER =                       # Observer name
 OBJECT   = OBJECT                 # Name of observed object
-RA = OBJCTRA                      # In sexagesimal or decimal format
-DEC = OBJCTDEC                    # In sexagesimal or decimal format
+RA = RAOBJ2k                       # In sexagesimal or decimal format
+DEC = DECOBJ2K                     # In sexagesimal or decimal format
 DATE-OBS = DATE-OBS               # [YYYY-MM-DDTHH:MM:SS] UTC observation date
 FOCUSTEM = FOCUSTEM               # [C] Focuser temperature
 FOCUSPOS = FOCUSPOS               # [um] Focuser position
@@ -38,6 +38,9 @@ SWCREATE = SWCREATE               # Software that created FILEORIG
 PIERSIDE = PIERSIDE               # Side of the camera wrt pier, if any 
 
 [Formula]
-
+#RA = (x)/15
 
 [Tweak]
+CDELT1 = -1*x
+CRPIX1 = x-550
+CRPIX2 = x-500
\ No newline at end of file
-- 
GitLab