NEANIAS Gitlab

Commit 5e049db5 authored by Carlos H. Brandt's avatar Carlos H. Brandt
Browse files

Init script for data retrieve/download

parent 6f89e7ed
import logging
logger = logging.getLogger()
'''
Interface we want:
$ "tool" search planet <body-name> \
in <region-label> \
within <geometry> \
[--inside|--touch] \
at <datetime-moment> \
between <datetime-range> \
[--inclusive|--exclusive]
$ "tool" list {<query>, "last-query", or "query-label"}
$ "tool" get "data-ID" or "data-IDs"
The 'list' command output will list data files/records IDs,
and possibly (basic) metadata next to (e.g., bounding-box),
in such a way that they can be easily retrived by command
'get'. 'get' receives a (list of) data-ID(s) to download.
> Internally, each data-ID -- represented by a unique string by the user --
should encapsulted in a query object, to then compose a list of queries to
be dispatched. This allows us to make query batch jobs, with more control
and possibly optimize/parallelize.
'''
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