Assignment
Define a class for a 2-D topographic map. Pretend that the map will be used for a river routing model. Thus, you'll want to calculate parameters like slope and channel width.
- What will be some of the data in this object? What sort of datatypes might you use to store this data?
- What will be some of the methods in this object? What attributes will these methods act on? Where will their output go?
- Write a few fragments of Python code that would outline the implementation of this class.
Solution
See the following web page.