From 4ad8c6f5c26f0489a1351552de06be01a453ab50 Mon Sep 17 00:00:00 2001 From: Lisa Tauxe Date: Thu, 3 Sep 2015 02:34:36 -0700 Subject: [PATCH] modified: pmag.py => fixed pmag.doigrf --- pmag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmag.py b/pmag.py index 81b6b3493..287402fcd 100644 --- a/pmag.py +++ b/pmag.py @@ -5054,8 +5054,8 @@ def doigrf(long,lat,alt,date,**kwargs): else: incr=50 model=date-date%incr - gh=psvcoeffs[psvmodels.index(str(int(model)))] - sv=(psvcoeffs[psvmodels.index(str(int(model+incr)))]-gh)/float(incr) + gh=psvcoeffs[psvmodels.index(int(model))] + sv=(psvcoeffs[psvmodels.index(int(model+incr))]-gh)/float(incr) x,y,z,f=magsyn(gh,sv,model,date,itype,alt,colat,long) elif date<1900: if kwargs['mod']=='cals10k':