diff --git a/ale/drivers/lro_drivers.py b/ale/drivers/lro_drivers.py index 5331de6509d0f59f2fcd3f5a72e75c0f2e8c8870..a4a991248b4c21dadc474d94a70bd0ae1dfbde7b 100644 --- a/ale/drivers/lro_drivers.py +++ b/ale/drivers/lro_drivers.py @@ -1221,7 +1221,8 @@ class LroLrocWacIsisLabelNaifSpiceDriver(PushFrame, IsisLabel, NaifSpice, Radial if self.instrument_id == "LRO_LROCWAC_UV": base = -85640 elif self.instrument_id == "LRO_LROCWAC_VIS": - base = -85630 + # Offset by 2 because the first 2 filters are UV + base = -85628 fikid = base - self.filter_number return fikid @@ -1252,6 +1253,30 @@ class LroLrocWacIsisLabelNaifSpiceDriver(PushFrame, IsisLabel, NaifSpice, Radial """ return list(spice.gdpool('INS{}_TRANSY'.format(self.fikid), 0, 3)) + @property + def focal2pixel_lines(self): + """ + Expects fikid to be defined. This must be the integer Naif id code of the filter + + Returns + ------- + : list<double> + focal plane to detector lines + """ + return list(spice.gdpool('INS{}_ITRANSL'.format(self.fikid), 0, 3)) + + @property + def focal2pixel_samples(self): + """ + Expects fikid to be defined. This must be the integer Naif id code of the filter + + Returns + ------- + : list<double> + focal plane to detector samples + """ + return list(spice.gdpool('INS{}_ITRANSS'.format(self.fikid), 0, 3)) + @property def detector_start_line(self):