-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from johntruckenbrodt/feature/config
revise configuration handling
- Loading branch information
Showing
8 changed files
with
434 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
############# | ||
Configuration | ||
############# | ||
|
||
pyroSAR stores configuration under `$HOME/.pyrosar`. | ||
It contains a file `config.ini` which stores installation paths of SNAP and GAMMA. | ||
The installations are first identified by running the respective `Examine*` class (e.g. :class:`~pyroSAR.examine.ExamineSnap`): | ||
|
||
.. code-block:: python | ||
from pyroSAR.examine import ExamineSnap | ||
config = ExamineSnap() | ||
SNAP configuration can also be modified with this class, either by the object properties `userpath` and `auxdatapath` or by the underlying :class:`~pyroSAR.examine.SnapProperties` object: | ||
|
||
.. code-block:: python | ||
config.userpath = '/path/to/snap/data' | ||
config.snap_properties['snap.userdir'] = '/path/to/snap/data' | ||
The values are directly written to either `snap.auxdata.properties` or `snap.properties` under `$HOME/.snap/etc`. | ||
The content of these files will override that in the files found under `etc` in the SNAP installation folder. | ||
Setting a parameter to `None` will comment out the value in the respective file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.