Stuart Wier wrote:
The IDV can set the point of view with the viewpoint control which
lets the user set azimuth from north and angle down from overhead.
In the bundle file the viewpoint is expressed in this 16 value array:
<property name="DisplayMatrix">
<parray class="double" length="16">
0.3535530052376653,-0.35355377594846216,0.0,
0.0,0.17677644300347337,0.17677605764904494,
0.1732052260833264,0.0,-0.30618680847883556,
-0.30618614102314645,0.09999974828680219,0.0,
0.0,0.0,0.0,
1.0
</parray>
</property>
Does anyone have code to convert the 2 values (azimuth from north and
angle down from overhead) into the array?
The idea is to make a general puspose bundle file which can be
controlled and revised automatically when making display image files
using the IDV in non-interactive or offscreen mode.
Hi Stu,
There is code in the
ucar.unidata.view.geoloc.NavigatedDisplay.rotateView method that takes
an azimuth and angle and creates the transform matrix.
Also, you can set the azimuth/angle on a view directly in ISL:
http://www.unidata.ucar.edu/software/IDV/docs/userguide/isl/DataAndDisplays.html#viewpoint
-Jeff