Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
GeoSentinel
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoSentinel
Commits
52cb9e49
Commit
52cb9e49
authored
7 years ago
by
Adan Salazar Garibay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding new script to manage arguments
parent
d1efcf2f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
6 deletions
+65
-6
download_images
examples/download_images
+2
-2
find_sentinel_files
examples/find_sentinel_files
+2
-2
unzip_sentinel_files
examples/unzip_sentinel_files
+2
-1
arguments.py
geosentinel/arguments.py
+58
-0
ui_utils.py
geosentinel/ui_utils.py
+1
-1
No files found.
examples/download_images
View file @
52cb9e49
...
...
@@ -23,8 +23,8 @@ Example of dowloading Sentinel images from the Copernicus Open Access Hub < http
"""
from
sentinelsat.sentinel
import
read_geojson
,
geojson_to_wkt
from
argparse
import
ArgumentParser
from
geosentinel.ui_utils
import
(
download_sentinel_mages
,
SENTINEL_ARGUMENTS
)
from
geosentinel.ui_utils
import
download_sentinel_mages
from
geosentinel.arguments
import
SENTINEL_ARGUMENTS
def
main
():
"""
...
...
This diff is collapsed.
Click to expand it.
examples/find_sentinel_files
View file @
52cb9e49
...
...
@@ -23,8 +23,8 @@ Example of finding Sentinel files in a specific directory
"""
from
argparse
import
ArgumentParser
from
geosentinel.ui_utils
import
(
find_files
,
SENTINEL_FIND_ARGUMENTS
)
from
geosentinel.ui_utils
import
find_files
from
geosentinel.arguments
import
SENTINEL_FIND_ARGUMENTS
def
main
():
"""
...
...
This diff is collapsed.
Click to expand it.
examples/unzip_sentinel_files
View file @
52cb9e49
...
...
@@ -23,7 +23,8 @@ Example of unzip Sentinel files in a specific directory
"""
from
argparse
import
ArgumentParser
from
geosentinel.ui_utils
import
(
find_files_Sentinel
,
unzip_files_Sentinel
,
SENTINEL_UNZIP_ARGUMENTS
)
from
geosentinel.ui_utils
import
(
find_files_Sentinel
,
unzip_files_Sentinel
)
from
geosentinel.arguments
import
SENTINEL_UNZIP_ARGUMENTS
def
main
():
...
...
This diff is collapsed.
Click to expand it.
geosentinel/arguments.py
0 → 100644
View file @
52cb9e49
# Copyright (C) 2018 Adan Salazar <asalazargaribay@gmail.com>
#
#
# This file is part of GeoSentinel
#
#
# GeoSentinel is free software you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GeoSentinel is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with StereoVision. If not, see <http://www.gnu.org/licenses/>.
"""
Command line arguments for collecting information about Sentinel data and products
"""
from
argparse
import
ArgumentParser
SENTINEL_ARGUMENTS
=
ArgumentParser
(
add_help
=
False
)
SENTINEL_ARGUMENTS
.
add_argument
(
"init_date"
,
help
=
"initial date for dowloading period."
)
SENTINEL_ARGUMENTS
.
add_argument
(
"end_date"
,
help
=
"final date for dowloading period."
)
SENTINEL_ARGUMENTS
.
add_argument
(
"product_type"
,
help
=
"sentinel product type {SLC, GRD, IW }"
)
SENTINEL_ARGUMENTS
.
add_argument
(
"plattform"
,
help
=
"sentinel-1 or sentinel-2"
)
SENTINEL_ARGUMENTS
.
add_argument
(
"overlap"
,
type
=
int
,
help
=
"Percentage of overlapping between the polygon "
"provided by the user and the polygon of the image"
)
SENTINEL_ARGUMENTS
.
add_argument
(
"output_folder"
,
help
=
"Folder to download Sentinel files "
)
SENTINEL_FIND_ARGUMENTS
=
ArgumentParser
(
add_help
=
False
)
SENTINEL_FIND_ARGUMENTS
.
add_argument
(
"folder"
,
help
=
"Folder to find Sentinel files "
)
SENTINEL_FIND_ARGUMENTS
.
add_argument
(
"plattform"
,
help
=
"Sentinel-1 or Sentinel-2"
)
SENTINEL_UNZIP_ARGUMENTS
=
ArgumentParser
(
add_help
=
False
)
SENTINEL_UNZIP_ARGUMENTS
.
add_argument
(
"folder"
,
help
=
"Folder to find Sentinel files"
)
SENTINEL_UNZIP_ARGUMENTS
.
add_argument
(
"plattform"
,
help
=
"Sentinel-1 or Sentinel-2"
)
SENTINEL_UNZIP_ARGUMENTS
.
add_argument
(
"product_type"
,
help
=
"sentinel product type {all, SM_SLC, SM_GRDF, SM_GRDH, SM_GRDM, IW_SLC, IW_GRDH, IW_GDRM, EW_SLC, EW_GRDH, EW_GRDM, WV_SLC, WV_GRDM, MSIL1C, OPER_PRD }"
)
This diff is collapsed.
Click to expand it.
geosentinel/ui_utils.py
View file @
52cb9e49
...
...
@@ -18,7 +18,7 @@
# along with StereoVision. If not, see <http://www.gnu.org/licenses/>.
"""
Utilities for user interaction with the "
stereo
" package.
Utilities for user interaction with the "
geosentinel
" package.
Variables:
...
...
This diff is collapsed.
Click to expand it.
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