Open pllim opened 5 years ago
@SaOgaz reported that astrodrizzle
still uses this function. @mcara and @hack, how about moving this into drizzlepac
and retire this package?
I did not even know this... Where do you people find these gems?
Looking at the comments in the code, p * a[i] + q * a[i+1]
- I am not sure this can even be called bi-linear. Maybe I missed something...
In any case, this is definitely a candidate for scipy's interpolation methods depending on how it is being used in astrodrizzle. I (or @stsci-hack) will need to look into this.
Where do you people find these gems?
$ grep -ER "(from|import).*stsci\.imagemanip" drizzlepac/ drizzlepac/drizzlepac/stisData.py:from stsci.imagemanip import interp2d
Treasure hunters....
That was the look that I saw on @jhunkeler 's face today!
When I told @pllim this package was in still in production...
Just a reminder for myself to look into this.
@mcara bump :D
Such a weird way of doing interpolation: https://github.com/spacetelescope/stsci.imagemanip/blob/2b766bfef94f33b1e9920e6f4ccb5dcdc43aa5e7/src/bilinearinterp.c#L33, i.e., only integer scaling is allowed... I'll look into this @SaOgaz
This package can be retire once drizzlepac>3.0.0
is released. It is no longer a dependency of the drizzlepac
's master since https://github.com/spacetelescope/drizzlepac/pull/227
CC: @stsci-hack @jhunkeler
It has one function. And why not use https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp2d.html instead of this one?