Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
ee1d425d
Commit
ee1d425d
authored
Sep 10, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find products
parent
1191fbf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
geosentinel
catalog/geosentinel
+1
-0
findProdcuts.py
catalog/management/commands/findProdcuts.py
+29
-0
No files found.
catalog/geosentinel
0 → 120000
View file @
ee1d425d
/home/mario/git/GeoSentinel/geosentinel
\ No newline at end of file
catalog/management/commands/findProdcuts.py
0 → 100644
View file @
ee1d425d
#!/usr/bin/python
# -*- coding: utf-8 -*-
from
catalog.models
import
Product_l1c
,
Product_l2a
sys
.
path
.
append
(
'../'
)
from
geosentinel
import
APISentinel
,
polygonToBox
class
Command
(
BaseCommand
):
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'products'
,
nargs
=
1
,
type
=
str
)
def
handle
(
self
,
*
args
,
**
options
):
options
[
'products'
]
products
=
options
[
'products'
]
.
split
()
pl1c
=
Product_l1c
.
objects
.
all
()
.
filter
(
identifier_in
=
products
)
pl2a
=
Product_l1c
.
objects
.
all
()
.
filter
(
identifier_in
=
pl1c
)
fileList
=
[
p
.
file_path
for
p
in
pl2a
]
print
fileList
# sentinel = APISentinel.APISentinel('emmhp', 'geoemm29')
# Product_l2a.objects().all().filter()
# date = ("".join(init_date.split('-')), "".join(end_date.split('-')))
# params = {"platformname": "Sentinel-2"}
# pol_bbox = polygonToBox.getWKTPolygonBoundingBox(area, True)
# products = sentinel.getProducts(pol_bbox, date, params)
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