Closed nilshempelmann closed 5 years ago
+1. Great idea.
Not sure if we can have it as conda package. Maybe we need to install it in an extra step.
@cehbrecht Here is the snappy-install.sh https://github.com/bird-house/flyingpigeon/blob/satdev/snappy-install.sh To be checked, optimized and integrated :-)
Come on' guys, leave some for us :-)
@nilshempelmann you are installing snappy into your conda env ... assuming you have a default installation. But conda paths can be customized.
If possible I would prefer to install snappy into the system. You need to run with sudo. If it works we could then just call it via make sysinstall
. sysinstall
target is called before a conda environment exists. Otherwise we would need something like post-install
.
Sudo is not necessary. Just passing through the customized conda pathes might be enough.
The makefile now calles the snappy installation. CONDA_ENV is passed throug by argument. SNAP will be installed next to flyingpigeon. No root required Check if this is a way to go ...
There is an ESA snappy conda package: https://anaconda.org/terradue/snappy
Probably it only contains the python wrapper.
Done
snappy-install.sh in integrated into makefile. and merged into next
@tomLandry : Don't worry there is still work left to do ;-)
More work :)
One can use the python sys-path instead of coping snappy python to conda:
When using SNAP from Python, either do:
sys.path.append('/BIRDS_HOME/flyingpigeon/parts/snap/snap-python')
or copy the 'snappy' module into your Python's 'site-packages' directory.
Needs to be handled in the buildout or configs ...
We also need a common post-install
target in the Makefile. The Makefile is the same for every bird.
@tomLandry @cehbrecht EO processes were disabled for the last release. I am working on enabling them again. Let me know about progess, experience and needs on your side
... should snappy
go into the new bird Kingfischer
?
snappy is on the way to move to kingfisher https://github.com/bird-house/kingfisher/issues/1
SNAP toolboxes to process Sentinel images provided with an installer: http://step.esa.int/downloads/6.0/installers/
Can be installed manually with:
wget http://step.esa.int/downloads/6.0/installers/esa-snap_sentinel_unix_6_0.sh
sudo chmod +x esa-snap_sentinel_unix_6_0.sh source activate flyingpigeon ./esa-snap_sentinel_unix_6_0.sh
cp -r ~/.snap/snap-python/snappy ~/.conda/envs/flyingpigeon/lib/python2.7/site-packages/