Skip to content
Snippets Groups Projects
Commit 9165064f authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

Docs! (#365)

* File renames

* Small spacing consistencies for doc strings

* Fixes doc build warnings for lro_drivers

* Large documentation update. Adds a bunch of new doc pages and fixes various doc strings within the code base.

* Small change to the formatter and error message

* Potential fix to account for framers in the ISD object

* Changed angular_velocity keyword in ISDS to angular_velocities

* Updated ISD test with new expected error message
parent 0f2739f7
No related branches found
No related tags found
No related merge requests found
Showing
with 202 additions and 110 deletions
...@@ -61,6 +61,16 @@ def load(label, props={}, formatter='ale', verbose=False): ...@@ -61,6 +61,16 @@ def load(label, props={}, formatter='ale', verbose=False):
---------- ----------
label : str label : str
String path to the given label file String path to the given label file
props : dict
A dictionary of optional keywords/parameters for use in driver
loading
formatter : str
Formatted output to expect from the driver
verbose : bool
If True, displays error messages from driver loading
""" """
if isinstance(formatter, str): if isinstance(formatter, str):
formatter = __formatters__[formatter] formatter = __formatters__[formatter]
......
...@@ -456,6 +456,7 @@ class LroLrocIsisLabelNaifSpiceDriver(LineScanner, NaifSpice, IsisLabel, Driver) ...@@ -456,6 +456,7 @@ class LroLrocIsisLabelNaifSpiceDriver(LineScanner, NaifSpice, IsisLabel, Driver)
def additional_preroll(self): def additional_preroll(self):
""" """
Returns the addition preroll defined in an IAK. Returns the addition preroll defined in an IAK.
Returns Returns
------- -------
: float : float
......
...@@ -22,6 +22,7 @@ class NewHorizonsLorriIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Dri ...@@ -22,6 +22,7 @@ class NewHorizonsLorriIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Dri
Returns an instrument id for uniquely identifying the instrument, but often Returns an instrument id for uniquely identifying the instrument, but often
also used to be piped into Spice Kernels to acquire IKIDs. Therefore they also used to be piped into Spice Kernels to acquire IKIDs. Therefore they
the same ID the Spice expects in bods2c calls. the same ID the Spice expects in bods2c calls.
Returns Returns
------- -------
: str : str
...@@ -51,4 +52,3 @@ class NewHorizonsLorriIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Dri ...@@ -51,4 +52,3 @@ class NewHorizonsLorriIsisLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Dri
Naif Integer ID code for the instrument Naif Integer ID code for the instrument
""" """
return self.label['IsisCube']['Kernels']['NaifFrameCode'] return self.label['IsisCube']['Kernels']['NaifFrameCode']
...@@ -63,8 +63,11 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver): ...@@ -63,8 +63,11 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver):
INSTRUMENT_ID = TC1/TC2 INSTRUMENT_ID = TC1/TC2
SD = S/D short for single or double, which in turn means whether the SD = S/D short for single or double, which in turn means whether the
the label belongs to a mono or stereo image. label belongs to a mono or stereo image.
COMPRESS = D/T short for DCT or through, we assume image has been decompressed already
COMPRESS = D/T short for DCT or through, we assume image has been
decompressed already
SWATCH = swatch mode, different swatch modes have different FOVs SWATCH = swatch mode, different swatch modes have different FOVs
Returns Returns
...@@ -395,40 +398,65 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver): ...@@ -395,40 +398,65 @@ class KaguyaTcPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver):
From Kaguya IK kernel: From Kaguya IK kernel:
End +-----------------------------------------+--------------+----------------------+---------+
Start Pixel | Sensor | Start Pixel | End Pixel (+dummy) | NAIF ID |
Sensor Pixel (+dummy) NAIF ID +-----------------------------------------+--------------+----------------------+---------+
----------------------------------------------------------------- | LISM_TC1 | 1 | 4096 | -131351 |
LISM_TC1 1 4096 -131351 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2 1 4096 -131371 | LISM_TC2 | 1 | 4096 | -131371 |
LISM_TC1_WDF (Double DCT Full) 1 4096 -131352 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_WTF (Double Through Full) 1 1600 -131353 | LISM_TC1_WDF (Double DCT Full) | 1 | 4096 | -131352 |
LISM_TC1_SDF (Single DCT Full) 1 4096 -131354 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_STF (Single Through Full) 1 3208 -131355 | LISM_TC1_WTF (Double Through Full) | 1 | 1600 | -131353 |
LISM_TC1_WDN (Double DCT Nominal) 297 3796(+4) -131356 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_WTN (Double Through Nominal) 297 1896 -131357 | LISM_TC1_SDF (Single DCT Full) | 1 | 4096 | -131354 |
LISM_TC1_SDN (Single DCT Nominal) 297 3796(+4) -131358 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_STN (Single Through Nominal) 297 3504 -131359 | LISM_TC1_STF (Single Through Full) | 1 | 3208 | -131355 |
LISM_TC1_WDH (Double DCT Half) 1172 2921(+2) -131360 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_WTH (Double Through Half) 1172 2771 -131361 | LISM_TC1_WDN (Double DCT Nominal) | 297 | 3796(+4) | -131356 |
LISM_TC1_SDH (Single DCT Half) 1172 2921(+2) -131362 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC1_STH (Single Through Half) 1172 2923 -131363 | LISM_TC1_WTN (Double Through Nominal) | 297 | 1896 | -131357 |
LISM_TC1_SSH (Single SP_support Half) 1172 2921 -131364 +-----------------------------------------+--------------+----------------------+---------+
| LISM_TC1_SDN (Single DCT Nominal) | 297 | 3796(+4) | -131358 |
LISM_TC2_WDF (Double DCT Full) 1 4096 -131372 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_WTF (Double Through Full) 1 1600 -131373 | LISM_TC1_STN (Single Through Nominal) | 297 | 3504 | -131359 |
LISM_TC2_SDF (Single DCT Full) 1 4096 -131374 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_STF (Single Through Full) 1 3208 -131375 | LISM_TC1_WDH (Double DCT Half) | 1172 | 2921(+2) | -131360 |
LISM_TC2_WDN (Double DCT Nominal) 297 3796(+4) -131376 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_WTN (Double Through Nominal) 297 1896 -131377 | LISM_TC1_WTH (Double Through Half) | 1172 | 2771 | -131361 |
LISM_TC2_SDN (Single DCT Nominal) 297 3796(+4) -131378 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_STN (Single Through Nominal) 297 3504 -131379 | LISM_TC1_SDH (Single DCT Half) | 1172 | 2921(+2) | -131362 |
LISM_TC2_WDH (Double DCT Half) 1172 2921(+2) -131380 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_WTH (Double Through Half) 1172 2771 -131381 | LISM_TC1_STH (Single Through Half) | 1172 | 2923 | -131363 |
LISM_TC2_SDH (Single DCT Half) 1172 2921(+2) -131382 +-----------------------------------------+--------------+----------------------+---------+
LISM_TC2_STH (Single Through Half) 1172 2923 -131383 | LISM_TC1_SSH (Single SP_support Half) | 1172 | 2921 | -131364 |
LISM_TC2_SSH (Single SP_support Half) 1172 2921 -131384 +-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WDF (Double DCT Full) | 1 | 4096 | -131372 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WTF (Double Through Full) | 1 | 1600 | -131373 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_SDF (Single DCT Full) | 1 | 4096 | -131374 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_STF (Single Through Full) | 1 | 3208 | -131375 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WDN (Double DCT Nominal) | 297 | 3796(+4) | -131376 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WTN (Double Through Nominal) | 297 | 1896 | -131377 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_SDN (Single DCT Nominal) | 297 | 3796(+4) | -131378 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_STN (Single Through Nominal) | 297 | 3504 | -131379 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WDH (Double DCT Half) | 1172 | 2921(+2) | -131380 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_WTH (Double Through Half) | 1172 | 2771 | -131381 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_SDH (Single DCT Half) | 1172 | 2921(+2) | -131382 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_STH (Single Through Half) | 1172 | 2923 | -131383 |
+-----------------------------------------+--------------+----------------------+---------+
| LISM_TC2_SSH (Single SP_support Half) | 1172 | 2921 | -131384 |
+-----------------------------------------+--------------+----------------------+---------+
Returns Returns
------- -------
...@@ -822,5 +850,3 @@ class KaguyaMiPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver): ...@@ -822,5 +850,3 @@ class KaguyaMiPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, Driver):
ISIS sensor model version ISIS sensor model version
""" """
return 1 return 1
...@@ -96,7 +96,7 @@ def to_isd(driver): ...@@ -96,7 +96,7 @@ def to_isd(driver):
instrument_pointing['ck_table_original_size'] = len(time_dependent_rotation.times) instrument_pointing['ck_table_original_size'] = len(time_dependent_rotation.times)
instrument_pointing['ephemeris_times'] = time_dependent_rotation.times instrument_pointing['ephemeris_times'] = time_dependent_rotation.times
instrument_pointing['quaternions'] = time_dependent_rotation.quats[:, [3, 0, 1, 2]] instrument_pointing['quaternions'] = time_dependent_rotation.quats[:, [3, 0, 1, 2]]
instrument_pointing['angular_velocity'] = time_dependent_rotation.av instrument_pointing['angular_velocities'] = time_dependent_rotation.av
# reference frame should be the last frame in the chain # reference frame should be the last frame in the chain
instrument_pointing["reference_frame"] = instrument_pointing['time_dependent_frames'][-1] instrument_pointing["reference_frame"] = instrument_pointing['time_dependent_frames'][-1]
...@@ -121,7 +121,7 @@ def to_isd(driver): ...@@ -121,7 +121,7 @@ def to_isd(driver):
body_rotation['ck_table_original_size'] = len(time_dependent_rotation.times) body_rotation['ck_table_original_size'] = len(time_dependent_rotation.times)
body_rotation['ephemeris_times'] = time_dependent_rotation.times body_rotation['ephemeris_times'] = time_dependent_rotation.times
body_rotation['quaternions'] = time_dependent_rotation.quats[:, [3, 0, 1, 2]] body_rotation['quaternions'] = time_dependent_rotation.quats[:, [3, 0, 1, 2]]
body_rotation['angular_velocity'] = time_dependent_rotation.av body_rotation['angular_velocities'] = time_dependent_rotation.av
if source_frame != target_frame: if source_frame != target_frame:
# Reverse the frame order because ISIS orders frames as # Reverse the frame order because ISIS orders frames as
......
...@@ -58,7 +58,7 @@ PROJECT_LOGO = ...@@ -58,7 +58,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If # entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used. # left blank the current directory will be used.
OUTPUT_DIRECTORY =./docs/ OUTPUT_DIRECTORY =./
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and # directories (in 2 levels) under the output directory of each output format and
...@@ -791,7 +791,7 @@ WARN_LOGFILE = ...@@ -791,7 +791,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched. # Note: If this tag is empty the current directory is searched.
INPUT = ./include/Load.h ./ale ./src/ INPUT = ../include/ale/ ./ale
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
...@@ -996,7 +996,7 @@ USE_MDFILE_AS_MAINPAGE = ...@@ -996,7 +996,7 @@ USE_MDFILE_AS_MAINPAGE =
# also VERBATIM_HEADERS is set to NO. # also VERBATIM_HEADERS is set to NO.
# The default value is: NO. # The default value is: NO.
SOURCE_BROWSER = NO SOURCE_BROWSER = YES
# Setting the INLINE_SOURCES tag to YES will include the body of functions, # Setting the INLINE_SOURCES tag to YES will include the body of functions,
# classes and enums directly into the documentation. # classes and enums directly into the documentation.
......
ALE C API
=========
:mod:`capi` --- ALE C-API
==========================
The :mod:`src` module
.. doxygenfile:: Load.h
:project: ale
.. versionadded:: 0.1.0
:mod:`distortion` --- ALE Distortion Functions
==============================================
.. doxygenfile:: Distortion.h
:project: ale
:mod:`capi` --- All ALE functions :mod:`C` --- C Interface
=================================== ========================
.. doxygenfile:: Load.h
:project: ale
.. toctree:: .. toctree::
capi distortion
interp_utils
isd
orientation
rotation
state
util
vector
:mod:`interpolation` --- ALE Interpolation Functions
====================================================
.. doxygenfile:: InterpUtils.h
:project: ale
:mod:`ISD` --- ALE Image Support Data Class
===========================================
.. doxygenfile:: Isd.h
:project: ale
:mod:`orientations` --- ALE Orientation Classes & Functions
===========================================================
.. doxygenfile:: Orientations.h
:project: ale
:mod:`rotation` --- ALE Rotation Classes & Functions
======================================================
.. doxygenfile:: Rotation.h
:project: ale
:mod:`states` --- ALE States Classes & Functions
====================================================
.. doxygenfile:: States.h
:project: ale
:mod:`utils` --- ALE Utility Functions
==============================================
Used in ``getDistortionModel`` and ``getDistortionCoeffs``
.. doxygenenum:: DistortionType
:project: ale
.. doxygenfile:: Util.h
:project: ale
:mod:`vectors` --- ALE Vector Classes & Functions
===========================================================
.. doxygenfile:: Vectors.h
:project: ale
:mod:`base` --- Default Driver Classes :mod:`base` --- Default Driver Classes
============================================ ======================================
The :mod:`ale.drivers.base` module The :mod:`ale.drivers.base` module
......
:mod:`cassini_driver` --- Cassini Driver Classes :mod:`co_drivers` --- Cassini Driver Classes
================================================ ================================================
The :mod:`ale.drivers.co_drivers` module The :mod:`ale.drivers.co_drivers` module
......
:mod:`dawn_drivers` --- Dawn Driver Classes
===========================================
The :mod:`ale.drivers.dawn_drivers` module
.. versionadded:: 0.8.1
.. automodule:: ale.drivers.dawn_drivers
:synopsis:
:members:
:show-inheritance:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment