# DATA FOR MANUSCIPT MANGROVE MECHANICAL PROPERTIES
Title: Analysis of coastal storm damage resistance in successional mangrove species
Authors: 
DOI: 

## The following files are included:
### DATA
- sites.csv
- treelocations.csv
- dfbranch.csv
- dfleaf.csv
- dfdrag.csv
- dfarchitecture.csv
- dfbranchdimensions.csv
- dfModelledDimensions.csv

### R SCRIPTS
- fun.R
- FIGURE_branchproperties
- FIGURE_leafproperties
- FIGURE_branchleaf.R
- FIGURE_propertiesPerSite.R
- FIGURE_drag
- FIGURE_estimatedDrag
- FIGURE_S_branchDimensions.R

## SPECIES
KO = Kandelia obovata
AI = Acanthus ilicifolius
AV = Avicennia marina
SA = Sonneratia apetala
AC = Aegiceras corniculatum

## Descriptions
### DATA
- sites.csv
  description of sampling site
  site      = sampling site
  name      = name of sampling site
  latitute  = latitude of site in WGS 84
  longitude = longitude of site in WGS 84
  species   = tree species present in site
  salinity  = site salinty (psu)

- treelocations.csv
  tree locations for trees listed in dfbranch.csv and dfleaf.csv
  site      = sampling site (sites.csv)
  species   = tree species
  tree      = tree number
  latitude  = tree location latitude in WGS 84
  longitude = tree location longitude in WGS 84

- dfbranch.csv (for exact data collection methods see paper)
  mechanical properties of mangrove branches, listed per branch
  species       = tree species
  site          = sampling site (sites.csv)
  tree          = tree number, matches with trees in treelocations.csv
  diam_cm       = branch diameter (cm)
  Fmax_N        = maximum force (N)
  slope_N.mm    = force needed to bend (N/mm)
  machineArm_cm = the length of the branch undergoing loading 
  ID            = unqiue tree ID
  MOR_MPa       = Modulus or Rupture (MPa) per branch, derived from diam_cm, Fmax_N and machineArm_cm
  MOE_MPa       = Modulus or Elasticity (MPa) per branch, derived from diam_cm, slope_N.mm and machineArm_cm
  arm_vs_diam   = a check to see if the machineArm_cm follows L=R×20+2,
  meanMOR_MPa   = Modulus or Rupture (MPa) branches averaged per tree
  meanMOE_MPa   = Modulus or Elasticity (MPa) branches averaged per tree

- dfleaf.csv
  mangrove leaf properties, listed as average per tree (~5 leaves were sampled per tree)
  species     = tree species
  site        = sampling site (sites.csv)
  tree        = tree number, matches with trees in treelocations.csv
  ID          = unqiue tree ID
  Fmax_N      = maximum force that pulled leaf of the tree (N)
  area_cm2    = surface area of the leaf (cm^2)
  dryweight_g = dryweight of the leaves (g)
  lma_gcm2    = Leaf Mass Per Area (g/cm^2), derived from area_cm2 and dryweight_g 

- dfdrag.csv
  measurements of drag force and derived drag coeffients for mangrove branches of different species 
  (branches are not the same as in dfbranch.csv)
  photo    = photo number taken to measure branch surface area
  test     = test type, PW = wave only, PC = current only, CW15 = current + wave 
  testname = used for plotting to group testtype and photo
  testrun  = which testrun, tests were all performed twice
  Cd       = drag coefficient
  Fmax     = maximum drag force measured
  diam_cm  = branch diameter (cm) measured at base of branch
  species  = tree species
  leaves   = did the branches have leaves?
  A_m2     = projected surface area (m^2)
  meanDrag = drag force per testname (averaging testruns)
  meanCd   = drag coefficient per testname (averaging testruns)
  
- dfarchitecture.csv 
  (branches are not the same as in dfbranch.csv)
  site        = sampling site (sites.csv)
  species     = tree species
  tree        = tree number
  branchorder = hierarchical level of branch, where stem = 1, 2 branches of 1, 2 of 3, etc. highest nr = final twig
  diam_cm     = branch diameter (cm)

- dfbranchdimensions.csv
  species     = tree species
  leaves      = did the branches have leaves?
  diameter_cm = branch diameter at base (cm)
  length_cm   = maximum length of branch (cm)
  area_cm2    = projected surface area of branch (cm^2)
  area_m2     = maximum length of branch (m)
  length_m    = projected surface area of branch (m^2)

- dfModelledDimensions.csv
  estimation of length and surface area of a branch with/without leaves per species
  based on data in dfbranchdimensions.csv

### R SCRIPTS
- fun.R
  helper functions 

- FIGURE_branchproperties
  Figure 2: Branch mechanical properties of five mangrove species
  --> dfbranch.csv

- FIGURE_leafproperties
Figure 3: Leaf properties of five mangrove species
  --> dfleaf.csv

- FIGURE_branchleaf.R
Figure 4: Relationship between absolute branch breaking strength and absolute leaf detachment strength
  --> dfbranch.csv
  --> dfleaf.csv

- FIGURE_propertiesPerSite.R
Figure 5: Modulus of Rupture MOR and leaf strength Fpull across sites per species
  --> dfbranch.csv
  --> dfleaf.csv

- FIGURE_drag
Figure 6: Drag force and coefficient per species
  --> dfdrag.csv

- FIGURE_estimatedDrag
Figure 7: Estimations of drag force experienced by branches of 1 cm in diameter
  --> dfbranch.csv
  --> dfleaf.csv
  --> dfdrag.csv
  --> dfModelledDimensions.csv

- FIGURE_branchDimensions.R
Supplemental Figures
  --> dfbranchdimensions.csv