Hi, I have a general problem with calculations in Calc: Even if the calculation runs smoothly when I test it, I get an error in step 3 when running the calculation chain. Obviously the results are not written to the database. I also see that the plot area is not written to the tree view (even if correct).

My simple example calculation is: tree$tree_basalarea <- pi/4*(tree$tree_dbh/100)^2 I am using a test case with only some trees.

The error I get is:

Error in 'tree basal area' org.openforis.calc.r.RException: R error while evaluating tree basal area at org.openforis.calc.engine.CalcRTask.execute(CalcRTask.java:58) at org.openforis.calc.engine.Worker.run(Worker.java:75) at org.openforis.calc.engine.Job.execute(Job.java:103) at org.openforis.calc.engine.Worker.run(Worker.java:75) at org.openforis.calc.engine.Job.run(Job.java:89) at org.openforis.calc.engine.TaskManager$1.run(TaskManager.java:232) at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:230) at java.lang.Thread.run(Thread.java:745) Error in $<-.data.frame(*tmp*, "tree_basalarea_per_ha", value = numeric(0)) : Ersetzung hat 0 Zeilen, Daten haben 3 Error in checkError(result, connection) : Error in $<-.data.frame(*tmp*, "tree_basalarea_per_ha", value = numeric(0)) : Ersetzung hat 0 Zeilen, Daten haben 3

asked 28 Jul '16, 11:12

Fehrmann's gravatar image

Fehrmann
613316
accept rate: 0%

closed 02 Aug '16, 12:19

Mino%20Togna's gravatar image

Mino Togna ♦♦
4365

The question has been closed for the following reason "Problem is not reproducible or outdated" by Mino Togna 02 Aug '16, 12:19


Add on: In an older survey (where calculation works) the calculated fields in the database are "double precision", while with Calc 2.0 I have the problem that they are "numeric". Maybe the problem is somewhere here...

permanent link

answered 28 Jul '16, 11:51

Fehrmann's gravatar image

Fehrmann
613316
accept rate: 0%

While searching for the problem I found that my Calc installation was not correct. I installed Calc 2 without completely removing Calc 1 before. Therefore the question above is obsolete.

Thank you and sorry!

permanent link

answered 28 Jul '16, 15:36

Fehrmann's gravatar image

Fehrmann
613316
accept rate: 0%

Hi Fehrmann,

Thank you. please let us know if you face additional problems.

Mino

permanent link

answered 02 Aug '16, 12:19

Mino%20Togna's gravatar image

Mino Togna ♦♦
4365
accept rate: 10%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×61

question asked: 28 Jul '16, 11:12

question was seen: 2,139 times

last updated: 02 Aug '16, 12:19