hello，i am trying to use the tools but cannot insatll pathlib by pip, can you give me some advice
please describe your problem a bit clearer, so we can think of solutions.
Have you installed pyhton? If not, the most suitable way is Anaconda: https://www.anaconda.com/download/
It includes pip and other useful tools and has most of the required libraries.
ok,i will try it
pathlib is part of the python standard library, so it shouldn’t be necessary to install it. Although it was only introduced in Python 3.4. Maybe you are running an older version of Python? Does
give a version equal or greater to 3.4?
Well, pathlib should be installed when using python 2.7, as it is not in the standard library as it is the case for python 3.4, as mentioned by @gbaier
The current snap2stamps package was developed using python 2.7 and hence, they may exists some issues while trying to run it using python 3.X
If you have anaconda with python 2.7, it includes already pip, so you should install pathlib just by using : pip install pathlib as written in the manual.
If any of you may try with python 3.X, please provide me some feedback to understand which functions may not be compatible, so I can try to use another ones in the future.
according to my experience with Anaconda (python 2.7) and these pages, all Anaconda distributions include pathlib:
You both may be right! Indeed I have just checked that I installed the required library on the system, and not in anaconda. Sorry for the confusion!
Thanks again for keeping it sharp!
two question when i process 30 images(1 master+29 slaves) by snap2stamps tools the project.conf file i used is like this:
the master file is the one that had been splitted and applied orbit file in snap, is this exist any errors?
and i finished cored_ifg_topsar.py
the config file looks fine. Just make sure you call the scripts in the correct order
- prepare slaves
- split slaves
- coregistration and interferogram generation
ok，a question about para settings of snap disurbes me in the manual:
in my gpt.vmoptions file,I set the XMX to32G as my computer memory space,and i dont konw konw how to set the tileCachaeSize and defaultTileSize acoording my compute
I also have 32GB RAM computer and I normally set the tileCacheSize to 8192 and defaultTileSize to 2048.
I hope this helps.
ok, thanks a lot.when i do the final step stamps_export, the process is really long, my friend close my process window by acccident.when i restart my machine and check the file it export, there are only ssome part of ,so should i export again,and the process restart from the first file.
In fact this is a good point of discussion.
It can be included for next versions to check if the file exists or not before process it again, and it can be included as an option that the final user should decide whether to activate or not.
Essentially the main issue to apply or not such check to avoid re-processing again files, we cannot ensure the file found is fully correct or for example was stopped while being processed. If it would be the latter case, the process would start on the next file, not reprocessing the file which processing was accidentally stopped. I am not I am clear enough with it.
In any case, I will include the overwrite option, in which will be the final user the one responsible to check the integrity of the files. For the future I may think a better option to do so. Again, any feedback is welcome.
thank you very much
when i use this tools to export ,what should i change in the mt_prep_gamma and ps_load_initial file
My suggestion is to download the current StaMPS version, for which you should change nothing else.
Get it from https://github.com/dbekaert/stamps by cloning or downloading the current version, and not downloading from the release section. Doing so you get the latest updates which help you to deal and avoid potential errors in successive StaMPS steps.
and you means i do not need to replace the two files i get from the forum?
In the github package you have everything you need.
In the forum you may find several versions of those files, but within the github package you get them updated.
I hope this helps
ok，maybe there should a new text like"PS Using Manual_3.1" more exactly
Sorry but I dot not get it.
New StaMPS version is 4.1b and it seems well organised to me, including the User Manual.