Skip to content
Discussion options

You must be logged in to vote

Hi @cvejarano

You'll want to use dr.binary_search() . By using that function you'll be able to figure out the indices of the two wavelength values in self.reflectance_wavelengths and self.reflectance_vals that you should be interpolating between (use dr.gather to get them). You can then use dr.lerp() to actually do the interpolation (careful the interpolant needs to be contained in [0, 1]).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@merlinND
Comment options

@cvejarano
Comment options

Answer selected by cvejarano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants