Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Remote Modules
let-it-snow
Commits
878a8551
Commit
878a8551
authored
Dec 17, 2018
by
Germain Salgues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: minor bug fix
parent
c204aa1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/s2snow/snow_annual_map.py
python/s2snow/snow_annual_map.py
+1
-1
python/s2snow/snow_annual_map_evaluation.py
python/s2snow/snow_annual_map_evaluation.py
+1
-1
No files found.
python/s2snow/snow_annual_map.py
View file @
878a8551
...
...
@@ -346,7 +346,7 @@ class snow_annual_map():
if
self
.
mode
==
"DEBUG"
:
dest_debug_dir
=
op
.
join
(
self
.
path_out
,
"tmpdir"
)
if
op
.
exists
(
dest_debug_dir
):
shutil
.
rmtree
(
shutil
)
shutil
.
rmtree
(
dest_debug_dir
)
shutil
.
copytree
(
self
.
path_tmp
,
dest_debug_dir
)
def
load_products
(
self
,
snow_products_list
,
tile_id
=
None
,
product_type
=
None
):
...
...
python/s2snow/snow_annual_map_evaluation.py
View file @
878a8551
...
...
@@ -160,8 +160,8 @@ class snow_annual_map_evaluation(snow_annual_map):
# load required product
self
.
resulting_snow_mask_dict
=
{}
for
key
in
self
.
product_dict
.
keys
():
comparison_tag
=
key
+
"_comparison"
if
len
(
self
.
product_dict
[
key
])
>
1
:
comparison_tag
=
key
+
"_comparison"
merged_mask
=
op
.
join
(
self
.
path_tmp
,
comparison_tag
+
"_merged_snow_product.tif"
)
merge_masks_at_same_date
(
self
.
product_dict
[
key
],
merged_mask
,
self
.
label_snow
,
self
.
ram
)
self
.
resulting_snow_mask_dict
[
comparison_tag
]
=
merged_mask
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment