Skip to content
Snippets Groups Projects
Commit 2a7a2052 authored by Kristin's avatar Kristin Committed by Jesse Mapel
Browse files

Adds look direction to SAR driver (and ISD output) (#355)

* Update format of range conversion coefficients isd output to include a separate list for times. Also update driver, test data, and remove unneeded semicolons

* Fix documentaion error

* fix other documentation error

* Add look direction to SAR driver, sensor type, ISD output, and test
parent c09aaebf
No related branches found
No related tags found
No related merge requests found
...@@ -205,3 +205,15 @@ class Radar(): ...@@ -205,3 +205,15 @@ class Radar():
Times for the range conversion coefficients Times for the range conversion coefficients
""" """
raise NotImplementedError raise NotImplementedError
@property
def look_direction(self):
"""
Direction of the look (left or right)
Returns
-------
: string
left or right
"""
raise NotImplementedError
...@@ -621,4 +621,14 @@ class LroMiniRfIsisLabelNaifSpiceDriver(Radar, NaifSpice, IsisLabel, Driver): ...@@ -621,4 +621,14 @@ class LroMiniRfIsisLabelNaifSpiceDriver(Radar, NaifSpice, IsisLabel, Driver):
""" """
return spice.str2et(str(self.utc_stop_time)) return spice.str2et(str(self.utc_stop_time))
@property
def look_direction(self):
"""
Direction of the look (left or right)
Returns
-------
: string
left or right
"""
return self.label['IsisCube']['Instrument']['LookDirection'].lower()
...@@ -163,6 +163,7 @@ def to_usgscsm(driver): ...@@ -163,6 +163,7 @@ def to_usgscsm(driver):
isd_data['scaled_pixel_width'] = driver.scaled_pixel_width isd_data['scaled_pixel_width'] = driver.scaled_pixel_width
isd_data['range_conversion_times'] = driver.range_conversion_times isd_data['range_conversion_times'] = driver.range_conversion_times
isd_data['range_conversion_coefficients'] = driver.range_conversion_coefficients isd_data['range_conversion_coefficients'] = driver.range_conversion_coefficients
isd_data['look_direction'] = driver.look_direction
# check that there is a valid sensor model name # check that there is a valid sensor model name
if 'name_model' not in isd_data: if 'name_model' not in isd_data:
......
...@@ -10157,6 +10157,7 @@ ...@@ -10157,6 +10157,7 @@
[7.99423706730000e+04, 6.79149600000000e-01, 3.51607500000000e-06, -2.44520600000000e-11], [7.99423706730000e+04, 6.79149600000000e-01, 3.51607500000000e-06, -2.44520600000000e-11],
[7.99423710670000e+04, 6.78430200000000e-01, 3.52233100000000e-06, -2.44771700000000e-11] [7.99423710670000e+04, 6.78430200000000e-01, 3.52233100000000e-06, -2.44771700000000e-11]
], ],
"dt_ephemeris": 0.3013815733766745 "dt_ephemeris": 0.3013815733766745,
"look_direction": "right"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment