generate_gdd_output: Generates accumulated GDD output rasters

Description Usage Arguments

View source: R/generate_output_gdd.R

Description

A GDD raster is made for each day from daily average temperature rasters and a base temperature level. The GDD is accumulated everyday, and written out at a specified time slice. Usually, GDD is insiginficant outside of the growing season months. They can be excluded with growing_season = TRUE.

Usage

1
2
3
generate_gdd_output(daily_average_rasters_df, gdd_base, start_date, end_date,
  output_timeframe, growing_season = TRUE, output_folder,
  output_format = "GTiff", plot_gdd_raster = FALSE)

Arguments

daily_average_rasters_df

The output of using make_temporal_rasters_df on the generated daily averages

gdd_base

The base level of development for GDD equation

start_date

The starting date to include in GDD calculations

end_date

The last date to include in GDD calculations

output_timeframe

The time slice of GDD rasters that will be outputted. With "daily", all daily GDDs rasters are written; "weekly", a GDD raster is written every sunday; "monthly" a GDD raster is written on the last day of each month, "yearly" a GDD raster is written on the the last day for each year

growing_season

If TRUE, only months april - november will be included if FALSE, no restriction on months will be applied

output_format

Default is set to "GTiff", see ?writeFormat for more options

plot_gdd_raster

If TRUE, GDD rasters about to written out will be plotted in the Plots pane. If the pane is too small, an error will cause the script to stop running.


danamelamed/swnsmodelr documentation built on Aug. 27, 2018, 5:07 p.m.