From 3ce0b4160b7f81af4ce3522a0fde540c1ee20cc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABlle=20USSEGLIO?= <gaelle.usseglio@cnes.fr>
Date: Wed, 9 Jun 2021 09:15:41 +0000
Subject: [PATCH] DOC : Add a share directory for python_src with an example of
 conda environnement

---
 python_src/README.md                          |   9 ++
 python_src/share/ex_conda_env.yml             | 110 ++++++++++++++++++
 .../ex_config_MultiSlc_CosmoS1SM.json         |   0
 .../ex_config/ex_config_MultiSlc_IW.json      |   0
 .../ex_config/ex_config_diapOTB_Cosmo.json    |   0
 .../ex_config/ex_config_diapOTB_S1IW.json     |   0
 .../ex_config/ex_config_diapOTB_S1SM.json     |   0
 7 files changed, 119 insertions(+)
 create mode 100644 python_src/README.md
 create mode 100755 python_src/share/ex_conda_env.yml
 rename python_src/{ => share}/ex_config/ex_config_MultiSlc_CosmoS1SM.json (100%)
 rename python_src/{ => share}/ex_config/ex_config_MultiSlc_IW.json (100%)
 rename python_src/{ => share}/ex_config/ex_config_diapOTB_Cosmo.json (100%)
 rename python_src/{ => share}/ex_config/ex_config_diapOTB_S1IW.json (100%)
 rename python_src/{ => share}/ex_config/ex_config_diapOTB_S1SM.json (100%)

