NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [idvusers] Plotting isosurface with ISL failing

Hi-

Use surfaceValue instead of levelWithRawValue. For any of the properties, use ones that have both set and get methods.

Don

On 6/22/10 7:14 PM, wsession@xxxxxxxxxxx wrote:
I'm attempting to create an ISL script to plot 3D isosurfaces with the
following xml snippet: (test.isl)

<isl debug="true">
   <datasource url="test.nc" type="netcdf.grid" times="0,1">
     <display param="aerosol_extinction" type="isosurface">
       <property name="levelWithRawValue" value="0.004"/>
     </display>
   </datasource>
   <image file="test.jpg" quality="1.0"/>
</isl>

I've been able to plot other 2D plots, but no 3D ones.
When attempting to run the script, I get two errors.  What am I doing
wrong?  (sample file at http://fuelberg.met.fsu.edu/pub/wsession/test.nc ,
26MB):

./prgms/IDV_2.9/runIDV test.isl
Tue Jun 22 18:01:52 PDT 2010: Creating data source
Tue Jun 22 18:01:52 PDT 2010: Creating display: isosurface
param:aerosol_extinction
ERROR: Creating data instance for display: Isosurface
java.lang.NullPointerException
java.lang.NullPointerException
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.addLabelMacros(ThreeDSurfaceControl.java:211)
         at
ucar.unidata.idv.control.DisplayControlImpl.applyMacrosToTemplate(DisplayControlImpl.java:3920)
         at
ucar.unidata.idv.control.DisplayControlImpl.getLegendLabels(DisplayControlImpl.java:3899)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.getLegendLabels(ThreeDSurfaceControl.java:612)
         at
ucar.unidata.idv.control.DisplayControlImpl.getLegendLabels(DisplayControlImpl.java:3775)
         at
ucar.unidata.idv.control.DisplayControlImpl.getTitle(DisplayControlImpl.java:3558)
         at
ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3090)
         at
ucar.unidata.idv.control.DisplayControlImpl.getDataInstance(DisplayControlImpl.java:3297)
         at
ucar.unidata.idv.control.DisplayControlImpl.getDataInstance(DisplayControlImpl.java:3281)
         at
ucar.unidata.idv.control.GridDisplayControl.getGridDataInstance(GridDisplayControl.java:128)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.getDataRealType(ThreeDSurfaceControl.java:398)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.convertRawToDisplay(ThreeDSurfaceControl.java:429)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.getWholeDisplayValue(ThreeDSurfaceControl.java:476)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.setLevelWithRawValue(ThreeDSurfaceControl.java:520)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.setLevelWithRawValue(ThreeDSurfaceControl.java:501)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at ucar.unidata.util.Misc.setProperty(Misc.java:480)
         at ucar.unidata.util.Misc.setProperty(Misc.java:390)
         at ucar.visad.Util.propertySet(Util.java:3148)
         at
ucar.unidata.idv.control.DisplayControlImpl.setProperty(DisplayControlImpl.java:2372)
         at
ucar.unidata.idv.control.DisplayControlImpl.applyProperties(DisplayControlImpl.java:2163)
         at
ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1000)
         at
ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986)
         at
ucar.unidata.idv.ControlDescriptor.doMakeDisplay(ControlDescriptor.java:916)
         at
ucar.unidata.idv.IntegratedDataViewer.doMakeControl(IntegratedDataViewer.java:2600)
         at
ucar.unidata.idv.ui.ImageGenerator.processDisplayNode(ImageGenerator.java:2876)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagDatasource(ImageGenerator.java:1733)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:919)
         at
ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:953)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2465)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2419)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:919)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:832)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:756)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:740)
         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:1089)
ERROR: Setting property:levelWithRawValue value= 4E-4
java.lang.NullPointerException
java.lang.NullPointerException
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.getDataRealType(ThreeDSurfaceControl.java:398)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.convertRawToDisplay(ThreeDSurfaceControl.java:429)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.getWholeDisplayValue(ThreeDSurfaceControl.java:476)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.setLevelWithRawValue(ThreeDSurfaceControl.java:520)
         at
ucar.unidata.idv.control.ThreeDSurfaceControl.setLevelWithRawValue(ThreeDSurfaceControl.java:501)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at ucar.unidata.util.Misc.setProperty(Misc.java:480)
         at ucar.unidata.util.Misc.setProperty(Misc.java:390)
         at ucar.visad.Util.propertySet(Util.java:3148)
         at
ucar.unidata.idv.control.DisplayControlImpl.setProperty(DisplayControlImpl.java:2372)
         at
ucar.unidata.idv.control.DisplayControlImpl.applyProperties(DisplayControlImpl.java:2163)
         at
ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1000)
         at
ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986)
         at
ucar.unidata.idv.ControlDescriptor.doMakeDisplay(ControlDescriptor.java:916)
         at
ucar.unidata.idv.IntegratedDataViewer.doMakeControl(IntegratedDataViewer.java:2600)
         at
ucar.unidata.idv.ui.ImageGenerator.processDisplayNode(ImageGenerator.java:2876)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagDatasource(ImageGenerator.java:1733)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:919)
         at
ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:953)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2465)
         at
ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2419)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
ucar.unidata.idv.ui.ImageGenerator.processNode(ImageGenerator.java:919)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:832)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:756)
         at
ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:740)
         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:1089)
Tue Jun 22 18:01:58 PDT 2010: Writing image:test.jpg


_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: