It seems that the saved viewpoints do not always work. It is not consistent, but the viewpoint sometimes saves incorrectly so that a saved view over North America will fail to return the North American view and may be somewhere over South America. I can't figure out why this pattern is inconsistent. Sometimes the save seems to work correctly. Once a view is corrupted incorrect, it seems to stay that way. I have decided to start using a more verbose way of returning to the same view, especially if the display is rotated.
Part A (setting the correct view)
1.) Find correct zoom, projection
2.) Rotate Display
3.) Find out the projection matrix
Part B (returning to previous view
1.) Repeat the zoom, projection
2.) set the projection matrix
If Part B, Step 1 is skipped, the projection matrix does not return to the same view in part A.
Code: Select all
panel = buildWindow(height=720,width=1280)
# hack to turn display to desired view
projectionMatrix=[1.81443441765996, 0.017172076959476982, -0.016770754467774145, \
-0.839954704088919, 0.02088701834226162, 1.1734219920086542,\
0.5538042341673042, 0.19453075679676154, 0.04020542843618284, \
-1.3845616448693578, 0.4691434876591039, 0.0, 0.0, 0.0, 0.0, 1.0]
I imagine that this might be difficult to reproduce as a bug report because failed viewpoints still happen sporadically within my session. Therefore, I will have to rely on other users to back me up. Also, you could come look at some of the failed viewpoints on my machine, but then you will have to take my word for it that I actually saved a view over Colorado and I now see Brazil. Or, I saved view of the AHI full disk region and the viewpoint returns the US.