mwtoews / surface-water-network

A Python package to create and analyze surface water networks.
https://mwtoews.github.io/surface-water-network/
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Expose some controls on bounds snapping #104

Closed mwtoews closed 3 months ago

mwtoews commented 3 months ago

By default, the bounds of most grids are snapped to "nice round numbers" that are a multiple of the resolution. But perhaps this is not always wanted, so there should be some controls on how some classsmethods evaluate their bounds. There could also be some control on rounding to half resolution for cell centered vs cell corner values.

One idea is to expose a snapping metric as a float in [0, 1], where:

mwtoews commented 3 months ago

Woops, wrong repo.