-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Garthwaite
authored and
Matt Garthwaite
committed
Sep 8, 2020
1 parent
9fcabc0
commit df7cb1e
Showing
12 changed files
with
177 additions
and
252 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
Dependencies | ||
------------ | ||
|
||
The following dependencies need to be on your system prior to `PyRate` installation: | ||
The following dependencies need to be on your system (or in your working | ||
environment) prior to `PyRate` installation: | ||
|
||
- Python_, versions 3.6, 3.7 or 3.8. | ||
- GDAL_, versions 3.0.2 or 3.0.4 | ||
- `Open MPI`_, versions 2.1.6, 3.0.4, 3.1.4 or 4.0.2 | ||
|
||
The versions of each package stated above have been tested to work. | ||
The versions of each package stated above have been tested to work using | ||
`Travis CI`_ continuous integration testing. | ||
|
||
.. _Python: https://www.python.org/downloads/ | ||
.. _GDAL: https://gdal.org/download.html | ||
.. _`Open MPI`: https://www.open-mpi.org/software/ompi/v4.0/ | ||
.. _`Travis CI`: https://travis-ci.org/github/GeoscienceAustralia/PyRate | ||
|
||
Other Python dependencies that will be installed are listed in ``PyRate/requirements.txt``. | ||
Other Python dependencies that will be installed are listed in | ||
``PyRate/requirements.txt``. |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
pyrate correct Script | ||
PyRate Correct Script | ||
======================== | ||
|
||
.. automodule:: pyrate.process | ||
.. automodule:: pyrate.correct | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
PyRate Main Script | ||
================== | ||
|
||
.. automodule:: pyrate.__main__ | ||
.. automodule:: pyrate.main | ||
|
||
.. rubric:: Functions | ||
.. autosummary:: | ||
|
||
conv2tif | ||
prepifg | ||
process | ||
correct | ||
timeseries | ||
stack | ||
merge |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,41 +7,6 @@ If your issue is not covered below, please contact the `Geoscience Australia InS | |
|
||
.. _`Geoscience Australia InSAR Team`: mailto:[email protected] | ||
|
||
Corrections being skipped | ||
------------------------- | ||
**Problem**: When running the ``process`` step, many corrections are reported as ``Skipped: interferograms already corrected``, but I want to try different processing parameters! | ||
|
||
:: | ||
|
||
>> pyrate correct -f input_parameters.conf | ||
16:43:16 main 97 24732 INFO 0/0 Verbosity set to INFO. | ||
16:43:16 shared 1294 24732 INFO 0/0 Running process serially | ||
16:43:17 process 86 24732 INFO 0/0 Found 13 unique epochs in the 17 interferogram network | ||
16:43:17 process 134 24732 INFO 0/0 Searching for best reference pixel location | ||
16:43:18 process 155 24732 INFO 0/0 Selected reference pixel coordinate: (38, 58) | ||
16:43:18 process 170 24732 INFO 0/0 Calculating orbital correction | ||
16:43:18 shared 1255 24732 INFO 0/0 Skipped: interferograms already corrected | ||
16:43:18 process 198 24732 INFO 0/0 Calculating reference phase | ||
16:43:19 shared 1255 24732 INFO 0/0 Skipped: interferograms already corrected | ||
16:43:19 process 105 24732 INFO 0/0 Calculating minimum spanning tree matrix | ||
16:43:19 process 342 24732 INFO 0/0 Calculating the temporal variance-covariance matrix | ||
16:43:20 process 391 24732 INFO 0/0 Calculating time series using SVD method | ||
16:43:20 timeseries 152 24732 INFO 0/0 Calculating timeseries in serial | ||
16:43:21 process 323 24732 INFO 0/0 Calculating rate map from stacking | ||
16:43:21 process 326 24732 INFO 0/0 Stacking of tile 0 | ||
16:43:21 stack 64 24732 INFO 0/0 Calculating stack rate in serial | ||
16:43:21 process 314 24732 INFO 0/0 PyRate workflow completed | ||
|
||
**Reason**: `PyRate` updates the phase values in the input interferogram geotiff files as corrections are applied during the ``process`` step. Metadata is then added to the geotiff header to indicate the correction has been applied. This metadata is then checked upon subsequent runs to see if the correction should be applied. | ||
|
||
**Solution**: Start again from ``prepifg`` step, creating new cropped/multi-looked interferograms that have not been corrected. | ||
|
||
.. note:: | ||
|
||
We plan to change this workflow behaviour in a future `PyRate` release, recognising that | ||
it would be convenient to be able to quickly test the impact of parameter changes. | ||
|
||
|
||
ValueError: too many values to unpack (expected 2) | ||
-------------------------------------------------- | ||
**Problem**: During ``prepifg`` step, the following error is encountered: | ||
|
@@ -104,12 +69,12 @@ Stack Rate map appears to be blank/empty | |
|
||
**Reason**: The ``maxsig`` parameter is too low, resulting in stack rate values being replaced by NaNs. ``maxsig`` is a threshold for masking stack rate pixels according to the corresponding stack error estimate saved in ``out/tmpdir/stack_error_*.npy``. | ||
|
||
**Solution**: Increase ``maxsig``, then re-run ``process`` and ``merge`` steps. Maximum permittable value for ``maxsig`` is 1000 mm. | ||
**Solution**: Increase ``maxsig``, then re-run the ``merge`` step. Maximum permittable value for ``maxsig`` is 1000 mm. | ||
|
||
|
||
Failure of APS spatial low pass filter | ||
--------------------------------------- | ||
**Problem**: Atmospheric corrections during “process“ fails due to the interpolated grid used for correction being empty: | ||
**Problem**: Atmospheric corrections during ``correct`` step fails due to the interpolated grid used for correction being empty: | ||
|
||
:: | ||
|
||
|
@@ -155,8 +120,8 @@ Failure of APS spatial low pass filter | |
In general, users are advised to input a network of small-baseline interferograms | ||
that has at least 2 interferometric connections per SAR image epoch. Furthermore, | ||
make sure that ``ts_pthr``, ``pthr`` and ``tlpfpthr`` are smaller than the number | ||
of image epochs. To check that ``process`` worked correctly, users can check that | ||
the ``tsincr_*.npy`` and ``tscuml*.npy`` arrays in the ``/<outdir>/tmpdir`` contain numeric values and not NaNs. | ||
of image epochs. To check that the spatio-temporal filters worked correctly, users can check that | ||
the numpy arrays saved at ``/<outdir>/aps_error/*aps_error.npy`` contain numeric values and not NaNs. | ||
|
||
|
||
Out of memory errors | ||
|
@@ -167,12 +132,12 @@ Out of memory errors | |
|
||
joblib.externals.loky.process_executor.TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker. The exit codes of the workers are {EXIT(1), EXIT(1), EXIT(1)} | ||
|
||
**Solution**: Increase the amount of memory available. On HPC systems this can be done by increasing the value provided to the ``mem`` argument when submitting a PBS job, e.g.: | ||
|
||
:: | ||
**Solution**: Increase the amount of memory available. On HPC systems this can be done by increasing the value provided to the ``mem`` argument when submitting a PBS job, e.g.:: | ||
|
||
mem=32Gb | ||
|
||
If no more memory can be called upon, users can try running the job in serial, or reducing the size of the interferograms by increasing the multi-looking factors applied during ``prepifg`` (parameters ``ifglksx`` and ``ifglksy``). | ||
|
||
Incorrect modules loaded on Gadi | ||
---------------------------------- | ||
**Problem**: `PyRate` requires certain versions of Python, GDAL and Open MPI to be loaded on Gadi and other HPC systems. While sourcing the `PyRate/scripts/nci_load_modules.sh` script will load the correct modules, you may need to unload previously unloaded modules. | ||
|
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.