Commit 52cb9e49 authored by Adan Salazar Garibay's avatar Adan Salazar Garibay

adding new script to manage arguments

parent d1efcf2f
...@@ -23,8 +23,8 @@ Example of dowloading Sentinel images from the Copernicus Open Access Hub < http ...@@ -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 sentinelsat.sentinel import read_geojson, geojson_to_wkt
from argparse import ArgumentParser 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(): def main():
""" """
......
...@@ -23,8 +23,8 @@ Example of finding Sentinel files in a specific directory ...@@ -23,8 +23,8 @@ Example of finding Sentinel files in a specific directory
""" """
from argparse import ArgumentParser 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(): def main():
""" """
......
...@@ -23,7 +23,8 @@ Example of unzip Sentinel files in a specific directory ...@@ -23,7 +23,8 @@ Example of unzip Sentinel files in a specific directory
""" """
from argparse import ArgumentParser 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(): def main():
......
# 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 }")
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# along with StereoVision. If not, see <http://www.gnu.org/licenses/>. # 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: Variables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment