-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide means for ultimate pixel coordinate conversion #11
Comments
There is a confusion about pixel coordinates in the camera plane, I think.
Following this train of though, wouldn't it also make sense to simply attach the useful pixel coors to the And finally wouldn't it be good if pixel_mapping was a pandas.DataFrame? |
These functions all come from the really first days, where pandas wasn't in our toolkit. I think it's a good idea to migrate those to pandas. To the rotation thingy: There are to different ways one can handle these: define new rotated coordinates or rotate only for the view. In get_pixel_coordinates I kind of did the first thing, in fact-tools we do the second. |
I think one shouldn't think about it as "the rotation thingy", but about "what coordinates are people interested in?". There are these coordinates called However, I think delivering multiple coordinates for pixels inside a DataFrame is extremely cheap. We can deliver them in all kind of coordinate systems, which might help somebody later to accomplish her research goal quicker. The only important this is: "It must be clear what coordinates do we deliver". Even saying "(x,y) are the center coordinates of the pixels in the camera plane in mm" is not enough, since one needs to say where the x-axis and y-axis are actually pointing to. |
So in short: Let's kick what was called x : center coordinate of a pixel in mm measured from the center of the focal plane. positive numbers point east, when FACT is parking. y: center coordinate of a pixel in mm measured from the center of the focal plane. positive numbers point to zenith, when FACT is parking |
I agree |
For the other things you mentioned in the first post, we need hexagon grid tools. I started implementing them a while ago here: https://github.com/maxnoe/pyhexgrid It already can do conversion from cartesian to hexgrid cube coordinates and neighbor finding. |
"There is a rich world of indices and coordinates right in front of your doorstep, just go outside and pick any."
No really .. there are so many coordinates in FACT, just have a look at the FACTmap
And in that the
pixel chid
is even missing, just like that index, which references to the order of trigger patches in the aux files dealing with trigger patches. And just like the index dealing with the bias patches. It is simply missing.I'd like to provide a way for users to literally convert anything into anything here.
Say:
Maybe even something like:
The text was updated successfully, but these errors were encountered: