diff --git a/noche/headers/header_base_v1.ini b/noche/headers/header_base_v1.ini index 90ba1e930e8b9769801403450c327ea432680b97..0ea58a762ff16b3ead5e6382366f24a0379a8cde 100644 --- a/noche/headers/header_base_v1.ini +++ b/noche/headers/header_base_v1.ini @@ -39,7 +39,8 @@ OBS-ELEV = | [m] Observatory altitude above sea level FOCUSPOS = | [um] Focuser position FOCUSTEM = | [C] Focuser temperature DEROTANG = 0 | [deg] Rotator angle, if any - +PIERSIDE = "UNKNOWN" | Side of the camera wrt pier, if any + [Imaging] INSTRUME = | Instrument name OBSTYPE = | Observation type diff --git a/noche/noche.py b/noche/noche.py index 482feb41905292c3dbe7d9fd239cde4b9fe58a3d..4060ae4895f0f9636a7dadb153391b5dc0ae07db 100644 --- a/noche/noche.py +++ b/noche/noche.py @@ -459,6 +459,9 @@ class Noche: if not angle: angle = self.header["DEROTANG"] + self.header["DETROT"] + if self.header["PIERSIDE"].upper() == "WEST": + angle += 180 + angle = np.deg2rad(angle) crval_ra = self._coord.ra.deg diff --git a/noche/observatories/opc.ini b/noche/observatories/opc.ini index 5615e5f01402676dd4eabe4dfac706f5fb5554b3..28bd114671b27bea09a5f421bb16109215092d40 100644 --- a/noche/observatories/opc.ini +++ b/noche/observatories/opc.ini @@ -19,10 +19,10 @@ RDNOISE = # [e- RMS] Readout noise [Mapping] NAXIS1 = NAXIS1 # [px] X Dimensions of detector NAXIS2 = NAXIS2 # [px] Y dimension of detector -# OBSERVER = # Observer name +# OBSERVER = # Observer name OBJECT = OBJECT # Name of observed object -RA = RA_OBJ # In sexagesimal or decimal format -DEC = DEC_OBJ # In sexagesimal or decimal format +RA = OBJCTRA # In sexagesimal or decimal format +DEC = OBJCTDEC # 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 @@ -35,8 +35,9 @@ XBINNING = XBINNING # Binning factor in X YBINNING = YBINNING # Binning factor in Y # TEMPERAT = # [C] Ambient temperature SWCREATE = SWCREATE # Software that created FILEORIG +PIERSIDE = PIERSIDE # Side of the camera wrt pier, if any [Formula] -#RA = (x)/15 + [Tweak]