tuv_batch | R Documentation |
This function runs TUV in batch online by reading the time series for the
parameters to be entered, and summarizes the results to the new dataframe.
tuv_batch(df, inputMode = 0, outputMode = 2, nStreams = -2)
df |
Dataframe of time series of parameters. The first column of df should be datetime. The other columns (names) could be set as following: |
inputMode |
The default value is 0. InputMode 0: User-specified geographic location and time/date. The code computes the appropriate solar zenith angle and Earth-Sun distance. InputMode 1: User specifies the solar zenith angle, and the annual average Earth-Sun distance is used. To avoid inconsistencies (e.g. overhead sun at the poles), options 1 and 2 cannot be invoked at the same time. |
outputMode |
The default value is 2. OutputMode 2: Molecular photolysis frequencies (109 photoreactions). OutputMode 3: Weighted irradiance (27 weighting functions). OutputMode 4: Spectral actinic flux. OutputMode 5: Spectral irradiance. |
nStreams |
The default value is -2. NStreams -2: Pseudo-spherical 2 streams (faster, less accurate). NStreams 4: Pseudo-spherical discrete ordinate 4 streams (slower, more accurate). |
a dataframe. The contents of dataframe are diterminated by OutputMode.
OutputMode 2: Molecular photolysis frequencies (109 photoreactions).
OutputMode 3: Weighted irradiance (27 weighting functions).
OutputMode 4: Spectral actinic flux.
OutputMode 5: Spectral irradiance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.