NEANIAS Gitlab
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos H. Brandt
DM
Commits
5e049db5
Commit
5e049db5
authored
Apr 09, 2020
by
Carlos H. Brandt
Browse files
Init script for data retrieve/download
parent
6f89e7ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
prototype/dbq.py
0 → 100644
View file @
5e049db5
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.
'''
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