Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sen2Chain
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ESPACE-DEV
Sen2Chain
Commits
9119db1d
Commit
9119db1d
authored
4 years ago
by
pascal.mouquet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
some change to Tiles
parent
aae3e28a
No related branches found
No related tags found
No related merge requests found
Pipeline
#41
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sen2chain/tiles.py
+15
-11
15 additions, 11 deletions
sen2chain/tiles.py
with
15 additions
and
11 deletions
sen2chain/tiles.py
+
15
−
11
View file @
9119db1d
...
...
@@ -797,7 +797,9 @@ class Tile:
return
{
"
identified_problems
"
:
nb_id
,
"
removed_problems
"
:
nb_rm
}
def
archive_l1c
(
self
,
size_only
:
bool
=
False
,):
size_only
:
bool
=
False
,
force
:
bool
=
False
,
):
"""
Check and move l1c products to l1c archive folder
...
...
@@ -805,17 +807,19 @@ class Tile:
l1c_archive_path
=
Path
(
Config
().
get
(
"
l1c_archive_path
"
))
prod_list
=
ProductsList
()
archive_l1c_set
=
{
a
for
a
in
{
identifier
.
replace
(
"
L2A_
"
,
"
L1C_
"
).
replace
(
"
_USER_
"
,
"
__OPER__
"
)
for
identifier
in
self
.
l2a
.
products
}
if
a
in
set
(
self
.
l1c
.
products
)}
for
prod
in
archive_l1c_set
:
prod_list
[
prod
]
=
{
"
date
"
:
self
.
_products
[
"
l1c
"
][
prod
].
date
,
"
cloud_cover
"
:
self
.
_products
[
"
l1c
"
][
prod
].
cloud_cover
}
if
force
:
prod_list
=
self
.
l1c
else
:
prod_list
=
ProductsList
()
archive_l1c_set
=
{
a
for
a
in
{
identifier
.
replace
(
"
L2A_
"
,
"
L1C_
"
).
replace
(
"
_USER_
"
,
"
__OPER__
"
)
for
identifier
in
self
.
l2a
.
products
}
if
a
in
set
(
self
.
l1c
.
products
)}
for
prod
in
archive_l1c_set
:
prod_list
[
prod
]
=
{
"
date
"
:
self
.
_products
[
"
l1c
"
][
prod
].
date
,
"
cloud_cover
"
:
self
.
_products
[
"
l1c
"
][
prod
].
cloud_cover
}
count
=
0
total_size
=
0
if
prod_list
:
count
=
0
total_size
=
0
for
prod
in
prod_list
:
l1c
=
L1cProduct
(
prod
.
identifier
)
if
not
l1c
.
path
.
is_symlink
():
...
...
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