python — Driver Interfaces¶
- ale.drivers.load(label, props={}, formatter='ale', verbose=False)¶
Attempt to load a given label from all possible drivers.
This function opens up the label file and attempts to produce an ISD in the format specified using the supplied properties. Drivers are tried sequentially until an ISD is successfully created. Drivers that use external ephemeris data are tested before drivers that use attached epehemeris data.
Parameters¶
- labelstr
String path to the given label file
- propsdict
A dictionary of optional keywords/parameters for use in driver loading. Each driver specifies its own set of properties to use. For example, Drivers that use the NaifSpice mix-in use the ‘kernels’ property to specify an explicit set of kernels and load order.
- formatter{‘ale’, ‘isis’, ‘usgscsm’}
Output format for the ISD. As of 0.8.0, it is recommended that the ale formatter is used. The isis and usgscsm formatters are retrained for backwards compatability.
- verbosebool
If True, displays debug output specifying which drivers were attempted and why they failed.
Returns¶
- dict
The ISD as a dictionary
- ale.drivers.loads(label, props='', formatter='ale', verbose=False)¶
Attempt to load a given label from all possible drivers.
This function is the same as load, except it returns a JSON formatted string.
Returns¶
- str
The ISD as a JSON formatted string
See Also¶
load
base— Default Driver ClassesDriverDriver.center_ephemeris_timeDriver.detector_center_lineDriver.detector_center_sampleDriver.detector_start_lineDriver.detector_start_sampleDriver.ephemeris_start_timeDriver.ephemeris_stop_timeDriver.focal2pixel_linesDriver.focal2pixel_samplesDriver.focal_lengthDriver.frame_chainDriver.image_linesDriver.image_samplesDriver.line_summingDriver.naif_keywordsDriver.pixel2focal_xDriver.pixel2focal_yDriver.platform_nameDriver.sample_summingDriver.sensor_frame_idDriver.sensor_model_versionDriver.sensor_nameDriver.sensor_positionDriver.sun_positionDriver.target_body_radiiDriver.target_frame_idDriver.target_nameDriver.usgscsm_distortion_model
util— General Utilitiesrotation— Python Rotationstransformation— Python Frame Transformationsmix-ins— Mix-in ClassesSupplementary Data— Supplementary Data Mix-insNaifSpiceNaifSpice.correct_lt_to_surfaceNaifSpice.detector_center_lineNaifSpice.detector_center_sampleNaifSpice.ephemeris_start_timeNaifSpice.ephemeris_stop_timeNaifSpice.focal2pixel_linesNaifSpice.focal2pixel_samplesNaifSpice.focal_lengthNaifSpice.ikidNaifSpice.kernelsNaifSpice.light_time_correctionNaifSpice.naif_keywordsNaifSpice.odtkNaifSpice.odtxNaifSpice.odtyNaifSpice.pixel2focal_xNaifSpice.pixel2focal_yNaifSpice.pixel_sizeNaifSpice.reference_frameNaifSpice.sensor_frame_idNaifSpice.sensor_orientationNaifSpice.sensor_positionNaifSpice.spacecraft_idNaifSpice.sun_positionNaifSpice.swap_observer_targetNaifSpice.target_body_radiiNaifSpice.target_frame_idNaifSpice.target_id
IsisSpiceIsisSpice.body_orientation_tableIsisSpice.detector_center_lineIsisSpice.detector_center_sampleIsisSpice.ephemeris_start_timeIsisSpice.focal2pixel_linesIsisSpice.focal2pixel_samplesIsisSpice.focal_lengthIsisSpice.frame_chainIsisSpice.ikidIsisSpice.inst_pointing_tableIsisSpice.inst_position_tableIsisSpice.naif_keywordsIsisSpice.odtkIsisSpice.pixel2focal_xIsisSpice.pixel2focal_yIsisSpice.sensor_positionIsisSpice.sun_positionIsisSpice.sun_position_tableIsisSpice.target_body_radii
parse_table()read_table_data()rotate_state()
Label Data— Label Data Mix-insIsisLabelIsisLabel.exposure_durationIsisLabel.image_linesIsisLabel.image_samplesIsisLabel.instrument_idIsisLabel.line_exposure_durationIsisLabel.line_summingIsisLabel.platform_nameIsisLabel.sample_summingIsisLabel.sampling_factorIsisLabel.sensor_model_versionIsisLabel.sensor_nameIsisLabel.spacecraft_clock_start_countIsisLabel.spacecraft_clock_stop_countIsisLabel.spacecraft_nameIsisLabel.target_nameIsisLabel.utc_start_timeIsisLabel.utc_stop_time
Pds3LabelPds3Label.crosstrack_summingPds3Label.downtrack_summingPds3Label.exposure_durationPds3Label.filter_numberPds3Label.image_linesPds3Label.image_samplesPds3Label.instrument_host_idPds3Label.instrument_host_namePds3Label.instrument_idPds3Label.instrument_namePds3Label.line_exposure_durationPds3Label.line_summingPds3Label.platform_namePds3Label.sample_summingPds3Label.sampling_factorPds3Label.sensor_namePds3Label.spacecraft_clock_start_countPds3Label.spacecraft_clock_stop_countPds3Label.spacecraft_namePds3Label.target_namePds3Label.utc_start_timePds3Label.utc_stop_time
Sensor Type— Sensor Type Mix-insDistortion Model— Distortion Model Type Mix-ins
concrete-drivers— Concrete Sensor Driverco_drivers— Cassini Driver ClassesCassiniIssPds3LabelNaifSpiceDriverCassiniIssPds3LabelNaifSpiceDriver.detector_center_lineCassiniIssPds3LabelNaifSpiceDriver.detector_center_sampleCassiniIssPds3LabelNaifSpiceDriver.focal2pixel_linesCassiniIssPds3LabelNaifSpiceDriver.focal2pixel_samplesCassiniIssPds3LabelNaifSpiceDriver.focal_epsilonCassiniIssPds3LabelNaifSpiceDriver.focal_lengthCassiniIssPds3LabelNaifSpiceDriver.frame_chainCassiniIssPds3LabelNaifSpiceDriver.instrument_idCassiniIssPds3LabelNaifSpiceDriver.odtkCassiniIssPds3LabelNaifSpiceDriver.sensor_frame_idCassiniIssPds3LabelNaifSpiceDriver.sensor_model_versionCassiniIssPds3LabelNaifSpiceDriver.spacecraft_name
dawn_drivers— Dawn Driver ClassesDawnFcPds3NaifSpiceDriverDawnFcPds3NaifSpiceDriver.detector_center_lineDawnFcPds3NaifSpiceDriver.detector_center_sampleDawnFcPds3NaifSpiceDriver.ephemeris_start_timeDawnFcPds3NaifSpiceDriver.focal2pixel_linesDawnFcPds3NaifSpiceDriver.focal2pixel_samplesDawnFcPds3NaifSpiceDriver.instrument_idDawnFcPds3NaifSpiceDriver.labelDawnFcPds3NaifSpiceDriver.odtkDawnFcPds3NaifSpiceDriver.sensor_model_versionDawnFcPds3NaifSpiceDriver.spacecraft_nameDawnFcPds3NaifSpiceDriver.target_nameDawnFcPds3NaifSpiceDriver.usgscsm_distortion_model
hayabusa2_drivers— Hayabusa2 Driver Classesisis_ideal_drivers— ISIS Ideal Camera Driver ClassesIdealLsIsisLabelIsisSpiceDriverIdealLsIsisLabelIsisSpiceDriver.detector_center_lineIdealLsIsisLabelIsisSpiceDriver.detector_center_sampleIdealLsIsisLabelIsisSpiceDriver.detector_start_lineIdealLsIsisLabelIsisSpiceDriver.detector_start_sampleIdealLsIsisLabelIsisSpiceDriver.ephemeris_start_timeIdealLsIsisLabelIsisSpiceDriver.ephemeris_stop_timeIdealLsIsisLabelIsisSpiceDriver.focal2pixel_linesIdealLsIsisLabelIsisSpiceDriver.focal2pixel_samplesIdealLsIsisLabelIsisSpiceDriver.focal_lengthIdealLsIsisLabelIsisSpiceDriver.instrument_idIdealLsIsisLabelIsisSpiceDriver.pixel2focal_xIdealLsIsisLabelIsisSpiceDriver.pixel2focal_yIdealLsIsisLabelIsisSpiceDriver.sensor_model_versionIdealLsIsisLabelIsisSpiceDriver.sensor_nameIdealLsIsisLabelIsisSpiceDriver.spacecraft_name
juno_drivers— Juno Driver Classeslro_drivers— LRO Driver ClassesLroLrocIsisLabelNaifSpiceDriverLroLrocIsisLabelNaifSpiceDriver.additional_prerollLroLrocIsisLabelNaifSpiceDriver.additive_line_errorLroLrocIsisLabelNaifSpiceDriver.constant_time_offsetLroLrocIsisLabelNaifSpiceDriver.detector_center_sampleLroLrocIsisLabelNaifSpiceDriver.ephemeris_start_timeLroLrocIsisLabelNaifSpiceDriver.exposure_durationLroLrocIsisLabelNaifSpiceDriver.focal2pixel_linesLroLrocIsisLabelNaifSpiceDriver.instrument_idLroLrocIsisLabelNaifSpiceDriver.light_time_correctionLroLrocIsisLabelNaifSpiceDriver.multiplicative_line_errorLroLrocIsisLabelNaifSpiceDriver.odtkLroLrocIsisLabelNaifSpiceDriver.sampling_factorLroLrocIsisLabelNaifSpiceDriver.sensor_model_versionLroLrocIsisLabelNaifSpiceDriver.spacecraft_directionLroLrocIsisLabelNaifSpiceDriver.usgscsm_distortion_model
LroLrocPds3LabelNaifSpiceDriverLroLrocPds3LabelNaifSpiceDriver.additional_prerollLroLrocPds3LabelNaifSpiceDriver.additive_line_errorLroLrocPds3LabelNaifSpiceDriver.constant_time_offsetLroLrocPds3LabelNaifSpiceDriver.detector_center_sampleLroLrocPds3LabelNaifSpiceDriver.ephemeris_start_timeLroLrocPds3LabelNaifSpiceDriver.exposure_durationLroLrocPds3LabelNaifSpiceDriver.focal2pixel_linesLroLrocPds3LabelNaifSpiceDriver.instrument_idLroLrocPds3LabelNaifSpiceDriver.light_time_correctionLroLrocPds3LabelNaifSpiceDriver.multiplicative_line_errorLroLrocPds3LabelNaifSpiceDriver.odtkLroLrocPds3LabelNaifSpiceDriver.sampling_factorLroLrocPds3LabelNaifSpiceDriver.sensor_model_versionLroLrocPds3LabelNaifSpiceDriver.spacecraft_directionLroLrocPds3LabelNaifSpiceDriver.spacecraft_nameLroLrocPds3LabelNaifSpiceDriver.usgscsm_distortion_model
LroMiniRfIsisLabelNaifSpiceDriverLroMiniRfIsisLabelNaifSpiceDriver.ephemeris_start_timeLroMiniRfIsisLabelNaifSpiceDriver.ephemeris_stop_timeLroMiniRfIsisLabelNaifSpiceDriver.instrument_idLroMiniRfIsisLabelNaifSpiceDriver.line_exposure_durationLroMiniRfIsisLabelNaifSpiceDriver.look_directionLroMiniRfIsisLabelNaifSpiceDriver.range_conversion_coefficientsLroMiniRfIsisLabelNaifSpiceDriver.range_conversion_timesLroMiniRfIsisLabelNaifSpiceDriver.scaled_pixel_widthLroMiniRfIsisLabelNaifSpiceDriver.wavelength
mess_drivers— MDIS Driver ClassesMessengerMdisIsisLabelIsisSpiceDriverMessengerMdisIsisLabelNaifSpiceDriverMessengerMdisIsisLabelNaifSpiceDriver.detector_center_lineMessengerMdisIsisLabelNaifSpiceDriver.detector_center_sampleMessengerMdisIsisLabelNaifSpiceDriver.ephemeris_start_timeMessengerMdisIsisLabelNaifSpiceDriver.fikidMessengerMdisIsisLabelNaifSpiceDriver.focal_lengthMessengerMdisIsisLabelNaifSpiceDriver.instrument_idMessengerMdisIsisLabelNaifSpiceDriver.pixel_sizeMessengerMdisIsisLabelNaifSpiceDriver.platform_nameMessengerMdisIsisLabelNaifSpiceDriver.sampling_factorMessengerMdisIsisLabelNaifSpiceDriver.sensor_model_versionMessengerMdisIsisLabelNaifSpiceDriver.usgscsm_distortion_model
MessengerMdisPds3NaifSpiceDriverMessengerMdisPds3NaifSpiceDriver.detector_center_lineMessengerMdisPds3NaifSpiceDriver.detector_center_sampleMessengerMdisPds3NaifSpiceDriver.fikidMessengerMdisPds3NaifSpiceDriver.focal_lengthMessengerMdisPds3NaifSpiceDriver.instrument_idMessengerMdisPds3NaifSpiceDriver.pixel_sizeMessengerMdisPds3NaifSpiceDriver.sampling_factorMessengerMdisPds3NaifSpiceDriver.sensor_model_versionMessengerMdisPds3NaifSpiceDriver.spacecraft_nameMessengerMdisPds3NaifSpiceDriver.usgscsm_distortion_model
mex_drivers— Mars Express Driver ClassesMexHrscIsisLabelNaifSpiceDriverMexHrscIsisLabelNaifSpiceDriver.ephemeris_start_timeMexHrscIsisLabelNaifSpiceDriver.ephemeris_stop_timeMexHrscIsisLabelNaifSpiceDriver.fikidMexHrscIsisLabelNaifSpiceDriver.ikidMexHrscIsisLabelNaifSpiceDriver.instrument_idMexHrscIsisLabelNaifSpiceDriver.line_scan_rateMexHrscIsisLabelNaifSpiceDriver.sensor_model_versionMexHrscIsisLabelNaifSpiceDriver.sensor_nameMexHrscIsisLabelNaifSpiceDriver.times_table
MexHrscPds3NaifSpiceDriverMexHrscPds3NaifSpiceDriver.binary_ephemeris_timesMexHrscPds3NaifSpiceDriver.binary_exposure_durationsMexHrscPds3NaifSpiceDriver.binary_linesMexHrscPds3NaifSpiceDriver.detector_center_lineMexHrscPds3NaifSpiceDriver.detector_center_sampleMexHrscPds3NaifSpiceDriver.ephemeris_stop_timeMexHrscPds3NaifSpiceDriver.fikidMexHrscPds3NaifSpiceDriver.focal2pixel_linesMexHrscPds3NaifSpiceDriver.focal2pixel_samplesMexHrscPds3NaifSpiceDriver.focal_lengthMexHrscPds3NaifSpiceDriver.ikidMexHrscPds3NaifSpiceDriver.instrument_idMexHrscPds3NaifSpiceDriver.line_exposure_durationMexHrscPds3NaifSpiceDriver.line_scan_rateMexHrscPds3NaifSpiceDriver.odtkMexHrscPds3NaifSpiceDriver.pixel2focal_xMexHrscPds3NaifSpiceDriver.pixel2focal_yMexHrscPds3NaifSpiceDriver.read_image_data()MexHrscPds3NaifSpiceDriver.sensor_model_versionMexHrscPds3NaifSpiceDriver.spacecraft_name
MexSrcPds3NaifSpiceDriverMexSrcPds3NaifSpiceDriver.detector_center_lineMexSrcPds3NaifSpiceDriver.detector_center_sampleMexSrcPds3NaifSpiceDriver.focal2pixel_linesMexSrcPds3NaifSpiceDriver.focal2pixel_samplesMexSrcPds3NaifSpiceDriver.ikidMexSrcPds3NaifSpiceDriver.instrument_idMexSrcPds3NaifSpiceDriver.odtkMexSrcPds3NaifSpiceDriver.sensor_model_versionMexSrcPds3NaifSpiceDriver.spacecraft_name
mro_drivers— MRO Driver ClassesMroCtxIsisLabelIsisSpiceDriverMroCtxIsisLabelNaifSpiceDriverMroCtxIsisLabelNaifSpiceDriver.detector_center_sampleMroCtxIsisLabelNaifSpiceDriver.detector_start_sampleMroCtxIsisLabelNaifSpiceDriver.ephemeris_start_timeMroCtxIsisLabelNaifSpiceDriver.ephemeris_stop_timeMroCtxIsisLabelNaifSpiceDriver.instrument_idMroCtxIsisLabelNaifSpiceDriver.sensor_model_versionMroCtxIsisLabelNaifSpiceDriver.sensor_nameMroCtxIsisLabelNaifSpiceDriver.spacecraft_name
MroCtxPds3LabelNaifSpiceDriver
nh_drivers— New Horizons Driver Classesody_drivers— Odyssey Driver ClassesOdyThemisIrIsisLabelNaifSpiceDriverOdyThemisIrIsisLabelNaifSpiceDriver.detector_center_lineOdyThemisIrIsisLabelNaifSpiceDriver.detector_center_sampleOdyThemisIrIsisLabelNaifSpiceDriver.ephemeris_start_timeOdyThemisIrIsisLabelNaifSpiceDriver.focal_lengthOdyThemisIrIsisLabelNaifSpiceDriver.ikidOdyThemisIrIsisLabelNaifSpiceDriver.instrument_idOdyThemisIrIsisLabelNaifSpiceDriver.line_exposure_durationOdyThemisIrIsisLabelNaifSpiceDriver.sensor_model_versionOdyThemisIrIsisLabelNaifSpiceDriver.sensor_nameOdyThemisIrIsisLabelNaifSpiceDriver.spacecraft_name
OdyThemisVisIsisLabelNaifSpiceDriverOdyThemisVisIsisLabelNaifSpiceDriver.detector_center_lineOdyThemisVisIsisLabelNaifSpiceDriver.detector_center_sampleOdyThemisVisIsisLabelNaifSpiceDriver.ephemeris_start_timeOdyThemisVisIsisLabelNaifSpiceDriver.focal_lengthOdyThemisVisIsisLabelNaifSpiceDriver.ikidOdyThemisVisIsisLabelNaifSpiceDriver.instrument_idOdyThemisVisIsisLabelNaifSpiceDriver.line_exposure_durationOdyThemisVisIsisLabelNaifSpiceDriver.sensor_model_versionOdyThemisVisIsisLabelNaifSpiceDriver.sensor_nameOdyThemisVisIsisLabelNaifSpiceDriver.spacecraft_name
selene_drivers— Selene Driver ClassesKaguyaMiPds3NaifSpiceDriverKaguyaMiPds3NaifSpiceDriver.base_bandKaguyaMiPds3NaifSpiceDriver.boresight_xKaguyaMiPds3NaifSpiceDriver.boresight_yKaguyaMiPds3NaifSpiceDriver.detector_center_lineKaguyaMiPds3NaifSpiceDriver.detector_center_sampleKaguyaMiPds3NaifSpiceDriver.ephemeris_start_timeKaguyaMiPds3NaifSpiceDriver.focal2pixel_linesKaguyaMiPds3NaifSpiceDriver.focal2pixel_samplesKaguyaMiPds3NaifSpiceDriver.focal_lengthKaguyaMiPds3NaifSpiceDriver.instrument_idKaguyaMiPds3NaifSpiceDriver.line_exposure_durationKaguyaMiPds3NaifSpiceDriver.sensor_frame_idKaguyaMiPds3NaifSpiceDriver.sensor_model_versionKaguyaMiPds3NaifSpiceDriver.spacecraft_clock_start_countKaguyaMiPds3NaifSpiceDriver.spacecraft_clock_stop_countKaguyaMiPds3NaifSpiceDriver.spacecraft_nameKaguyaMiPds3NaifSpiceDriver.usgscsm_distortion_modelKaguyaMiPds3NaifSpiceDriver.utc_start_timeKaguyaMiPds3NaifSpiceDriver.utc_stop_time
KaguyaTcPds3NaifSpiceDriverKaguyaTcPds3NaifSpiceDriver.boresight_xKaguyaTcPds3NaifSpiceDriver.boresight_yKaguyaTcPds3NaifSpiceDriver.detector_center_lineKaguyaTcPds3NaifSpiceDriver.detector_center_sampleKaguyaTcPds3NaifSpiceDriver.detector_start_lineKaguyaTcPds3NaifSpiceDriver.detector_start_sampleKaguyaTcPds3NaifSpiceDriver.ephemeris_start_timeKaguyaTcPds3NaifSpiceDriver.exposure_durationKaguyaTcPds3NaifSpiceDriver.focal2pixel_linesKaguyaTcPds3NaifSpiceDriver.focal2pixel_samplesKaguyaTcPds3NaifSpiceDriver.focal_lengthKaguyaTcPds3NaifSpiceDriver.ikidKaguyaTcPds3NaifSpiceDriver.instrument_host_nameKaguyaTcPds3NaifSpiceDriver.instrument_idKaguyaTcPds3NaifSpiceDriver.sensor_frame_idKaguyaTcPds3NaifSpiceDriver.sensor_model_versionKaguyaTcPds3NaifSpiceDriver.spacecraft_clock_start_countKaguyaTcPds3NaifSpiceDriver.spacecraft_clock_stop_countKaguyaTcPds3NaifSpiceDriver.spacecraft_directionKaguyaTcPds3NaifSpiceDriver.spacecraft_nameKaguyaTcPds3NaifSpiceDriver.usgscsm_distortion_modelKaguyaTcPds3NaifSpiceDriver.utc_start_timeKaguyaTcPds3NaifSpiceDriver.utc_stop_time
tgo_drivers— Trace Gas Oribiter Driver Classesviking_drivers— Viking Driver Classesvoyager_drivers— Voyager Driver ClassesVoyagerCameraIsisLabelNaifSpiceDriverVoyagerCameraIsisLabelNaifSpiceDriver.detector_center_lineVoyagerCameraIsisLabelNaifSpiceDriver.detector_center_sampleVoyagerCameraIsisLabelNaifSpiceDriver.ephemeris_start_timeVoyagerCameraIsisLabelNaifSpiceDriver.ephemeris_stop_timeVoyagerCameraIsisLabelNaifSpiceDriver.ikidVoyagerCameraIsisLabelNaifSpiceDriver.instrument_idVoyagerCameraIsisLabelNaifSpiceDriver.pixel_sizeVoyagerCameraIsisLabelNaifSpiceDriver.sensor_model_versionVoyagerCameraIsisLabelNaifSpiceDriver.spacecraft_name