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

20040727: Displaying image data in IDV



>From: Andrew Watts <address@hidden>
>Organization: ?
>Keywords: 200407271845.i6RIj8aW013187 IDV data formats

Hi Andrew-

>Hello, I am very new to IDV and displaying meteorological data.  I am
>running IDV on Windows 2000 with IDV version 1.1b3 and Java 1.4.1_02.

Are you compiling from source or are you using the InstallAnywhere
installer?

>I am trying to display some GOES / GVAR data, along with some
>topological data in DEM or geotiff format.  I am behind a firewall and
>proxy, so all my data is in local files.  Below is a description of
>the errors and problems I am having, Any help or suggestions would be
>appreciated?

For local files the GVAR data must be in 8 byte, single band format
for the IDV to view.  Even then, if your image is really big, there
might be a limitation where the image shows as a grey image only.
You can use the pixel spacing slider on the control to subsample
the image so it will fit in your graphics buffer.

The IDV does not support the DEM data from the USGS in the raster format.
It supports the USGS DEM format listed at:

http://rockyweb.cr.usgs.gov/nmpstds/acrodocs/dem/2DEM0198.PDF

The IDV support for GeoTIFF is very limited.  However the error
message indicates that there is a missing JAR file in the distribution.
Thanks for bringing this to our attention.  We will add that in the 
next release which should be out in the next couple of weeks.

Don Murray

