Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/program--/hfx
https://github.com/program--/hfx
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/program--/hfx
- Owner: program--
- Created: 2023-08-28T23:32:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T03:21:19.000Z (over 1 year ago)
- Last Synced: 2024-06-11T17:04:39.599Z (7 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hfx
This repository contains a script `hfx.py` that quickly generates a subset of hydrofabric data from the CONUS pre-release GeoPackage.
This **should not** be used in place of [hfsubset](https://github.com/LynkerIntel/hfsubset), unless you have a specific reason, or a local copy of the CONUS hydrofabric GeoPackage, as this queries directly on feature IDs.
## Usage
Install the requirements with:
```sh
$ pip install -r requirements.txt
```Then set permissions and run `hfx.py`:
```sh
$ chmod +x hfx.py
$ ./hfx.py -h
#> usage: hfx [-h] [-o OUTPUT] [-c CONUS] [--debug] ID [ID ...]
#>
#> positional arguments:
#> ID Hydrofabric Identifiers
#> (i.e. cat-32, nex-85, wb-3813, cnx-391, ...)
#>
#> options:
#> -h, --help show this help message and exit
#> -o OUTPUT, --output OUTPUT
#> Path to output GeoPackage
#> -c CONUS, --conus CONUS
#> Path to local CONUS hydrofabric GeoPackage. If this
#> argument is not specified, then the filtering happens
#> via web requests.
#> --debug
#> Output debug messages.
```> **Note**: it's recommended to download the CONUS GeoPackage
> and use this script on it instead of the web requests.
> Otherwise, its performance will be degraded.