modified:   pmag.py => fixed bug in doigrf