diff --git a/python_src/README.md b/python_src/README.md
new file mode 100644
index 0000000..c02a410
--- /dev/null
+++ b/python_src/README.md
@@ -0,0 +1,9 @@
+# Python environment 
+
+Some packages are required to run DiapOTB's processing chains with :
+* GDAL
+* h5py
+* jsonschema
+* numpy
+
+A conda environment can be made to launch DiapOTB. An example is available into *share/* directory.
diff --git a/python_src/share/ex_conda_env.yml b/python_src/share/ex_conda_env.yml
new file mode 100755
index 0000000..ee4167a
--- /dev/null
+++ b/python_src/share/ex_conda_env.yml
@@ -0,0 +1,110 @@
+name: diapOTB
+channels:
+  - conda-forge
+  - defaults
+dependencies:
+  - _libgcc_mutex=0.1=conda_forge
+  - _openmp_mutex=4.5=1_gnu
+  - boost-cpp=1.74.0=hc6e9bd1_3
+  - bzip2=1.0.8=h7f98852_4
+  - c-ares=1.17.1=h7f98852_1
+  - ca-certificates=2021.5.30=ha878542_0
+  - cached-property=1.5.2=hd8ed1ab_1
+  - cached_property=1.5.2=pyha770c72_1
+  - cairo=1.16.0=h6cf1ce9_1008
+  - certifi=2021.5.30=py39hf3d152e_0
+  - cfitsio=3.470=hb418390_7
+  - curl=7.77.0=hea6ffbf_0
+  - expat=2.4.1=h9c3ff4c_0
+  - fontconfig=2.13.1=hba837de_1005
+  - freetype=2.10.4=h0708190_1
+  - freexl=1.0.6=h7f98852_0
+  - gdal=3.2.2=py39h409cc32_3
+  - geos=3.9.1=h9c3ff4c_2
+  - geotiff=1.6.0=hcf90da6_5
+  - gettext=0.19.8.1=h0b5b191_1005
+  - giflib=5.2.1=h36c2ea0_2
+  - h5py=3.2.1=nompi_py39h98ba4bc_100
+  - hdf4=4.2.15=h10796ff_3
+  - hdf5=1.10.6=nompi_h6a2412b_1114
+  - icu=68.1=h58526e2_0
+  - jpeg=9d=h36c2ea0_0
+  - json-c=0.15=h98cffda_0
+  - kealib=1.4.14=hcc255d8_2
+  - krb5=1.19.1=hcc1bbae_0
+  - ld_impl_linux-64=2.33.1=h53a641e_7
+  - libblas=3.9.0=9_openblas
+  - libcblas=3.9.0=9_openblas
+  - libcurl=7.77.0=h2574ce0_0
+  - libdap4=3.20.6=hd7c4107_2
+  - libedit=3.1.20191231=he28a2e2_2
+  - libev=4.33=h516909a_1
+  - libffi=3.3=he6710b0_2
+  - libgcc-ng=9.3.0=h2828fa1_19
+  - libgdal=3.2.2=hbf32332_3
+  - libgfortran-ng=9.3.0=hff62375_19
+  - libgfortran5=9.3.0=hff62375_19
+  - libglib=2.68.2=h3e27bee_2
+  - libgomp=9.3.0=h2828fa1_19
+  - libiconv=1.16=h516909a_0
+  - libkml=1.3.0=h238a007_1013
+  - liblapack=3.9.0=9_openblas
+  - libnetcdf=4.8.0=nompi_hcd642e3_103
+  - libnghttp2=1.43.0=h812cca2_0
+  - libopenblas=0.3.15=pthreads_h8fe5266_1
+  - libpng=1.6.37=h21135ba_2
+  - libpq=13.3=hd57d9b9_0
+  - librttopo=1.1.0=h1185371_6
+  - libspatialite=5.0.1=h20cb978_4
+  - libssh2=1.9.0=ha56f1ee_6
+  - libstdcxx-ng=9.3.0=h6de172a_19
+  - libtiff=4.2.0=h85742a9_0
+  - libuuid=2.32.1=h7f98852_1000
+  - libwebp-base=1.2.0=h7f98852_2
+  - libxcb=1.13=h7f98852_1003
+  - libxml2=2.9.12=h72842e0_0
+  - libzip=1.7.3=h4de3113_0
+  - lz4-c=1.9.3=h9c3ff4c_0
+  - ncurses=6.2=he6710b0_1
+  - numpy=1.20.3=py39hdbf815f_1
+  - openjpeg=2.4.0=hb52868f_1
+  - openssl=1.1.1k=h7f98852_0
+  - pcre=8.44=he1b5a44_0
+  - pip=21.1.1=py39h06a4308_0
+  - pixman=0.40.0=h36c2ea0_0
+  - poppler=21.03.0=h93df280_0
+  - poppler-data=0.4.10=0
+  - postgresql=13.3=h2510834_0
+  - proj=8.0.0=h277dcde_0
+  - pthread-stubs=0.4=h36c2ea0_1001
+  - python=3.9.5=hdb3f193_3
+  - python_abi=3.9=1_cp39
+  - readline=8.1=h27cfd23_0
+  - setuptools=52.0.0=py39h06a4308_0
+  - sqlite=3.35.4=hdfb4753_0
+  - tiledb=2.2.9=h91fcb0e_0
+  - tk=8.6.10=hbc83047_0
+  - tzcode=2021a=h7f98852_1
+  - tzdata=2020f=h52ac0ba_0
+  - wheel=0.36.2=pyhd3eb1b0_0
+  - xerces-c=3.2.3=h9d8b166_2
+  - xorg-kbproto=1.0.7=h7f98852_1002
+  - xorg-libice=1.0.10=h7f98852_0
+  - xorg-libsm=1.2.3=hd9c2040_1000
+  - xorg-libx11=1.7.1=h7f98852_0
+  - xorg-libxau=1.0.9=h7f98852_0
+  - xorg-libxdmcp=1.1.3=h7f98852_0
+  - xorg-libxext=1.3.4=h7f98852_1
+  - xorg-libxrender=0.9.10=h7f98852_1003
+  - xorg-renderproto=0.11.1=h7f98852_1002
+  - xorg-xextproto=7.3.0=h7f98852_1002
+  - xorg-xproto=7.0.31=h7f98852_1007
+  - xz=5.2.5=h7b6447c_0
+  - zlib=1.2.11=h7b6447c_3
+  - zstd=1.4.9=ha95c52a_0
+  - pip:
+    - attrs==21.2.0
+    - jsonschema==3.2.0
+    - pyrsistent==0.17.3
+    - six==1.16.0
+prefix: /home/gaelle/anaconda3/envs/diapOTB
diff --git a/python_src/ex_config/ex_config_MultiSlc_CosmoS1SM.json b/python_src/share/ex_config/ex_config_MultiSlc_CosmoS1SM.json
similarity index 100%
rename from python_src/ex_config/ex_config_MultiSlc_CosmoS1SM.json
rename to python_src/share/ex_config/ex_config_MultiSlc_CosmoS1SM.json
diff --git a/python_src/ex_config/ex_config_MultiSlc_IW.json b/python_src/share/ex_config/ex_config_MultiSlc_IW.json
similarity index 100%
rename from python_src/ex_config/ex_config_MultiSlc_IW.json
rename to python_src/share/ex_config/ex_config_MultiSlc_IW.json
diff --git a/python_src/ex_config/ex_config_diapOTB_Cosmo.json b/python_src/share/ex_config/ex_config_diapOTB_Cosmo.json
similarity index 100%
rename from python_src/ex_config/ex_config_diapOTB_Cosmo.json
rename to python_src/share/ex_config/ex_config_diapOTB_Cosmo.json
diff --git a/python_src/ex_config/ex_config_diapOTB_S1IW.json b/python_src/share/ex_config/ex_config_diapOTB_S1IW.json
similarity index 100%
rename from python_src/ex_config/ex_config_diapOTB_S1IW.json
rename to python_src/share/ex_config/ex_config_diapOTB_S1IW.json
diff --git a/python_src/ex_config/ex_config_diapOTB_S1SM.json b/python_src/share/ex_config/ex_config_diapOTB_S1SM.json
similarity index 100%
rename from python_src/ex_config/ex_config_diapOTB_S1SM.json
rename to python_src/share/ex_config/ex_config_diapOTB_S1SM.json
-- 
GitLab