Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
let-it-snow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remote Modules
let-it-snow
Commits
ef7809d3
Commit
ef7809d3
authored
3 years ago
by
Aurore Dupuis
Browse files
Options
Downloads
Plain Diff
Merge branch '87-synthesis-tile_id-is-mandatory' into 'develop'
Resolve "Synthesis : tile_id is mandatory" Closes
#87
See merge request
!80
parents
412661ab
d74245b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!90
Develop
,
!84
Merge develop
,
!80
Resolve "Synthesis : tile_id is mandatory"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+21
-10
21 additions, 10 deletions
Dockerfile
doc/synthesis_launch_example.json
+2
-2
2 additions, 2 deletions
doc/synthesis_launch_example.json
python/s2snow/synthesis_config.py
+5
-0
5 additions, 0 deletions
python/s2snow/synthesis_config.py
with
28 additions
and
12 deletions
Dockerfile
+
21
−
10
View file @
ef7809d3
...
@@ -18,6 +18,7 @@ RUN apt-get update --quiet && \
...
@@ -18,6 +18,7 @@ RUN apt-get update --quiet && \
swig \
swig \
ninja-build \
ninja-build \
python3-dev \
python3-dev \
git \
python3-numpy \
python3-numpy \
libgdal-dev \
libgdal-dev \
freeglut3-dev \
freeglut3-dev \
...
@@ -33,13 +34,16 @@ RUN apt-get update --quiet && \
...
@@ -33,13 +34,16 @@ RUN apt-get update --quiet && \
libtinyxml-dev \
libtinyxml-dev \
libmuparser-dev \
libmuparser-dev \
libmuparserx-dev \
libmuparserx-dev \
libfftw3-dev && \
libfftw3-dev \
libgsl-dev \
&& \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*
# Build OTB
# Build OTB
# Enabling Module_OTBTemporalGapFilling makes OTB become AfferoGPL
RUN
mkdir
-p
/root/otb-build/build
&&
\
RUN
mkdir
-p
/root/otb-build/build
&&
\
cd
/root/otb-build
&&
\
cd
/root/otb-build
&&
\
wget
-nv
--show-progress
--progress
=
bar:force:noscroll https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-7.
1
.0.zip
-O
/tmp/OTB.zip
&&
\
wget
-nv
--show-progress
--progress
=
bar:force:noscroll https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-7.
0
.0.zip
-O
/tmp/OTB.zip
&&
\
unzip /tmp/OTB.zip
&&
\
unzip /tmp/OTB.zip
&&
\
cd
/root/otb-build/build
&&
\
cd
/root/otb-build/build
&&
\
cmake
\
cmake
\
...
@@ -53,21 +57,26 @@ RUN mkdir -p /root/otb-build/build && \
...
@@ -53,21 +57,26 @@ RUN mkdir -p /root/otb-build/build && \
"-DOTB_USE_SIFTFAST:BOOL=ON"
\
"-DOTB_USE_SIFTFAST:BOOL=ON"
\
"-DOTB_USE_SPTW:BOOL=ON"
\
"-DOTB_USE_SPTW:BOOL=ON"
\
"-DOTB_USE_SSE_FLAGS:BOOL=ON"
\
"-DOTB_USE_SSE_FLAGS:BOOL=ON"
\
"-DOTB_USE_LIBKML:BOOL=ON"
\
"-DModule_OTBTemporalGapFilling:BOOL=ON"
\
"-DModule_SertitObject:BOOL=ON"
\
"-DModule_otbGRM:BOOL=ON"
\
"-DModule_DiapOTBModule:BOOL=ON"
\
"-DCMAKE_BUILD_TYPE=Release"
\
"-DCMAKE_BUILD_TYPE=Release"
\
-DCMAKE_INSTALL_PREFIX
=
"/install/otb"
-GNinja
..
&&
\
-DCMAKE_INSTALL_PREFIX
=
"/install/otb"
-GNinja
..
&&
\
ninja
install
&&
\
ninja
install
&&
\
rm
-rf
/root/otb-build /tmp/OTB.zip
rm
-rf
/root/otb-build /tmp/OTB.zip
# Build LIS
# Build LIS
ADD
. /LIS_src/
ADD
. /LIS_src/
RUN
ln
-s
/usr/bin/python3 /usr/bin/python
&&
\
RUN
ln
-s
/usr/bin/python3 /usr/bin/python
&&
\
mkdir
-p
/root/lis-build
&&
\
mkdir
-p
/root/lis-build
&&
\
cd
/root/lis-build
&&
\
cd
/root/lis-build
&&
\
cmake
-DCMAKE_PREFIX_PATH
=
/install/otb
\
cmake
-DCMAKE_PREFIX_PATH
=
/install/otb
\
-DCMAKE_INSTALL_PREFIX
=
/install/lis /LIS_src/
&&
\
-DCMAKE_INSTALL_PREFIX
=
/install/lis /LIS_src/
&&
\
make
-j
6
&&
\
make
-j
6
&&
\
make
install
&&
\
make
install
&&
\
chmod
a+x /install/lis/app/
*
chmod
a+x /install/lis/app/
*
# Build DANS-GDAL scripts
# Build DANS-GDAL scripts
RUN
mkdir
-p
/root/dans-build
&&
\
RUN
mkdir
-p
/root/dans-build
&&
\
...
@@ -108,6 +117,8 @@ RUN apt-get update --quiet && \
...
@@ -108,6 +117,8 @@ RUN apt-get update --quiet && \
libmuparser2v5
\
libmuparser2v5
\
libmuparserx4.0.7
\
libmuparserx4.0.7
\
libfftw3-3
\
libfftw3-3
\
libgsl23
\
libgslcblas0
\
&&
\
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
...
...
This diff is collapsed.
Click to expand it.
doc/synthesis_launch_example.json
+
2
−
2
View file @
ef7809d3
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
],
],
"date_start"
:
"01/01/2018"
,
"date_start"
:
"01/01/2018"
,
"date_stop"
:
"31/01/2018"
,
"date_stop"
:
"31/01/2018"
,
"output_dir"
:
"
/work/scratch/gonzalesf/
lis/lis_install_15_10/build/Testing/Temporary/SNOW_SYNTHESIS"
,
"output_dir"
:
"lis/lis_install_15_10/build/Testing/Temporary/SNOW_SYNTHESIS"
,
"config_file"
:
"
/work/scratch/gonzalesf/
lis/lis_install_15_10/build/Testing/Temporary/SNOW_SYNTHESIS/synthesis_configuration.json"
,
"config_file"
:
"lis/lis_install_15_10/build/Testing/Temporary/SNOW_SYNTHESIS/synthesis_configuration.json"
,
"date_margin"
:
10
,
"date_margin"
:
10
,
"densification_products_list"
:
[
"densification_products_list"
:
[
"/work/OT/siaa/Theia/Neige/TEST/Data-LIS-1.6/Input-Data-Test/SNOW_PRODUCTS/LANDSAT8-OLITIRS-XS_20180115-103629-617_L2A_T31TCH_D_V1-9"
,
"/work/OT/siaa/Theia/Neige/TEST/Data-LIS-1.6/Input-Data-Test/SNOW_PRODUCTS/LANDSAT8-OLITIRS-XS_20180115-103629-617_L2A_T31TCH_D_V1-9"
,
...
...
This diff is collapsed.
Click to expand it.
python/s2snow/synthesis_config.py
+
5
−
0
View file @
ef7809d3
...
@@ -73,6 +73,11 @@ class SynthesisConfig:
...
@@ -73,6 +73,11 @@ class SynthesisConfig:
logging
.
error
(
msg
)
logging
.
error
(
msg
)
raise
LisConfigurationException
(
msg
)
raise
LisConfigurationException
(
msg
)
if
self
.
tile_id
is
None
:
msg
=
"
Tile id is not defined.
"
logging
.
error
(
msg
)
raise
LisConfigurationException
(
msg
)
def
log_configuration
(
self
):
def
log_configuration
(
self
):
logging
.
debug
(
"
==== Configuration ====
"
)
logging
.
debug
(
"
==== Configuration ====
"
)
for
input_product
in
self
.
input_products_list
:
for
input_product
in
self
.
input_products_list
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment