Re: Other question

Hi Ricardo,

> Somebody knows how can i solve this error?
> 
> 
> java.lang.OutOfMemoryError:
>         at visad.FlatField.unpackValues(FlatField.java:882)
>         at visad.FlatField.unpackValues(FlatField.java:846)
>         at visad.FlatField.computeRanges(FlatField.java:3457)
>         at visad.DataImpl.computeRanges(DataImpl.java:556)
>         at visad.DataRenderer.prepareAction(DataRenderer.java:200)
>         at visad.DisplayImpl.doAction(DisplayImpl.java:879)
>         at visad.java2d.DisplayImplJ2D.doAction(DisplayImplJ2D.java:308)
> 
>         at visad.ActionImpl.run(ActionImpl.java:193)
>         at visad.util.ThreadPool$ThreadMinnow.run(ThreadPool.java:86)
> 
> It occurs when I load data of a 2000 x 2000 x 6 image into a dysplay

A 2000 x 2000 image can consume a lot of memory, depending
on how you display it, particularly in a DisplayImplJ2D.

Try using the '-mxNNNm' option on your java command line,
where NNN is some large number of megabytes.

I also recommend DisplayImplJ3D for large images, if you
have Java3D.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html