Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leliel12/gvt_scripts
https://github.com/leliel12/gvt_scripts
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leliel12/gvt_scripts
- Owner: leliel12
- License: bsd-3-clause
- Created: 2024-02-16T17:27:38.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-24T23:03:30.000Z (8 months ago)
- Last Synced: 2024-10-16T21:19:43.665Z (about 1 month ago)
- Language: Python
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GVT Scripts
Multiple scripts for the GVT
## About the versioning
This project follows a semantic versioning know as **Calendar versioning**
With the format `YYYY.MM.DD[.MICRO]`Where:
- `YYYY`: Four-digit year
- `MM`: Two-digit month
- `DD`: Two-digit day within the month
- `[.MICRO]`: Optional, for distinguishing multiple releases within the same day if needed## Installation
You can install these scripts using the [pip](https://pip.pypa.io/) tool in Python, directly from GitHub.
```bash
$ pip install -U https://github.com/leliel12/gvt_scripts/archive/refs/heads/master.zip
```If you want to use Anaconda, first install *pip* with [conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html).
```bash
$ conda install pip
```
---## 1. The `search-shp-dir` command
Scandirectory of satellite observation create a indexed metadata db and
provide search capabilities.Here's a tutorial for using the `search-shp-dir` sub-commands command-line interface (CLI):
### `$ search-shp-dir mkdb`
Usage:
```bash
$ search-shp-dir mkdb --db
```This command takes the path to a directory and creates a database with the specified output path.
Arguments:
- `PATH`: Path to the directory. [required]Options:
- `--db PATH`: URL to the database file [required]### `$ search-shp-dir ssearch`
Usage:
```bash
$ search-shp-dir ssearch --db --query [--to ]
```This command performs a simple search over a database.
The query string should consist of one or more conditions in the format: "field operator value" separated by "&". Supported operators are: `"="`, `"!="`, `"<"`, `"<="`, `">"`, `">="`, `"in"`, `"not in"`.
One example of a query is "satellite = 'Landsat-8' & cloudperce <= 10"
The format is given by the "to" extension. Available formats: {`'.yml'`, `'.csv'`, `'.yaml'`, `'.xml'`, `'.json'`}
Options:
- `--db PATH`: URL to the database file [required]
- `--query TEXT`: Query to search for [required]
- `--to FILENAME`: Path to the output file### `$ search-shp-dir fields`
Usage:
```bash
$ search-shp-dir fields
```This command lists all the fields available in the database.
---
### `$ search-shp-dir fields-info`
Usage:
```bash
$ search-shp-dir fields-info ... --db
```This command returns information about the type and possible values of given fields.
Arguments:
- `fields FIELDS...`: Fields names [required]Options:
- `--db PATH`: URL to the database file [required]