[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[IDV #WEW-971638]: convertUnits failed
- Subject: [IDV #WEW-971638]: convertUnits failed
- Date: Fri, 23 Apr 2010 12:35:52 -0600
> Hi Yuan
>
> Thanks, it was my mistake!, so I have another trouble, I'm trying to run the
> same script on the "crontab", but I have the next error:
>
> No X11 DISPLAY variable was set, but this program performed an operation
> which requires it.
Reymer,
In the IDV userguide, section 7.1, it states:
The the IDV can run in "offscreen" mode (see more) with an ISL or with Jython.
The user interface won't be
shown. However, the IDV still needs to be run with an active window system
(e.g., X, MS Windows) for it to
run. If running under a Linux/Unix machine and you don't have an X server
running you need to run the IDV
under the X virtual frame buffer: xvfb.
Here is some information about set X Display:
"http://www.cisl.ucar.edu/docs/ssh/guide/node29.html"
Yuan
> java.awt.HeadlessException:
> No X11 DISPLAY variable was set, but this program performed an operation
> which requires it.
> at
> javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:294)
> at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3881)
> at visad.java3d.DisplayImplJ3D.initialize(DisplayImplJ3D.java:405)
> at visad.java3d.DisplayImplJ3D.<init>(DisplayImplJ3D.java:289)
> at visad.java3d.DisplayImplJ3D.<init>(DisplayImplJ3D.java:276)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplayJ3D.<init>(MapProjectionDisplayJ3D.java:202)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplay.getInstance(MapProjectionDisplay.java:359)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplay.getInstance(MapProjectionDisplay.java:331)
> at
> ucar.unidata.idv.MapViewManager.doMakeDisplayMaster(MapViewManager.java:433)
> at ucar.unidata.idv.ViewManager.getMaster(ViewManager.java:4902)
> at ucar.unidata.idv.ViewManager.init(ViewManager.java:794)
> at
> ucar.unidata.idv.NavigatedViewManager.init(NavigatedViewManager.java:301)
> at ucar.unidata.idv.MapViewManager.init(MapViewManager.java:540)
> at ucar.unidata.idv.VMManager.addViewManager(VMManager.java:515)
> at ucar.unidata.idv.VMManager.addViewManagers(VMManager.java:535)
> at
> ucar.unidata.idv.IdvPersistenceManager.instantiateFromBundle(IdvPersistenceManager.java:3576)
> at
> ucar.unidata.idv.IdvPersistenceManager.decodeXmlInner(IdvPersistenceManager.java:3036)
> at
> ucar.unidata.idv.IdvPersistenceManager$11.run(IdvPersistenceManager.java:2858)
> at
> ucar.unidata.idv.IdvPersistenceManager.decodeXml(IdvPersistenceManager.java:2867)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagBundle(ImageGenerator.java:2145)
> 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:913)
> at
> ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:947)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2446)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2400)
> 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:913)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:826)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:750)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:734)
> at ucar.unidata.idv.ArgsManager$1.run(ArgsManager.java:406)
> at
> ucar.unidata.idv.ArgsManager.runInitRunnables(ArgsManager.java:453)
> at ucar.unidata.idv.ArgsManager.access$000(ArgsManager.java:73)
> at ucar.unidata.idv.ArgsManager$3.run(ArgsManager.java:432)
> at ucar.unidata.util.Misc$3.run(Misc.java:1096)
>
> java.lang.NoClassDefFoundError: Could not initialize class
> visad.java3d.VisADCanvasJ3D
> at visad.java3d.DisplayImplJ3D.initialize(DisplayImplJ3D.java:405)
> at visad.java3d.DisplayImplJ3D.<init>(DisplayImplJ3D.java:289)
> at visad.java3d.DisplayImplJ3D.<init>(DisplayImplJ3D.java:276)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplayJ3D.<init>(MapProjectionDisplayJ3D.java:202)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplay.getInstance(MapProjectionDisplay.java:359)
> at
> ucar.unidata.view.geoloc.MapProjectionDisplay.getInstance(MapProjectionDisplay.java:331)
> at
> ucar.unidata.idv.MapViewManager.doMakeDisplayMaster(MapViewManager.java:433)
> at ucar.unidata.idv.ViewManager.getMaster(ViewManager.java:4902)
> at
> ucar.unidata.idv.ui.ImageGenerator.captureImage(ImageGenerator.java:3828)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagImage(ImageGenerator.java:2615)
> 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:913)
> at
> ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:947)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagCall(ImageGenerator.java:2280)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagCall(ImageGenerator.java:2225)
> 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:913)
> at
> ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:947)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2446)
> at
> ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2400)
> 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:913)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:826)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:750)
> at
> ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:734)
> at ucar.unidata.idv.ArgsManager$1.run(ArgsManager.java:406)
> at
> ucar.unidata.idv.ArgsManager.runInitRunnables(ArgsManager.java:453)
> at ucar.unidata.idv.ArgsManager.access$000(ArgsManager.java:73)
> at ucar.unidata.idv.ArgsManager$3.run(ArgsManager.java:432)
> at ucar.unidata.util.Misc$3.run(Misc.java:1096)
> An error occurred:java.lang.NoClassDefFoundError: Could not initialize class
> visad.java3d.VisADCanvasJ3D
>
> How I can fixed...
>
> Thanks
>
> Reymer Vargas
> University of Costa Rica
>
> 2010/4/22 Unidata IDV Support <address@hidden>
>
> > > Hi
> > >
> > > Already I uploaded the file, is called IR_20100414_1815, so... what I'm
> > > doing is generate a image file *.png from the GINI file, is simple..
> > >
> > > this are my steps
> > >
> > > 1. Open the IDV,
> > > 2. File/Open/
> > > 3. looking for the file IR...
> > > 4. Data source types: Image Files (GINI)
> > > 5. Dashboard/Field Selector/Fields/brightness values/Create Display
> > > 6. File/Save as/IDV Bundles (XIDV)
> > >
> > > and then using a isl to generate the image, the image is generated
> > perfectly
> > > but, in the process shows me the error.
> > >
> > > Thanks
> >
> > Reymer,
> > Thanks for your details information.
> > The error message is basically a warning message, you can either ignore
> > it or change the data source type when you load the data, the correct type
> > should be McIDAS Area files. Let me know if you need any more
> > help.
> >
> >
> > Yuan
> > >
> > > Reymer Vargas
> > > School of Physics
> > > University of Costa Rica
> > >
> > >
> > >
> > >
> > > 2010/4/21 Unidata IDV Support <address@hidden>
> > >
> > > > > Hi Jeff
> > > > >
> > > > > I have a trouble with my email account of fisica.ucr.ac.cr, and I
> > need
> > > > to
> > > > > answer you with this email.
> > > > >
> > > > > So this is my infomation
> > > > >
> > > > > Ticket ID: AMH-901038
> > > > > Subject: WARNING: convertUnits failed
> > > > > Department: Support IDV
> > > > > Priority: Normal
> > > > > Status: Open
> > > > >
> > > > > Now I'm generating a image with the IDV from a local file, this data
> > is
> > > > from
> > > > > the LDM the data are GINI files
> > > > >
> > > > > Cheers
> > > > >
> > > > > Reymer Vargas
> > > > > School of Physics
> > > > > University of Costa Rica
> > > > >
> > > > Reymer Vargas,
> > > > Could you upload a sample file to Unidata site:
> > > > http://motherlode.ucar.edu/repository/alias/idvupload
> > > >
> > > > And some description of what you are trying to do. I would like to take
> > a
> > > > look why the unit conversion fail.
> > > >
> > > >
> > > > Yuan
> > > > > Apr 9, 2010 11:26:52 AM ucar.nc2.dt.grid.GridCoordSys
> > > > > convertUnits
> > > > > WARNING: convertUnits
> > > > > failed
> > > > > java.lang.IllegalArgumentException: Can't convert from unit "1" to
> > unit
> > > > > "1000.0 m"
> > > > > at
> > > > > ucar.nc2.units.SimpleUnit.convertTo(SimpleUnit.java:275)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.convertUnits(GridCoordSys.java:558)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.<init>(GridCoordSys.java:297)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.makeGridCoordSys(GridCoordSys.java:253)
> > > > > at
> > > > >
> > > >
> > ucar.nc2.dt.grid.GridDataset.constructCoordinateSystems(GridDataset.java:153)
> > > > >
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.<init>(GridDataset.java:133)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.<init>(GridDataset.java:114)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:104)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:89)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:1084)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:1106)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.initAfterUnpersistence(GeoGridDataSource.java:377)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager$17.run(IdvPersistenceManager.java:3463)
> > > > >
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:273)
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:245)
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:212)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.instantiateFromBundle(IdvPersistenceManager.java:3472)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.decodeXmlInner(IdvPersistenceManager.java:3036)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager$11.run(IdvPersistenceManager.java:2858)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.decodeXml(IdvPersistenceManager.java:2867)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagBundle(ImageGenerator.java:2145)
> > > > >
> > > > > 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:913)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:947)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2446)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2400)
> > > > > 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:913)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:826)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:750)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:734)
> > > > >
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager$1.run(ArgsManager.java:406)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager.runInitRunnables(ArgsManager.java:453)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager.access$000(ArgsManager.java:73)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager$3.run(ArgsManager.java:432)
> > > > > at
> > > > > ucar.unidata.util.Misc$3.run(Misc.java:1096)
> > > > > Apr 9, 2010 11:26:52 AM ucar.nc2.dt.grid.GridCoordSys
> > > > > convertUnits
> > > > > WARNING: convertUnits
> > > > > failed
> > > > > java.lang.IllegalArgumentException: Can't convert from unit "1" to
> > unit
> > > > > "1000.0 m"
> > > > > at
> > > > > ucar.nc2.units.SimpleUnit.convertTo(SimpleUnit.java:275)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.convertUnits(GridCoordSys.java:558)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.<init>(GridCoordSys.java:298)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridCoordSys.makeGridCoordSys(GridCoordSys.java:253)
> > > > > at
> > > > >
> > > >
> > ucar.nc2.dt.grid.GridDataset.constructCoordinateSystems(GridDataset.java:153)
> > > > >
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.<init>(GridDataset.java:133)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.<init>(GridDataset.java:114)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:104)
> > > > > at
> > > > > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:89)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:1084)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:1106)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.data.grid.GeoGridDataSource.initAfterUnpersistence(GeoGridDataSource.java:377)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager$17.run(IdvPersistenceManager.java:3463)
> > > > >
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:273)
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:245)
> > > > > at
> > > > > visad.util.ThreadManager.runInParallel(ThreadManager.java:212)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.instantiateFromBundle(IdvPersistenceManager.java:3472)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.decodeXmlInner(IdvPersistenceManager.java:3036)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager$11.run(IdvPersistenceManager.java:2858)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.IdvPersistenceManager.decodeXml(IdvPersistenceManager.java:2867)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagBundle(ImageGenerator.java:2145)
> > > > >
> > > > > 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:913)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processChildren(ImageGenerator.java:947)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagGroup(ImageGenerator.java:2446)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processTagIsl(ImageGenerator.java:2400)
> > > > > 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:913)
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:826)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFile(ImageGenerator.java:750)
> > > > >
> > > > > at
> > > > >
> > > >
> > ucar.unidata.idv.ui.ImageGenerator.processScriptFiles(ImageGenerator.java:734)
> > > > >
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager$1.run(ArgsManager.java:406)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager.runInitRunnables(ArgsManager.java:453)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager.access$000(ArgsManager.java:73)
> > > > > at
> > > > > ucar.unidata.idv.ArgsManager$3.run(ArgsManager.java:432)
> > > > > at ucar.unidata.util.Misc$3.run(Misc.java:1096)
> > > > >
> > > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: WEW-971638
> > > > Department: Support IDV
> > > > Priority: Normal
> > > > Status: Open
> > > >
> > > >
> > >
> > >
> > > --
> > > Reymer Vargas
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: WEW-971638
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
> >
>
>
> --
> Reymer Vargas
>
>
Ticket Details
===================
Ticket ID: WEW-971638
Department: Support IDV
Priority: Normal
Status: Open