create_PSD: Create particle size distribution

Description Usage Arguments Value Examples

View source: R/size_distribution.R

Description

Create particle size distribution

Usage

1
create_PSD(db, vct.dir, breaks, quantile = 50)

Arguments

db

SQLite3 database file path.

vct.dir

VCT file directory..

breaks

Breaks must be a vector of values defining the breaks for the size distribution.

quantile

OPP Filtering quantile.

Value

Size distribution

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 
breaks <- # for Qc
min <- 0.003 # minimum quotas (3 fgC / cell)
delta <- 1/18 # to define the width of each bin
m <- 300 # number of bins
breaks <- round(min*2^(((1:m)-1)*delta),4) # log2 space bin
print(breaks)

distribution <- create_PSD(db, vct.dir, breaks, quantile = 50)

## End(Not run)

armbrustlab/ssPopModel documentation built on Sept. 22, 2021, 1:25 p.m.