From 56eaff5e1d80890074d91be774d973dbdea9fc38 Mon Sep 17 00:00:00 2001 From: Jesse Mapel <jmapel@usgs.gov> Date: Mon, 16 May 2022 15:26:54 -0700 Subject: [PATCH] LRO WAC tweaks --- ale/drivers/lro_drivers.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/ale/drivers/lro_drivers.py b/ale/drivers/lro_drivers.py index 5331de6..a4a9912 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): -- GitLab