depth_to_layer: Convert mean_depth from ECOHAM output to ATLANTIS layer id.

Description Usage Arguments Value Examples

Description

Convert mean_depth from ECOHAM output to ATLANTIS layer id.

Usage

1
2
depth_to_layer(poly_depth = ecocat::poly_depth_df,
  nominal_dz = ecocat::nominal_dz_df)

Arguments

poly_depth

dataframe Unique combinations of ATLANTIS polygons and ECOHAM depth layers. Layer assignment does not work in case the true mininum depth is not present. See poly_depth_df for further details.

nominal_dz

dataframe Tidy dataframe with columns polygon, layer, max_nominal_dz. See nominal_dz_df for further details.

Value

Dataframe.

Examples

1
2
3
poly_depth <- ecocat::poly_depth_df
nominal_dz <- ecocat::nominal_dz_df
head(depth_to_layer(poly_depth, nominal_dz))

alketh/ecocat documentation built on May 10, 2019, 9:20 a.m.