thermopic_report: Thermopic Report

Description Usage Arguments Value

View source: R/report.R

Description

Thermopic Report

Usage

1
2
3
4
thermopic_report(path, STM_Parameters,
  ThermalSpace4D = "5_ThermalSpace4D.csv",
  Options = "0_User_Options.csv", TP_plots, TP_interval, TP_format,
  TP_folder, Nlakes_test, show_progress_bar = FALSE)

Arguments

path

Character string containing the path to the root of a thermopic project

STM_Parameters

A data.frame or csv file with schema defined in section C5 of the ThermoPic Guide under the 4_STM_Parameters.csv sub-heading. This data set can be found in the STM element of the output of thermopic_model.

ThermalSpace4D

The name of an output csv file with schema defined in section C5 of the ThermoPic Guide under the 5_ThermoSpace4D sub-heading.

Options

An optional data.frame or csv file with schema defined in section C4 of the ThermoPic Guide under the 0_User_Options.csv sub-heading. It is typically easier to specify these options via the following arguments: TP_plots, TP_interval, TP_format, TP_folder, Nlakes_test.

TP_plots

(Yes or No) indicates whether ThermoPic plots will be produced when running P2_Report. Production of plots for individual lakes can also be controlled by editing the ‘4_STM_Parameters’file in DataOut (after running P2_Model). By default, “Do_ThermoPic = TRUE” for all records in ‘4_STM_Parameters’. Setting “Do_ThermoPic” = FALSE will prevent plot production for that case.

TP_interval

Specifies the temperature interval used when calculating thermal space. The Default value is 4 C, which reports results for the following temperature ranges: 8-12, 12-16, 16-20, 20-24, 24-30. Acceptable values of TP_Interval are 1, 2, 3 and 4. ThermoPic plotting works best when TP_Interval = 3 or 4, because the plot routine has been designed to show the first 6 temperature bands, starting from 8 C When TP_Interval = 1 or 2, the maximum temperatures shown are 14 and 20, respectively. These plots are not very useful and can be suppressed by setting TP_plots = “No”. The setting of “TP_plots” has no effect on the production of the report file (e.g. 5_ThermalSpace_xD.csv). The program will always produce a report with thermal habitat statistics. The default TP_Interval (4 C) produces a file whose name ends with the suffix “4D”. If other intervals are chosen, this suffix changes accordingly (e.g., “3D” implies a 3 degree temperature interval).

TP_format

Specifies the file type for ThermoPic graphs. Acceptable values are ‘JPEG’ or ‘TIFF’.

TP_folder

Specifies the sub-folder where ThermPic graphs will be stored.

Nlakes_test

Allows users to test the P2_Report code by processing a small number of lakes, before running the program on all lakes. If Nlakes_test = 0, all lakes in the ‘1_Lake.csv’ will be processed. Otherwise, the value of Nlakes_test specifies how many lakes will be processed.

show_progress_bar

Should progress bar be displayed to show percentage of lakes analyzed? Note that this should be FALSE unless running in interactive mode at a console.

Value

Data frame containing the ThermalSpace4D table described in section C5 of the ThermoPic Guide. This table contains estimates of thermal space (volume and area) for various temperature ranges.


stevencarlislewalker/thermopic documentation built on March 10, 2020, 8:31 p.m.