johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
513 stars 112 forks source link

revise configuration handling #305

Closed johntruckenbrodt closed 6 months ago

johntruckenbrodt commented 7 months ago

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:

Example to modify the SNAP user directory to change the location where SNAP stores any data during processing:

from pyroSAR.examine import ExamineSnap
config = ExamineSnap()
config.userpath = '/path/to/snap/data'

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.

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 9093547722

Details


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 Coverage Status
Change from base Build 9079306250: 0.4%
Covered Lines: 3648
Relevant Lines: 6980

💛 - Coveralls