From 4ee57bc641551ebf2f0ab9cd972a4e32b813d705 Mon Sep 17 00:00:00 2001 From: pgriffin17 <31374077+pgriffin17@users.noreply.github.com> Date: Wed, 30 Jul 2025 11:30:46 -0500 Subject: [PATCH] Add entries to header for stage angles and gain. --- camera_capture.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/camera_capture.py b/camera_capture.py index 551f093..f56a851 100644 --- a/camera_capture.py +++ b/camera_capture.py @@ -64,13 +64,16 @@ def __init__(self, camera: CameraController = None, angle_manager : Angle_Manage def get_header(self, time: datetime): header : fits.Header = fits.Header() - header.append(Card("date-obs", time.strftime("%Y-%m-%dT%H:%M:%S"), "Observation Datetime.")) + header.append(Card("DATE-OBS", time.strftime("%Y-%m-%dT%H:%M:%S"), "Observation Datetime.")) header.append(Card("SFTWARE", "GUI OAT", "Software used to capture this image.")) - header.append(Card("Camera", self.camera.camera.get_camera_property()["Name"], "Camera used to capture this image.")) + header.append(Card("CAMERA", self.camera.camera.get_camera_property()["Name"], "Camera used to capture this image.")) header.append(Card("EXPOSURE", str(self.camera.camera.get_control_value(asi.ASI_EXPOSURE)), f"Exposure Time (microseconds)")) + header.append(Card("GAIN", self.camera.camera.get_control_value(asi.ASI_GAIN), "Camera Gain")) if self.angle_manager and self.angle_manager.grating_pos_offset and self.angle_manager.camera_pos_offset: - header.append(Card("Alpha", str(self.angle_manager.alpha()), "Angle from the grating normal to the incident light.")) - header.append(Card("Beta", str(self.angle_manager.beta()), "Angle from the grating normal to the diffraction order")) + header.append(Card("ALPHA", str(self.angle_manager.alpha()), "Angle from the grating normal to the incident light.")) + header.append(Card("BETA", str(self.angle_manager.beta()), "Angle from the grating normal to the diffraction order")) + header.append(Card("CAMSTAGE", self.angle_manager.camera_stage_angle(), "Camera stage angle relative to incident light.")) + header.append(Card("GRTSTAGE", self.angle_manager.grating_stage_angle(), "Grating stage angle relative to incident light.")) return header if __name__ == "__main__":