Skip to content
Snippets Groups Projects
Commit a3b98166 authored by acpaquette's avatar acpaquette
Browse files

General drive import and spacing cleanup

parent ad97ca71
Branches spiceql
No related tags found
No related merge requests found
import pvl
import json
class Driver():
......
import os
import re
import numpy as np
import pvl
import spiceypy as spice
from glob import glob
from pyspiceql import pyspiceql
from ale.util import get_metakernels, query_kernel_pool
from ale.util import query_kernel_pool
from ale.base import Driver
from ale.base.data_naif import NaifSpice
from ale.base.data_isis import IsisSpice
......@@ -278,8 +274,6 @@ class LroLrocNacPds3LabelNaifSpiceDriver(LineScanner, NaifSpice, Pds3Label, Driv
rotated_velocity = spice.mxv(rotation._rots.as_matrix()[0], velocity)
return rotated_velocity[0]
class LroLrocNacIsisLabelNaifSpiceDriver(LineScanner, NaifSpice, IsisLabel, Driver):
@property
def instrument_id(self):
......@@ -859,7 +853,6 @@ class LroMiniRfIsisLabelNaifSpiceDriver(Radar, NaifSpice, IsisLabel, Driver):
return self.target_frame_id
class LroLrocWacIsisLabelIsisSpiceDriver(PushFrame, IsisLabel, IsisSpice, RadialDistortion, Driver):
@property
def instrument_id(self):
......
from glob import glob
import os
import pvl
import spiceypy as spice
import numpy as np
from pyspiceql import pyspiceql
......@@ -73,7 +68,6 @@ class MessengerMdisIsisLabelIsisSpiceDriver(Framer, IsisLabel, IsisSpice, NoDist
"""
return ID_LOOKUP[super().instrument_id]
class MessengerMdisPds3NaifSpiceDriver(Framer, Pds3Label, NaifSpice, NoDistortion, Driver):
"""
Driver for reading MDIS PDS3 labels. Requires a Spice mixin to acquire additional
......@@ -249,7 +243,6 @@ class MessengerMdisPds3NaifSpiceDriver(Framer, Pds3Label, NaifSpice, NoDistortio
"""
return pyspiceql.getKernelStringValue('INS{}_PIXEL_PITCH'.format(self.ikid))
class MessengerMdisIsisLabelNaifSpiceDriver(IsisLabel, NaifSpice, Framer, NoDistortion, Driver):
"""
Driver for reading MDIS ISIS3 Labels. These are Labels that have been ingested
......
......@@ -513,6 +513,7 @@ class MroCtxPds3LabelNaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDi
"""
return self.label['SPACECRAFT_NAME']
hirise_ccd_lookup = {
0: 0,
1: 1,
......@@ -702,6 +703,7 @@ class MroHiRiseIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, Radia
return 1
class MroCrismIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, NoDistortion, Driver):
"""
Driver for reading Crism ISIS labels.
......
import os
import spiceypy as spice
import json
import numpy as np
import pvl
import ale
from ale.base import Driver
from ale.base.label_isis import IsisLabel
from ale.base.data_naif import NaifSpice
from ale.base.type_distortion import RadialDistortion, NoDistortion
from ale.base.type_sensor import Framer, LineScanner
from ale.util import generate_kernels_from_cube
from ale.base.type_distortion import NoDistortion
from ale.base.type_sensor import Framer
from ale.base.type_sensor import Framer
from ale.base.type_distortion import NoDistortion
......
......@@ -829,6 +829,7 @@ class KaguyaTcIsisLabelNaifSpiceDriver(LineScanner, IsisLabel, NaifSpice, Driver
def sensor_model_version(self):
return 2
class KaguyaMiPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, KaguyaSeleneDistortion, Driver):
"""
Driver for a PDS3 Kaguya Multiband Imager (Mi) images. Specifically level2b2 Vis and Nir images.
......
from glob import glob
import os
import struct
import pvl
import numpy as np
from pyspiceql import pyspiceql
from ale.base import Driver
from ale.base.data_naif import NaifSpice
from ale.base.label_isis import IsisLabel
......@@ -50,7 +44,7 @@ class TGOCassisIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, NoDistorti
: float
ephemeris start time of the image.
"""
return pyspiceql.utc2et(self.utc_start_time.strftime("%Y-%m-%d %H:%M:%S.%f")))
return pyspiceql.utc2et(self.utc_start_time.strftime("%Y-%m-%d %H:%M:%S.%f"))
@property
def sensor_frame_id(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment