first few calculations from pywws.