This is under development
GPT's search
API provides search capabilities to geo-located (planetery) data services.
The following databases are currently supported:
- USGS's ODE REST interface
List available service APIs:
$ gpt search --list
'ode'
List ODE targets:
$ gpt search ode --list
mars, moon, mercury```
List ODE's available Martian datasets:
$ gpt search ode Mars --list
...
MRO/CTX/EDR
MRO/HIRISE/RDRV11
...
Query ODE for martian datasets:
$ gpt search ode Mars/MRO/CTX/EDR --bbox "[-1,-1,1,1]" --no-intersect
15 products found.
Output written to 'output.gjsn'
List GeoJSON feature properties:
$ gpt geojson 'collection.gjsn' --list-properties
file_url (21/42 features)
label_url (21/42 features)
description
Utils to download files.
Download files from URLs given after fileurl
in GeoJSON features:
$ gpt download --from-geojson 'products.geojson' --from-field 'fileurl' --to-geojson 'download.gjsn' --to-dir './data/'
...
21 files downloaded from field 'fileurl'.
21 features excluded.
Output written to 'download.gjsn'
Download files from URLs at fileurl
with a filter at description
:
$ gpt download --from-geojson 'products.geojson' --from-field 'fileurl' --filter-field 'description' --filter-with 'label'
42 features excluded.
Output written to 'output.geojson'
Tools for daily operations on geo-(planetary)-sciences.
# pip install -e .
/.\