Restructured TS map computation

As close to final as it could get today.
I didn't look in detail, but it's not very nice to have `0.02` hardcoded on this line, no?
Can you change this so that it will work for maps that are not binned to `0.02`?