[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #NRN-127025]: ISL Center Function



Hi Stefan,

Would you mind sending your isl script?

As for the contour labels, I don't think there is an isl way to do that so that 
you can have the same font renderer as the displaylist (however, I'll check 
with Yuan about that).

Cheers,

Sean

> Full Name: Stefan Cecelski
> Email Address: address@hidden
> Organization: University of Maryland
> Package Version: 3.0u3 build date:2012-03-09 08:06 UTC
> Operating System: Mac OS X
> Hardware: Java: home: 
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home version: 
> 1.6.0_29 j3d:1.5.2 fcs (build4)
> Description of problem: Hi All,
> 
> I am trying to use the center function in the ISL scripting language to 
> create a box for image capture. The command is something like: <center 
> north="15" south="2" east="-5" west="-20"/>. When I do this, I get the 
> following error:
> 
> Tue Mar 13 14:51:26 EDT 2012: Loading bundle: 
> /Volumes/WD/IDV_Scripts/bundles/aew_7ms_vort_part_1.xidv
> java.lang.ArithmeticException: / by zero
> at 
> ucar.unidata.view.geoloc.MapProjectionDisplay.setMapRegion(MapProjectionDisplay.java:1156)
> at 
> ucar.unidata.view.geoloc.MapProjectionDisplay.setMapArea(MapProjectionDisplay.java:962)
> at ucar.unidata.idv.VMManager.center(VMManager.java:816)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processTagCenter(ImageGenerator.java:2201)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:1029)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:1063)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2728)
> at ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2682)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:1029)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:942)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:866)
> at 
> ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:850)
> at ucar.unidata.idv.ArgsManager$1.run(ArgsManager.java:407)
> at ucar.unidata.idv.ArgsManager.runInitRunnables(ArgsManager.java:454)
> at ucar.unidata.idv.ArgsManager.access$000(ArgsManager.java:73)
> at ucar.unidata.idv.ArgsManager$3.run(ArgsManager.java:433)
> at ucar.unidata.util.Misc$3.run(Misc.java:1090)
> An error occurred:java.lang.ArithmeticException: / by zero
> 
> Any ideas? The center function works if I supply it a lat/lon pair for the 
> image center. Also, is there any way to render contour labels using ISL 
> commands? This would be similar to rendering the display list using ISL 
> function <displaylist>. This would be nice to have since the Java font used 
> by ISL is of better quality, and backgrounds can be used! Thanks for your 
> help.
> 
> V/R,
> 
> Stefan
> 
> 


Ticket Details
===================
Ticket ID: NRN-127025
Department: Support IDV
Priority: Normal
Status: Open