geotrellis / maml

Map Algebra Modeling Language: It's what we and whales are.
https://geotrellis.github.io/maml/
Apache License 2.0
16 stars 10 forks source link

Add support for focal slope #76

Closed moradology closed 5 years ago

moradology commented 5 years ago

This PR adds the ability to specify slope calculation as part of a MAML program. Other focal operations have already been added, but this operation requires deeper changes than those did: in addition to the implicit information encoded by the grid structure of tiles which is sufficient for the bulk of map algebra operations and the explicit extent mapping required by masking, slope requires a mapping from the approximate latitude at some location to some "z-factor" which is a coefficient necessary to determine with precision the 'rise' in a slope calculation's "rise over run".

This means that LazyRaster instances now expect a full ProjectedMultibandRaster instead of a simple MultibandRaster or - before that - MultibandTile.