Skip to content

Commit

Permalink
moved Hayabusa NIRS driver to its own branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcain-usgs committed Feb 16, 2023
1 parent cca7b77 commit d6e5406
Showing 1 changed file with 1 addition and 63 deletions.
64 changes: 1 addition & 63 deletions ale/drivers/hayabusa_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
return str(self.label['IsisCube']['Instrument']['SpacecraftClockStopCount'].value)

0 comments on commit d6e5406

Please sign in to comment.