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

Units Conversions #4

Closed gassc closed 6 years ago

gassc commented 6 years ago

We need to track unit conversions from start to finish. Original equations presume that input data had certain area/length units, and consequently had some hard-coded conversions within.

We can auto-derive units from inputs with Python-Pint. Doing so from the flow direction raster is most appropriate since the spatial properties like area and length are being derived from derivatives of that input; it's possible to detect from others as needed (e.g., Curve Number Raster)

gassc commented 6 years ago

confirmed units. Implemented unit detection for flow length