Skip to content

Commit

Permalink
Added an example to the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed May 21, 2018
1 parent 16f10dd commit babf1a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ NOTE: This entire README can be markdown linted with
<!-- toc -->

- [Overview](#overview)
- [Example](#example)
- [Get in touch](#get-in-touch)
- [License and copyright](#license-and-copyright)

Expand All @@ -84,6 +85,14 @@ cftime calendar functionality.

Documentation can be found at <https://scitools.org.uk/cf_units/docs/latest/>.

### Example

>>> from cf_units import Unit
>>> km = Unit('kilometers')
>>> m = Unit('meters')
>>> m.convert(1500, km)
1.5

## Get in touch

- Questions, ideas, general discussion or announcements
Expand Down

0 comments on commit babf1a1

Please sign in to comment.