Skip to content

Commit

Permalink
added function description
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurie Stephey committed Dec 22, 2017
1 parent 34faefe commit 90a295f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/specter/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def __init__(self, x, y, data):
#new method
@jit(nopython=True)
def new_interp(dx,dy,ix,iy,datacopy):
"""
returns dataxy from bilinear interpolation
"""
dataxy = (datacopy[ix-1,iy-1]*(1-dx) + (datacopy[ix,iy-1]*dx))*(1-dy) + ((datacopy[ix-1,iy]*(1-dx) + datacopy[ix,iy]*dx))*dy

return dataxy
Expand Down

0 comments on commit 90a295f

Please sign in to comment.