>Thanks
>-Andrew Watts
>
>
>
>I have downloaded some GVAR data from CLASS
>(http://www.class.noaa.gov).  I can download it in netcdf or mcidas
>Area formats.  When using the mcidas Area file, I select the local
>area file with the data selector, select the image sequence and Image
>Display, and click Create Display.  IDV then spends some time loading
>the image and finally it says it is loaded, but I do not see anything,
>I have tried changing the color range, but no luck.   Coincidently,
>when I run my mouse over the map the following ArrayOutofBounds
>exception is thrown: (There are lots of these exceptions)
>
>java.lang.ArrayIndexOutOfBoundsException: 1602224127
>        at edu.wisc.ssec.mcidas.GVARnav.toLatLon(GVARnav.java:872)
>        at visad.data.mcidas.AREACoordinateSystem.toReference(AREACoordinateSy
> stem.java:311)
>        at ucar.unidata.view.geoloc.MapProjectionDisplay$MapProjection3DAdapte
> r.fromReference(MapProjectionDisplay.java:1375)
>        at ucar.unidata.view.geoloc.MapProjectionDisplay.getEarthLocation(MapP
> rojectionDisplay.java:919)
>        at ucar.unidata.view.geoloc.MapProjectionDisplay.pointerMoved(MapProje
> ctionDisplay.java:903)
>        at ucar.unidata.view.geoloc.NavigatedDisplay$1.displayChanged(Navigate
> dDisplay.java:207)
>        at visad.DisplayImpl.notifyListeners(DisplayImpl.java:529)
>        at visad.MouseHelper.processEvent(MouseHelper.java:231)
>        at visad.MouseHelper.processEvent(MouseHelper.java:138)
>        at visad.java3d.MouseBehaviorJ3D.processStimulus(MouseBehaviorJ3D.java
> :148)
>        at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172
> )
>        at javax.media.j3d.J3dThread.run(J3dThread.java:250)
>
>When I attempt to display the data using netcdf format It successfully
>loads as a data source, but there are no fields or displays associated
>with it.
>
>
>Also,  I am trying to load some DEM data for topography.  I have
>downloaded some gtopo30 data from
>http://edcdaac.usgs.gov/gtopo30/gtopo30.asp and when trying to load
>this data I select the elevation field, along with a topography
>display but receive the following error when trying to create the
>display.
>
>ERROR ucar.unidata.data.DataSourceImpl - An error has occurred
>Reading DEM: E:\My Downloads\USA DEM TOPO 30\w140n40\W140N40.DEM
>Data object "E:\My Downloads\USA DEM TOPO 30\w140n40\W140N40.DEM" not
>compatible with "dem" data family
>
>visad.data.BadFormException: Data object "E:\My Downloads\USA DEM TOPO 30\w140
> n4
>0\W140N40.DEM" not compatible with "dem" data family
>        at visad.data.FunctionFormFamily.open(FunctionFormFamily.java:444)
>        at visad.data.gis.DemFamily.open(DemFamily.java:191)
>        at ucar.unidata.data.gis.DemDataSource.makeDemData(DemDataSource.java:
> 201)
>        at ucar.unidata.data.gis.DemDataSource.getDataInner(DemDataSource.java
> :153)
>        at ucar.unidata.data.DataSourceImpl.getData(DataSourceImpl.java:1066)
>        at ucar.unidata.data.DirectDataChoice.getData(DirectDataChoice.java:23
> 0)
>        at ucar.unidata.data.DataChoice.getData(DataChoice.java:447)
>        at ucar.unidata.data.DataInstance.getData(DataInstance.java:205)
>        at ucar.unidata.data.DataInstance.getData(DataInstance.java:170)
>        at ucar.unidata.data.grid.GridDataInstance.init(GridDataInstance.java:
> 197)
>        at ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.jav
> a:160)
>        at ucar.unidata.idv.control.GridDisplayControl.doMakeDataInstance(Grid
> DisplayControl.java:202)
>        at ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlI
> mpl.java:1664)
>        at ucar.unidata.idv.control.TopographyControl.setData(TopographyContro
> l.java:125)
>        at ucar.unidata.idv.control.TopographyControl.init(TopographyControl.j
> ava:110)
>        at ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl
> .java:711)
>        at ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl
> .java:665)
>        at ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.ja
> va:678)
>        at ucar.unidata.idv.ControlDescriptor.access$000(ControlDescriptor.jav
> a:71)
>        at ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:644
> )
>        at ucar.unidata.util.Misc$1.run(Misc.java:1294)
>
>
>
>And when trying to load a geotiff I also have some trouble.  I have
>downloaded some shaded relief data from
>http://edcftp.cr.usgs.gov/pub/data/nationalatlas/shdrlfi020l.tar.gz
>and receive the following exception when trying to load the image:
>
>java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ImageCodec
>        at ucar.unidata.data.gis.GeotiffAdapter.getDirectory(GeotiffAdapter.ja
> va:190)
>        at ucar.unidata.data.gis.GeotiffAdapter.<init>(GeotiffAdapter.java:126
> )
>        at ucar.unidata.data.gis.GeotiffDataSource.openData(GeotiffDataSource.
> java:97)
>        at ucar.unidata.data.gis.GeotiffDataSource.<init>(GeotiffDataSource.ja
> va:80)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Metho
> d)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Sourc
> e)
>        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>Source)
>        at java.lang.reflect.Constructor.newInstance(Unknown Source)
>        at ucar.unidata.data.DataManager.createDataSource(DataManager.java:788
> )
>        at ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDa
> taViewer.java:1199)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1137)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1118)
>        at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:
> 280)
>        at ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.ja
> va:297)
>        at ucar.unidata.idv.chooser.FileChooser.selectFile(FileChooser.java:19
> 9)
>        at ucar.unidata.idv.chooser.FileChooser.access$200(FileChooser.java:78
> )
>        at ucar.unidata.idv.chooser.FileChooser$2.approveSelection(FileChooser
> .java:152)
>        at javax.swing.plaf.basic.BasicFileChooserUI$ApproveSelectionAction.ac
> tionPerformed(Unknown
>Source)
>        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unkn
> own
>Source)
>        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
>Source)
>        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>        at java.awt.Component.processMouseEvent(Unknown Source)
>        at java.awt.Component.processEvent(Unknown Source)
>        at java.awt.Container.processEvent(Unknown Source)
>        at java.awt.Component.dispatchEventImpl(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Window.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.EventQueue.dispatchEvent(Unknown Source)
>        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Sourc
> e)
>        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.run(Unknown Source)
>Contained exception:com/sun/media/jai/codec/ImageCodec
>java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ImageCodec
>        at ucar.unidata.data.gis.GeotiffAdapter.getDirectory(GeotiffAdapter.ja
> va:190)
>        at ucar.unidata.data.gis.GeotiffAdapter.<init>(GeotiffAdapter.java:126
> )
>        at ucar.unidata.data.gis.GeotiffDataSource.openData(GeotiffDataSource.
> java:97)
>        at ucar.unidata.data.gis.GeotiffDataSource.<init>(GeotiffDataSource.ja
> va:80)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Metho
> d)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Sourc
> e)
>        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>Source)
>        at java.lang.reflect.Constructor.newInstance(Unknown Source)
>        at ucar.unidata.data.DataManager.createDataSource(DataManager.java:788
> )
>        at ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDa
> taViewer.java:1199)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1137)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1118)
>        at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:
> 280)
>        at ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.ja
> va:297)
>        at ucar.unidata.idv.chooser.FileChooser.selectFile(FileChooser.java:19
> 9)
>        at ucar.unidata.idv.chooser.FileChooser.access$200(FileChooser.java:78
> )
>        at ucar.unidata.idv.chooser.FileChooser$2.approveSelection(FileChooser
> .java:152)
>        at javax.swing.plaf.basic.BasicFileChooserUI$ApproveSelectionAction.ac
> tionPerformed(Unknown
>Source)
>        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unkn
> own
>Source)
>        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
>Source)
>        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>        at java.awt.Component.processMouseEvent(Unknown Source)
>        at java.awt.Component.processEvent(Unknown Source)
>        at java.awt.Container.processEvent(Unknown Source)
>        at java.awt.Component.dispatchEventImpl(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Window.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.EventQueue.dispatchEvent(Unknown Source)
>        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Sourc
> e)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.run(Unknown Source)
>Exception thrown at:
>Error creating data source:file.tiff with:E:\My Downloads\National Atlas\Shade
> d
>Relief\shdrlfi020l.tif
>
>ucar.unidata.data.BadDataException: Error creating data
>source:file.tiff with:E:\My Downloads\National Atlas\Shaded
>Relief\shdrlfi020l.tif
>java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ImageCodec
>        at ucar.unidata.data.DataManager.createDataSource(DataManager.java:815
> )
>        at ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDa
> taViewer.java:1199)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1137)
>        at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedData
> Viewer.java:1118)
>        at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:
> 280)
>        at ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.ja
> va:297)
>        at ucar.unidata.idv.chooser.FileChooser.selectFile(FileChooser.java:19
> 9)
>        at ucar.unidata.idv.chooser.FileChooser.access$200(FileChooser.java:78
> )
>        at ucar.unidata.idv.chooser.FileChooser$2.approveSelection(FileChooser
> .java:152)
>        at javax.swing.plaf.basic.BasicFileChooserUI$ApproveSelectionAction.ac
> tionPerformed(Unknown
>Source)
>        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unkn
> own
>Source)
>        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
>Source)
>        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>        at java.awt.Component.processMouseEvent(Unknown Source)
>        at java.awt.Component.processEvent(Unknown Source)
>        at java.awt.Container.processEvent(Unknown Source)
>        at java.awt.Component.dispatchEventImpl(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>        at java.awt.Container.dispatchEventImpl(Unknown Source)
>        at java.awt.Window.dispatchEventImpl(Unknown Source)
>        at java.awt.Component.dispatchEvent(Unknown Source)
>        at java.awt.EventQueue.dispatchEvent(Unknown Source)
>        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Sourc
> e)
>        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>        at java.awt.EventDispatchThread.run(Unknown Source)
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publically available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.