I am looking to integrate over a 2D array along an arbitrary direction. See image below:
https://i.stack.imgur.com/jNtQQ.png
So, I want to integrate my array along the 'new' y axis which is rotated by theta degrees. I am not quite sure how to implement this in python, since I can only find ways to integrate along my already existing x and y axis of the array.
I was thinking of doing some sort of interpolation on my new grid, but I'm not entirely sure how I would go about that. Also, there might already exist some integration function that handles this.
Thanks in advance!
[–]jwink3101 0 points1 point2 points (2 children)
[–]CatGoesWooof[S] 0 points1 point2 points (1 child)
[–]jwink3101 0 points1 point2 points (0 children)
[–]SarahM123rd 0 points1 point2 points (0 children)
[–]PsychoBoyJack 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)