Skip to content
Snippets Groups Projects

Convert to NetCDF

1 file
+ 7
6
Compare changes
  • Side-by-side
  • Inline
+ 7
6
@@ -6,6 +6,7 @@
* [Python](https://www.python.org/downloads/) 3.7+
* [Poetry](https://python-poetry.org/) Python dependency manager
* NetCDF
#### Poetry Install
@@ -38,13 +39,13 @@ To install files to a specific NSHM, use one of the following flags:
The following example would download the database for the 2018A NSHM:
```bash
poetry run database --2018A
poetry run netcdf --2018A
```
To download only with no NetCDF conversion use:
```bash
poetry run database --2018A --download-only
poetry run netcdf --2018A --download-only
```
#### Download All NSHM Databases
@@ -53,20 +54,20 @@ The following will download all NSHM databases defined in the
[catalog.yml](./src/main/resources/catalog.yml) file:
```bash
poetry run database --all
poetry run netcdf --all
```
The following will download all NSHM database in the `/DATA` directory:
```bash
poetry run database --all --output=/DATA
poetry run netcdf --all --output=/DATA
```
You can also set an environment variable to set the output path:
```bash
export NSHMP_NETCDF_DATABASE_PATH="/path/to/database";
poetry run database --all
poetry run netcdf --all
```
## Help
@@ -82,7 +83,7 @@ poetry run help
The following command will remove all database files:
```bash
poetry run database --clean
poetry run netcdf --clean
```
### Database Development
Loading