Skip to contents

A data frame containing synthetic environmental data over a full year (365 days) with seasonal patterns and random variation. This dataset demonstrates the expected format for environmental forcing data used in the macroalgae growth model.

Usage

env

Format

A data frame with 365 rows and 8 columns:

t

Time step (day of year)

temperature

Water temperature (°C)

light

Surface light availability (μmol photons m-2 s-1)

kW

Light attenuation coefficient in water (m-1)

velocity

Mean water velocity (m s-1)

salinity

Salinity (g L-1)

nitrate

Nitrate concentration (mg m-3)

ammonium

Ammonium concentration (mg m-3)

Details

The environmental data includes:

  • Seasonal temperature variation (15°C ± 3.5°C with random noise)

  • Light availability with seasonal patterns

  • Seasonal variation in light attenuation coefficient

  • Seasonal variation in water velocity

  • Salinity variation around 35 g/L

  • Nitrogen concentrations (nitrate and ammonium) with seasonal patterns

All variables include random variation to simulate natural environmental conditions.

See also

grow_macroalgae() for using this data in growth simulations.

Examples

# View structure of environmental data
str(env)
#> 'data.frame':	365 obs. of  8 variables:
#>  $ t          : int  1 2 3 4 5 6 7 8 9 10 ...
#>  $ temperature: num  15 16.2 15.5 15 16.6 ...
#>  $ light      : num  645 655 797 595 778 ...
#>  $ kW         : num  0.0769 0.0742 0.0732 0.0726 0.0765 ...
#>  $ velocity   : num  0.175 0.181 0.216 0.164 0.159 ...
#>  $ salinity   : num  34.6 35 34.5 35.4 34.7 ...
#>  $ nitrate    : num  79.7 64.2 48.3 72.3 58.6 ...
#>  $ ammonium   : num  20.8 19.2 16.6 18.4 19.2 ...

# Plot temperature over time
plot(env$t, env$temperature, type = "l", 
     xlab = "Day of year", ylab = "Temperature (°C)")


# Summary of all environmental variables
summary(env)
#>        t        temperature         light              kW         
#>  Min.   :  1   Min.   : 9.599   Min.   : 253.0   Min.   :0.02028  
#>  1st Qu.: 92   1st Qu.:13.895   1st Qu.: 587.9   1st Qu.:0.03764  
#>  Median :183   Median :16.239   Median : 758.4   Median :0.05452  
#>  Mean   :183   Mean   :16.437   Mean   : 761.2   Mean   :0.05452  
#>  3rd Qu.:274   3rd Qu.:18.963   3rd Qu.: 927.6   3rd Qu.:0.07224  
#>  Max.   :365   Max.   :23.974   Max.   :1316.1   Max.   :0.08800  
#>     velocity         salinity        nitrate           ammonium     
#>  Min.   :0.0223   Min.   :32.95   Min.   :  5.029   Min.   : 6.153  
#>  1st Qu.:0.1869   1st Qu.:34.39   1st Qu.: 42.015   1st Qu.:11.687  
#>  Median :0.2478   Median :34.94   Median : 60.661   Median :14.830  
#>  Mean   :0.2501   Mean   :35.00   Mean   : 59.925   Mean   :14.975  
#>  3rd Qu.:0.3108   3rd Qu.:35.62   3rd Qu.: 77.286   3rd Qu.:18.411  
#>  Max.   :0.4758   Max.   :37.35   Max.   :105.403   Max.   :25.011