From d6e540662390db893708e42cac559b2f571b4727 Mon Sep 17 00:00:00 2001 From: Jacob Cain Date: Thu, 16 Feb 2023 12:22:41 -0800 Subject: [PATCH] moved Hayabusa NIRS driver to its own branch --- ale/drivers/hayabusa_drivers.py | 64 +-------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/ale/drivers/hayabusa_drivers.py b/ale/drivers/hayabusa_drivers.py index 41e086ac93..d99c402977 100644 --- a/ale/drivers/hayabusa_drivers.py +++ b/ale/drivers/hayabusa_drivers.py @@ -70,66 +70,4 @@ def spacecraft_clock_stop_count(self): : str Spacecraft clock stop count """ - return str(self.label['IsisCube']['Instrument']['SpacecraftClockStopCount'].value) - - -class HayabusaNirsIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, NoDistortion, Driver): - - @property - def instrument_id(self): - """ - Returns the ID of the instrument - - Returns - ------- - : str - Name of the instrument - """ - lookup_table = {'NIRS': 'HAYABUSA_NIRS'} - return lookup_table[super().instrument_id] - - @property - def sensor_model_version(self): - """ - The ISIS Sensor model number for HiRise in ISIS. This is likely just 1 - - Returns - ------- - : int - ISIS sensor model version - """ - return 1 - - @property - def sensor_name(self): - """ - Returns the name of the instrument - - Returns - ------- - : str - Name of the sensor - """ - return self.instrument_id - - @property - def exposure_duration(self): - """ - Returns the exposure duration of the instrument - - Returns - ------- - : str - Exposure Duration - """ - - """ - print("** DEBUG EXPOSURE DURATION **") - print("Total Integration Time: " + str(self.label['IsisCube']['Instrument']['TotalIntegrationTime'])) - print("Ephemeris Start Time: " + str(self.ephemeris_start_time)) - print("Start Time TIMOUT: " + str(spice.timout(self.ephemeris_start_time, "MON DD, YYYY HR:MN:SC.####", 65))) - ephemeris_stop_time = spice.scs2e(self.spacecraft_id, self.spacecraft_clock_stop_count) - print("Stop Time TIMOUT: " + str(spice.timout(ephemeris_stop_time, "MON DD, YYYY HR:MN:SC.####", 65))) - """ - - return self.label['IsisCube']['Instrument']['TotalIntegrationTime'].value \ No newline at end of file + return str(self.label['IsisCube']['Instrument']['SpacecraftClockStopCount'].value) \ No newline at end of file