Closed johntruckenbrodt closed 3 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
pyroSAR/config.py | 1 | 2 | 50.0% | ||
pyroSAR/examine.py | 137 | 164 | 83.54% | ||
<!-- | Total: | 173 | 201 | 86.07% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
pyroSAR/examine.py | 1 | 79.33% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 9079306250: | 0.4% |
Covered Lines: | 3648 |
Relevant Lines: | 6980 |
This is a long due revision of the configuration handling. Now, pyroSAR's configuration integrates much better with that of SNAP and a user can directly modify SNAP configuration via pyroSAR.
All changes in a nutshell:
_dev_config.py
toconfig.py
__LOCAL__
(indrivers.py
andconfig.py
) intoconfig.py
config.py
: removed classStorage
and its usesexamine.SnapProperties
for reading and modifying SNAP configurationexamine.ExamineSnap
:auxdata
fromidentifiers
and don't set it as attributeOUTPUT
auxdatapath
,properties
__update_snap_properties
and instead use newSnapProperties
class to set attributesnap_properties
auxdatapath
anduserpath
Example to modify the SNAP user directory to change the location where SNAP stores any data during processing:
This will add an entry
snap.userdir = /path/to/snap/data
in$HOME/.snap/etc/snap.properties
, which will then be read by SNAP and relevant pyroSAR functions like e.g. auxdata.dem_autoload.