'Mapping density coordinates from one coordinate system to another
I'm currently trying to map a set of density coordinates onto a normalized reference. For example, say I have the following densities for 2 systems with the following reference:
System 1 |X|Y|Z|ESP| |-|-|-|---| |0|0|0|0.1| |0|0|1|0.2| |0|0|2|0.3| |1|0|0|0.2| |2|0|0|0.3|
System 2 |X|Y|Z|ESP| |-|-|-|---| |0|0|0|0.5| |0|0|1|0.10| |0|0|2|0.20| |1|0|0|0.10| |2|0|0|0.20| |0|1|0|0.30| |0|2|0|0.50|
Normalized Reference Map |X|Y|Z| |-|-|-| |0|0|0| |0|0|1| |0|0|2| |0|0|3| |1|0|0| |2|0|0| |3|0|0| |0|1|0| |0|2|0| |0|3|0|
I want to map the values of the independent systems onto the reference. We can assume that points that don't appear in the Systems on the reference can be the average of the surrounding ESP values. I've been trying various scipy interpolations methods like map_coordinates and interpolation, but I'm having no luck with getting everything done correctly. I was hoping to see if anyone had any thoughts here.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
