civicmapper / peak-flow-calculator

Calculate peak flow at a point on a DEM using the TR55 methodology and NOAA climate data
MIT License
7 stars 2 forks source link

Handling units #2

Closed gassc closed 6 years ago

gassc commented 6 years ago

Currently we're passing in a default area conversion factor (square feet to square kilometers) in the derive_data_from_catchments function. We need to auto-derive this from the coordinate system of the input DEM.

gassc commented 6 years ago

Implemented the Pint package for unit conversions. Not perfect, but it will do: dc76f136d68ba820531531b72daec7a8dd34b61a