Re: Other question

Hi Ricardo,

> Somebody knows how can i solve this error?
> java.lang.OutOfMemoryError:
>         at visad.FlatField.unpackValues(
>         at visad.FlatField.unpackValues(
>         at visad.FlatField.computeRanges(
>         at visad.DataImpl.computeRanges(
>         at visad.DataRenderer.prepareAction(
>         at visad.DisplayImpl.doAction(
>         at visad.java2d.DisplayImplJ2D.doAction(
>         at
>         at visad.util.ThreadPool$
> 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.

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738