Skip to content

Commit

Permalink
Merge 5633651 into 660b1bb
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Mar 4, 2021
2 parents 660b1bb + 5633651 commit e9ae60a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changes for bmi-topography
0.4 (unreleased)
----------------

- Nothing changed yet.
* Install with conda
* Include shell script demonstrating CLI


0.3 (2021-02-25)
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Basic Model Interface](https://img.shields.io/badge/CSDMS-Basic%20Model%20Interface-green.svg)](https://bmi.readthedocs.io/)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/bmi-topography.svg)](https://anaconda.org/conda-forge/bmi-topography)
[![PyPI](https://img.shields.io/pypi/v/bmi-topography)](https://pypi.org/project/bmi-topography)
[![Build/Test CI](https://github.com/csdms/bmi-topography/actions/workflows/build-test-ci.yml/badge.svg)](https://github.com/csdms/bmi-topography/actions/workflows/build-test-ci.yml)
[![Documentation Status](https://readthedocs.org/projects/bmi-topography/badge/?version=latest)](https://bmi-topography.readthedocs.io/en/latest/?badge=latest)

Expand Down Expand Up @@ -40,6 +42,10 @@ Install the latest stable release of *bmi-topography* with `pip`:
```
pip install bmi-topography
```
or with `conda`:
```
conda install -c conda-forge bmi-topography
```

The *bmi-topography* library can also be built and installed from source.
The library uses several other open source libraries,
Expand All @@ -52,7 +58,7 @@ and set up a conda environment with the included environment file:
```
conda env create --file=environment.yml
```
Then install *bmi-topography* with
Then build and install *bmi-topography* from source with
```
make install
```
Expand Down Expand Up @@ -127,7 +133,8 @@ Attributes:
```

For examples with more detail,
see the two Jupyter Notebooks
see the two Jupyter Notebooks,
Python script, and shell script
included in the [examples](https://github.com/csdms/bmi-topography/tree/main/examples) directory
of the *bmi-topography* repository.

Expand Down
1 change: 0 additions & 1 deletion docs/source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
sphinx
recommonmark
pandoc
20 changes: 20 additions & 0 deletions examples/bmi-topography_ex.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /usr/bin/env bash
# Example of downloading data through the bmi-topography CLI.

DEM_TYPE=SRTMGL3
SOUTH=36.738884
NORTH=38.091337
WEST=-120.168457
EAST=-118.465576
OUTPUT_FORMAT=GTiff

bmi-topography --version
bmi-topography --help

bmi-topography \
--dem_type=$DEM_TYPE \
--south=$SOUTH \
--north=$NORTH \
--west=$WEST \
--east=$EAST \
--output_format=$OUTPUT_FORMAT

0 comments on commit e9ae60a

Please sign in to comment.