Hey Masonites,
I’m about to write a class and it occurs to me that it’s general enough that someone else may have already something equivalent. It would be either a wrapper or subclass of GeomGridField, and for a given x, y
(floats), it would give you a weighted combination of the 4 nearest cells. This is in contrast to the way GeomGridField.toXCoord(x) works, which is to truncate to the nearest integer index, then return the value in that cell. If anyone’s already written this
code, I’d be glad to have it.
Cheers,
Joey
--
Joey Harrison, PhD
Lead Software Engineer for Modeling & Simulation
The MITRE Corporation
7515 Colshire Dr, McLean VA 22102
w. 571-369-7750, m. 435-760-3159