DOI-USGS / ale

Abstraction Layer for Ephemerides (ALE)
Other
13 stars 33 forks source link

ALE driver verification script addition #584

Closed antonhibl closed 8 months ago

antonhibl commented 10 months ago

Licensing

This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words:

This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain.


This adds a script for driver verification wherein a image is run through both ALE and ISIS and then compared to see how different ALE drivers compare to ISIS' spiceinit in order to better compare how spice data is utilized through both for image ingestion. An example of it's usage is as follows:

python3 driver_verification.py ClementineIsisLabelNaifSpiceDriver LUA3107H.161.clem.cub

Output will look similar to the following:

Group = Kernels
  NaifFrameCode             = -40021
  LeapSecond                = $base/kernels/lsk/naif0012.tls
  TargetAttitudeShape       = ($base/kernels/pck/pck00009.tpc,
                               $base/kernels/pck/lunar_de403_1950-2199_pa.bpc,
                               $base/kernels/fk/lunarMeanEarth001.tf)
  TargetPosition            = $base/kernels/spk/de430.bsp
  InstrumentPointing        = ($Clementine1/kernels/ck/clem_2mn.bck,
                               $Clementine1/kernels/ck/clem_5sc.bck,
                               $clementine1/kernels/fk/clem_v12.tf)
  Instrument                = $Clementine1/kernels/ik/clem_uvvis_beta_ik_v04.-
                              ti
  SpacecraftClock           = $Clementine1/kernels/sclk/dspse002.tsc
  InstrumentPosition        = $Clementine1/kernels/spk/SPKMERGE_940219_940504-
                              _CLEMV001b.bsp
  InstrumentAddendum        = $Clementine1/kernels/iak/uvvisAddendum004.ti
  ShapeModel                = $base/dems/ldem_128ppd_Mar2011_clon180_radius_p-
                              ad.cub
  InstrumentPositionQuality = Reconstructed
  InstrumentPointingQuality = Reconstructed
  CameraVersion             = 1
  Source                    = isis
End_Group
This function(PvlObject::addLogGroup) will be depreciated in ISIS3 v9.0 in favor of Application::appendLogGroup
Group = Kernels
  NaifFrameCode             = -40021
  LeapSecond                = $base/kernels/lsk/naif0012.tls
  TargetAttitudeShape       = ($base/kernels/pck/pck00009.tpc,
                               $base/kernels/pck/lunar_de403_1950-2199_pa.bpc,
                               $base/kernels/fk/lunarMeanEarth001.tf)
  TargetPosition            = $base/kernels/spk/de430.bsp
  InstrumentPointing        = ($Clementine1/kernels/ck/clem_2mn.bck,
                               $Clementine1/kernels/ck/clem_5sc.bck,
                               $clementine1/kernels/fk/clem_v12.tf)
  Instrument                = $Clementine1/kernels/ik/clem_uvvis_beta_ik_v04.-
                              ti
  SpacecraftClock           = $Clementine1/kernels/sclk/dspse002.tsc
  InstrumentPosition        = $Clementine1/kernels/spk/SPKMERGE_940219_940504-
                              _CLEMV001b.bsp
  InstrumentAddendum        = $Clementine1/kernels/iak/uvvisAddendum004.ti
  ShapeModel                = $base/dems/ldem_128ppd_Mar2011_clon180_radius_p-
                              ad.cub
  InstrumentPositionQuality = Reconstructed
  InstrumentPointingQuality = Reconstructed
  CameraVersion             = 1
  Source                    = ale
End_Group
This function(PvlObject::addLogGroup) will be depreciated in ISIS3 v9.0 in favor of Application::appendLogGroup
1 [2.32830644e-10 2.32830644e-10 0.00000000e+00] [2.32830644e-10 2.32830644e-10 0.00000000e+00]
1 [ 1.13686838e-13  2.27373675e-13 -6.82121026e-13] [ 1.13686838e-13  2.27373675e-13 -6.82121026e-13]
1 [ 6.10351562e-05  2.28881836e-05 -3.81469727e-06] [ 6.10351562e-05  2.28881836e-05 -3.81469727e-06]
1 [ 2.91038305e-11 -1.16415322e-10  4.87716534e-11] [ 2.91038305e-11 -1.16415322e-10  4.87716534e-11]
1 [ 2.22044605e-16  2.77555756e-17 -1.11022302e-16  0.00000000e+00] [ 2.22044605e-16  2.77555756e-17 -1.11022302e-16  0.00000000e+00]
1 [-5.42101086e-20 -2.16840434e-19  2.71050543e-20] [-5.42101086e-20 -2.16840434e-19  2.71050543e-20]
1 [ 0.00000000e+00 -2.77555756e-17 -6.93889390e-18  2.77555756e-17] [ 0.00000000e+00 -2.77555756e-17 -6.93889390e-18  2.77555756e-17]
1 [-5.29395592e-23 -2.11758237e-22  4.23516474e-22] [-5.29395592e-23 -2.11758237e-22  4.23516474e-22]
codecov-commenter commented 10 months ago

Codecov Report

Attention: 141 lines in your changes are missing coverage. Please review.

Comparison is base (775ff21) 15.82% compared to head (ec29db7) 15.47%.

Files Patch % Lines
ale/driver_verification.py 0.00% 141 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #584 +/- ## ========================================== - Coverage 15.82% 15.47% -0.35% ========================================== Files 56 57 +1 Lines 6283 6424 +141 ========================================== Hits 994 994 - Misses 5289 5430 +141 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.