Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
AgriFrozenAreaProject
Commits
b54ffdbf
Commit
b54ffdbf
authored
Aug 20, 2021
by
Lozac'h Loic
Browse files
debug
parent
1274cd20
Changes
1
Hide whitespace changes
Inline
Side-by-side
frozenapp/eodags1.py
View file @
b54ffdbf
...
...
@@ -6,6 +6,7 @@ Created on 18 juin 2021
import
os
from
eodag.utils.logging
import
setup_logging
from
eodag.api.core
import
EODataAccessGateway
from
eodag.api.search_result
import
SearchResult
from
frozenapp.models
import
TileEnvelope
from
django.contrib.gis.db.models.functions
import
Transform
from
eodag.utils
import
ProgressCallback
...
...
@@ -176,10 +177,12 @@ class EodagS1():
altdownloadedprods
.
append
(
self
.
products_downloaded
[
d
][
1
])
print
(
f
"
\n
Serializing downloaded products to
{
serialfile
}
"
)
self
.
mEODataAccessGateway
.
serialize
(
downloadedprods
,
serialfile
)
dps
=
SearchResult
(
downloadedprods
)
self
.
mEODataAccessGateway
.
serialize
(
dps
,
serialfile
)
if
len
(
altdownloadedprods
)
>
0
:
print
(
f
"
\n
Serializing alternate products to
{
altserialfile
}
"
)
adps
=
SearchResult
(
altdownloadedprods
)
self
.
mEODataAccessGateway
.
serialize
(
altdownloadedprods
,
altserialfile
)
if
remain
==
1
:
...
...
@@ -192,11 +195,13 @@ class EodagS1():
altremainingprods
.
append
(
self
.
products_availability
[
d
][
1
])
print
(
f
"
\n
Serializing downloaded products to
{
remainserialfile
}
"
)
self
.
mEODataAccessGateway
.
serialize
(
remainingprods
,
remainserialfile
)
rps
=
SearchResult
(
remainingprods
)
self
.
mEODataAccessGateway
.
serialize
(
rps
,
remainserialfile
)
if
len
(
altremainingprods
)
>
0
:
print
(
f
"
\n
Serializing alternate products to
{
altremainserialfile
}
"
)
self
.
mEODataAccessGateway
.
serialize
(
altremainingprods
,
altremainserialfile
)
arps
=
SearchResult
(
altremainingprods
)
self
.
mEODataAccessGateway
.
serialize
(
arps
,
altremainserialfile
)
...
...
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