Commit d060ce41 authored by David Youssefi's avatar David Youssefi
parents 37718945 3f15f95f
# OTB guided tour
1. Install VirtualBox https://www.virtualbox.org/
2. Download the Ubuntu Budgies iso https://ubuntubudgie.org/downloads
3. Download the OTB standalone package https://www.orfeo-toolbox.org/download/
4. Download the Miniconda installer https://docs.conda.io/en/latest/miniconda.html
4. Create Virtual Machine (2048Mo, VMDK, 15Gio) and install VirtualBox Guest Additions
5. Install librairies and softwares
- Miniconda : ./Miniconda3-latest-Linux-x86_64.sh
- Create otb env : conda create -n otb python=3.5 numpy rasterio jupyter matplotlib gdal
- Install ipyleaflet : pip install --user ipyleaflet +
- OTB : ./OTB-6.6.1-Linux64.run --target /home/otb/OTB
- Jupyter
6. Configure network settings (proxy & certificates) for CNES environment.
Instructions from : https://gitlab.cnes.fr/hpc/wikiHPC/wikis/connexion-proxy
and https://gitlab.cnes.fr/hpc/wikiHPC/wikis/Acc%C3%A8s-%C3%A0-un-site-https-hors-master-CNES
7. Add dataset
**Note:** Python3 workaround (https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues/1540)
\ No newline at end of file
# OTB guided tour
\ No newline at end of file
This diff is collapsed.
......@@ -18,3 +18,19 @@ def list_images(data_dir, suffix):
print(len(list_im)," images will be used")
return list_im
def list_images(data_dir, prefix, suffix):
"""
returns a list of file names, contained in a directory, with a name that matches a suffix
:param data_dir: directory to browse for files
:param prefix: prefix of the files to search for
:param suffix: suffix of the files to search for
"""
list_im = []
for root, dirs, files in os.walk(data_dir):
for name in files:
if name.endswith(suffix) and name.startswith(prefix):
list_im.append(str(root)+"/"+str(name))
print(len(list_im)," images will be used")
return list_im
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment