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
Merge requests
!83
Resolve "Synthesis on zipped products does not work"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Synthesis on zipped products does not work"
86-synthesis-on-zipped-products-does-not-work
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
4
Merged
Aurore Dupuis
requested to merge
86-synthesis-on-zipped-products-does-not-work
into
develop
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
4
Expand
Closes
#86 (closed)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
c344ff8a
3 commits,
3 years ago
4 files
+
63
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
app/let_it_snow_synthesis.py
+
16
−
2
Options
@@ -25,10 +25,12 @@ import sys
import
json
from
logging.handlers
import
RotatingFileHandler
from
s2snow.lis_exception
import
LisConfigurationException
from
s2snow.lis_exception
import
LisConfigurationException
,
NoSnowProductFound
,
NoZipFound
,
NoProductMatchingSynthesis
,
\
UnknownPlatform
from
s2snow.snow_synthesis
import
compute_snow_synthesis
from
s2snow.synthesis_config
import
SynthesisConfig
from
s2snow.lis_constant
import
INPUT_PARAMETER_ERROR
,
CONFIGURATION_ERROR
,
TMP_DIR
,
LOG_FILE
from
s2snow.lis_constant
import
INPUT_PARAMETER_ERROR
,
CONFIGURATION_ERROR
,
TMP_DIR
,
LOG_FILE
,
NO_SNOW_PRODUCT_FOUND
,
\
NO_ZIP_FOUND
,
NO_PRODUCT_MATCHING_SYNTHESIS
,
UNKNOWN_PLATFORM
from
s2snow.parser
import
create_synthesis_argument_parser
@@ -57,6 +59,18 @@ def main(config_file, tile_id, input_products_list, densification_products_list,
try
:
logging
.
info
(
"
Launch snow synthesis computation.
"
)
compute_snow_synthesis
(
config
,
output_dir
,
h2_chain_version
,
product_counter
)
except
UnknownPlatform
as
e
:
logging
.
error
(
e
)
return
UNKNOWN_PLATFORM
except
NoProductMatchingSynthesis
as
e
:
logging
.
error
(
e
)
return
NO_PRODUCT_MATCHING_SYNTHESIS
except
NoSnowProductFound
as
e
:
logging
.
error
(
e
)
return
NO_SNOW_PRODUCT_FOUND
except
NoZipFound
as
e
:
logging
.
error
(
e
)
return
NO_ZIP_FOUND
except
Exception
as
e
:
logging
.
error
(
e
)
return
-
1
Loading