Hi,
I am a regular user of the GUI of SNAP and want to move to GPT . I am using Ubuntu 16.04 (newbie more than expert in Linux) and SNAP v.6. I would like to use this post to ask several questions during my learning curve and hopefully it can be useful for others in my situation. I have been checking the forum the learn more but still have some doubts and extremely basic questions:
-
The first one is more technical and is related to this topic and this topic. On Terminal, running
gpt
will result incommand not found
. I have triedgpt.sh
as suggested in the linked post but the samecommand not found
result appears. The solution is then specifyng the path to gpt , in my caseusr/local/snap6/bin/gpt
and then yes GPT is launched. Is this the regular procedure or am I missing something to be able to launch gpt withouth specifing the path? -
Right after launching GPT, I try to access an operator usign
gpt subset -h
as suggested in this tutorial (desing for windows) and the output is againcommand not found
. To really call the operator I have to use the absolute pathusr/local/snap6/bin/gpt subset -h
. I think I missing some kind of variable definition to let the system now what is gpt and where is it located but since I am new in Linux I don’t have any idea about how to do it. -
I am trying to run a basic bulk processing where I have 3 S2 images that I want to resample. For that I am using the same approach as here using:
/usr/local/snap6/bin/gpt processDataset.bat resamplev3.xml resample_20m.properties "/shared/GPT/Source" "/shared/GPT/Output resampled10m
The first error that appears is flagded as SEVERE: The environment variable LD_LIBRARY_PATH is not set … Based on s2tbx.GDALInstaller error it seems GDAL is not configure in SNAP. How can this be solved? The second error I face is that gpt is looking for the graph xml file in a different path (the home path) and claims that resamplev3.xml does not exist.
Any help on that?