softwareunderground / 52things

52 Things You Should Know About Geocomputing
101 stars 61 forks source link

Hale: My favourite 10-line program #94

Closed kwinkunks closed 4 years ago

kwinkunks commented 4 years ago

I really like this chapter. IIRC, it was the first submission. And of course we're lucky to have something from Dave Hale.

Only drawback is that the code takes quite some parsing if you're not used to C++. It would be interesting to see a pure Python port (one would approach it in a completely different way, at least in NumPy, so it wouldn't be a fair comparison).

Changes

Figures

The blog reference will go in as a footnote.