AlexeyPechnikov / pygmtsar

PyGMTSAR (Python InSAR): Powerful and Accessible Satellite Interferometry
http://insar.dev/
BSD 3-Clause "New" or "Revised" License
432 stars 97 forks source link

[Help]: issue in sbas.compute_align #156

Closed jie666-6 closed 3 months ago

jie666-6 commented 3 months ago

Describe the problem you encountered When I run the code below if os.path.exists('/.dockerenv') and not 'google.colab' in sys.modules:

use special joblib backend in Docker containers

    sbas.compute_align(joblib_aligning_backend='threading')
else:
    sbas.compute_align()

I got error message that 'make_s1a_tops' cannot find

image

OS and software version Please specify your operating system and the version of PyGMTSAR you are using, if applicable.

I do not know if there is any step I miss or what should I do?

Thanks in advance

[For additional support, consider using the ChatGPT4-based InSAR AI Assistant at https://insar.dev/ai. It can provide guidance and help with understanding PyGMTSAR's capabilities and troubleshooting issues.]

AlexeyPechnikov commented 3 months ago

It means GMTSAR binaries do not installed. Check PyGMTSAR example notebooks and Dockerfile for the installation commands.

jie666-6 commented 3 months ago

I try to use download the pygmtsar-large Image for the software installtion. Since I need to install it in our server where I do not have the sudo permission, I cannot install the dockerdesktop to our server directly and I just pull the image and create my own container in this case. But it seems that PyGMTSAR has not been installed completely. I can import pygmtsar but other functions such as S1, stack, etc are missing

Here is the command line I used for installation docker pull mobigroup/pygmtsar-large docker run -it -v /home/user/workdir:/home/workdir --shm-size=10g --gpus all --user root -e GRANT_SUDO=yes --name user_pygmtsar-large-sudo docker.io/mobigroup/pygmtsar-large /bin/bash

And here is the error I got image

I checked the installation path and it seems that there are a lot of files missing image

I am not sure which step I might have gotten wrong in this case

AlexeyPechnikov commented 3 months ago

Pay attention to the first line of the image description:

The Docker image provides PyGMTSAR 2023 version which supports only SBAS InSAR. The new PyGMTSAR, supporting both SBAS and PSI interferometry, is available in the Docker image PyGMTSAR (Python InSAR) - Easy and Fast Satellite Interferometry For Everyone.

jie666-6 commented 3 months ago

Now it works. But I got another warning when I run sbas.compute_align().

image

I use client.close() to free up resources and clearing out my Dask client before sbas.compute_align() but it still show such warning

AlexeyPechnikov commented 3 months ago

Don’t worry about such warnings; they are mostly relevant for library developers. They can be produced by minor inconsistencies in your installed Dask, distributed, and other libraries. On Google Colab, we sometimes see many similar warnings and other times none. Python and its libraries are rapidly developing, but most of the time, even large-scale processing remains stable despite the warnings.