Skip to content

Commit

Permalink
modified: pmag.py => fixed pmag.doigrf
Browse files Browse the repository at this point in the history
  • Loading branch information
ltauxe committed Sep 3, 2015
1 parent ac7210b commit 4ad8c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmag.py
Expand Up @@ -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':
Expand Down

0 comments on commit 4ad8c6f

Please sign in to comment.