This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Yuan, > > >> > >>Stu, > >>These two lines of setting apsect ratio is not in your previous isl file, > >>adding these two lines and remove the following two lines of setting scale > >>will make it working. > >>I don't know what is the meanning of viewpoint scale, but I don't see it > >>being used alone in our example. But you probably don't want to use it here. > >> > >>Yuan > > In the isl file below, the lines > > <!-- set the zoom factor. default view cooresponds to 0.5, not 1.0 --> > <viewpoint scale="ZOOMSCALE"/> > <pause/> > > are supposed to zoom in the display. In use ZOOMSCALE is replaced with > a number such as 1.4 > > and the lines > > <!-- to ensure the depth of the wireframe box is 0.4 of box x and y width, as > is usual --> > <viewpoint aspectx="1" aspecty="1" aspectz="0.4"/> > <pause/> > > are supposed to ensure the wire frame box's depth is 0.4 of the width. > > > Two behaviors are seen: > > If the line <viewpoint scale="ZOOMSCALE"/> is in 'position 1' > the wireframe box is 0.4 deep but no zoom occurs, regardless of the > ZOOMSCALE value. > > If the line <viewpoint scale="ZOOMSCALE"/> is in 'position 2' the > wireframe box is 1.p deep, a cube, but zoom occurs, to the degree set > by the scale value. > > Can you tell me how to get both zooming and the wireframe box to a depth > of 0.4? > Hi Stu, I did understand your question 100 percent. The IDV need to fix this problem later. But you can have a work around here at this moment. I would suggest you to combine these two lines as: <viewpoint scale="0.4" aspectx="1" aspecty="1" aspectz="0.4"/>, and if you need to rotate, don't use another view point tag, you can use the rotx="somevalue" and add to the same line. I believe this can help. Yuan > Stuart > > <?xml version="1.0" encoding="ISO-8859-1"?> > <isl debug="true" offscreen="true" > > <bundle clear="true" file="/products/server/idv_config_files/working.xidv" > wait="true"/> > <pause/> > > <!-- items in the template isl file in ALL CAPS are replaced with particular > values, by the php program --> > > <!-- to ensure the depth of the wireframe box is 0.4 of box x and y width, as > is usual --> > <viewpoint aspectx="1" aspecty="1" aspectz="0.4"/> > <pause/> > > <!-- position 1 --> > > <!-- reset the users point of view; default values are 180 and 0, > the normal map view with North on top and bottom of display at 180 (South) --> > <viewpoint azimuth="VPAZIMUTH" tilt="VPTILT"/> > <pause/> > > <!-- position 2 --> > <!-- set the zoom factor. default view cooresponds to 0.5, not 1.0 --> > <viewpoint scale="ZOOMSCALE"/> > <pause/> > > <!-- reset the center point of map; otherwise omit this line. --> > <center lat="CENTERLAT" lon="CENTERLON"/> > <pause/> > > <!-- future use: > <property name="colorTableName" value="SMN tomography"/> > --> > > <!-- code to create an image file and modify the image --> > <image file="/products/server/displays/DISPLAYFILENAME" DISPLAY2DID> > <!-- DISPLAY2DID is replaced with "2D vert xsect plot" or whatever is the > magic id char string in the Vert Xsec > xidv file --> > <!-- DISPLAY2DID is " " if you want to see the vert xsec in the full 3d map > display --> > > <!-- add 'matte' or border at bottom of image --> > <matte bottom="70" background="gray"/> > > <!-- show color tables colorbar legend with 7 tick marks of values > width 300 pix ; at 315 pixels left (-x) and up 45 pixels (-) from "lower > right" (LR) of image plus matte --> > <colorbar orientation="bottom" tickmarks="7" width="300" linecolor="white" > place="LR,-315,-45" showlines="true" > showunit="true"/> > > <!-- put label on image; main php code replaces "IMAGE-LABEL" with correct > text --> > <overlay text="IMAGE-LABEL" place="LL,10,-28" anchor="UL" fontsize="17" > color="white" /> > > <!-- user may choose to specify a new width value for the image file, in > pixels; main php code replaces with > number --> > <resize width="RESIZEWIDTH"/> > > <!-- stick a logo on the image, in this case with its upper left corner 10 > pixels from the upper left corner of > the image --> > <overlay image ="/products/server/images/logo.png" place="UL,10,10" > anchor="UL" /> > </image> > </isl> > > Ticket Details =================== Ticket ID: ENZ-166284 Department: Support IDV Priority: Normal Status: Closed