• support@ifer.cz
  • +420 2 4195 0607

Calculate tree basal area from DBH

By Martin Cerny / Oct 6, 2016

OnChange script on Trees.DBH_mm calculates tree basal area. Whenever the value of DBH_mm is changed the value of BasalArea_m2 is automatically calculated.

begin
  if Trees[‘DBH_mm’] = NULL then   
    Trees[‘BasalArea_m2’] := NULL
  else   
    Trees[‘BasalArea_m2’] := Round(Pi * Power(Trees[‘DBH_mm’]/2000,2),3);
end.

Download scripting example 001 (Field-Map Project)


You must be logged in to post a comment