Commit 0edca53f authored by Cresson Remi's avatar Cresson Remi
Browse files

WIP: S2 download

1 merge request!12ENH: S2A and S3A support
Pipeline #33442 passed with stages
in 1 minute and 15 seconds
Showing with 3 additions and 2 deletions
+3 -2
......@@ -8,7 +8,7 @@ import json
from urllib.parse import urlencode
def curl_url(url, postdata, verbose=False, fp=None, header=['Accept:application/json']):
def curl_url(url, postdata, verbose=False, fp=None, header=('Accept:application/json')):
"""
Use PyCurl to make some requests
:param url: url
......
import argparse
from scenes import download, utils
import datetime
# Arguments
parser = argparse.ArgumentParser(description="Download test",)
......@@ -9,4 +10,4 @@ params = parser.parse_args()
# Get all scenes in the root_dir
_, _, bbox = utils.get_epsg_extent_bbox(params.refimage)
download.download(config_file=params.theia_cfg, acq_envelope=bbox, acq_date='01-01-2021')
\ No newline at end of file
download.download(config_file=params.theia_cfg, acq_envelope=bbox, acq_date=datetime.datetime(year=2020, month=01, day=01))
\ No newline at end of file
Supports Markdown
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