Split core of genFixedRatioMap() to use numpy.

Order-of-magnitude speed improvement as usual.
Conditions can be rejigged later, not now.