Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums:

Combination View Flat View Tree View
Threads [ Previous | Next ]
RE: How to export a dataset to CVS format using GPT?
Showing 11 - 14 of 14 results.
Items per Page
Page of 2
RE: How to export a dataset to CVS format using GPT?
9/17/14 2:33 PM as a reply to Vyasheslav Vladimirovich Suslin.
Hi Slava,

what do you mean by "the command does not work" -- can you provide an error message?

You can increase the memory by editing gpt.sh: -Xmx<number>M is the line you have to edit, with number the amount of megabytes of memory you want to assign to the Java process.

Cheers,
Thomas
Flag Flag
RE: How to export a dataset to CVS format using GPT?
9/19/14 7:55 AM as a reply to Thomas Storm.
Hi Thomas,

see example below

(1)
-----------------
slava@ac:~/Load/MERIS/Test.FRS$ /home/slava/beam-5.0/bin/gpt.sh Write -Ssource=/home/slava/Load/MERIS/Test.FRS/M2010223080516.L2_FRS_OC -PformatName=CSV -Pfile="/home/slava/Load/MERIS/Test.FRS/M2010223080516.L2_FRS_OC.csv"
[INFO] 2014-09-17T19:26:34.549+0400 - JAI tile scheduler parallelism set to 4
[INFO] 2014-09-17T19:26:35.325+0400 - JAI tile cache size is 512 MB
[INFO] 2014-09-17T19:26:35.326+0400 - JAI tile scheduler parallelism is 4
[INFO] 2014-09-17T19:27:00.500+0400 - All GPF operators will share an instance of com.sun.media.jai.util.SunTileCache with a capacity of 512M
org.esa.beam.framework.gpf.OperatorException: Cannot construct DataBuffer.
at org.esa.beam.framework.gpf.internal.OperatorExecutor$GPFImagingListener.errorOccurred(OperatorExecutor.java:373)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1646)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:921)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at com.sun.media.jai.util.RequestJob.compute(SunTileScheduler.java:247)
at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)
Caused by: org.esa.beam.framework.gpf.OperatorException: Cannot construct DataBuffer.
at org.esa.beam.gpf.operators.standard.WriteOp.computeTile(WriteOp.java:312)
at org.esa.beam.framework.gpf.internal.OperatorImage.computeRect(OperatorImage.java:77)
at javax.media.jai.SourcelessOpImage.computeTile(SourcelessOpImage.java:137)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
... 3 more
Caused by: java.lang.RuntimeException: Cannot construct DataBuffer.
at com.sun.media.jai.util.DataBufferUtils.constructDataBuffer(DataBufferUtils.java:132)
at com.sun.media.jai.util.DataBufferUtils.createDataBufferFloat(DataBufferUtils.java:214)
at javax.media.jai.ComponentSampleModelJAI.createDataBuffer(ComponentSampleModelJAI.java:271)
at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:389)
at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1982)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2160)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
at com.bc.ceres.glevel.MultiLevelImage.getData(MultiLevelImage.java:59)
at org.esa.beam.csv.dataio.writer.CsvProductWriter.writeBandRasterData(CsvProductWriter.java:138)
at org.esa.beam.gpf.operators.standard.WriteOp.writeTileRow(WriteOp.java:360)
at org.esa.beam.gpf.operators.standard.WriteOp.computeTile(WriteOp.java:278)
... 6 more

Error: Cannot construct DataBuffer.
----------------

(2) the same results i got if input is S2001160083424.L2_MLAC_OC
or
(3) Export raster data -> CSV for these files manually (see attach file)

(4) After editing gpt.sh: -Xmx<number>M up to 2M the result was the same.

best regards,
slava
Attachment

Attachments: seadas.7.0.2.jpg (32.6k)
Flag Flag
RE: How to export a dataset to CVS format using GPT?
9/19/14 10:02 AM as a reply to Vyasheslav Vladimirovich Suslin.
Hi Slava,

yes -- the M stands for 'Megabyte', so 2M is pretty low. Please try again with, say, 3000 (or even more, if your machine allows). Note that you have to edit gpt.sh for console processing, and visat-d.sh for the graphical environment (you will have to start the graphical enviroment via visat-d.sh then).

Cheers,
Thomas
Flag Flag
RE: How to export a dataset to CVS format using GPT?
10/6/14 3:44 PM as a reply to Thomas Storm.
Dear Thomas,

thank you.
all work.

best regards,
slava
Flag Flag
Showing 11 - 14 of 14 results.
Items per Page
Page of 2