Description Usage Arguments Details Author(s) References See Also Examples
View source: R/simu.star.app.R
This is a version of simu.star function that only works with the output of 'Ahmes' 1.0. simu.star.app() re-calculates the percentage of potential exposure of flat, tilted surfaces to direct solar radiation with different custom settings of location and time.
1 2 3 |
x |
Output of 'Ahmes' 1.0. A .csv file. |
lat |
A vector with the latitude of each observation in decimal format. If all observations correspond to the same latitude, |
long |
A vector with the longitude of each observation in decimal format. If all observations correspond to the same longitude, |
tz |
A vector with the time zone of each observation. If all observations correspond to the same time zone, |
o.format |
A character indicating the date format in the input data. It is similar to the argument |
c.hour |
A vector of custom hours of length equal to or greater than 1. Hours in decimal format, from 0 to 24. Minutes in decimal format, from 0 to 99. E.g., 12:30 should be written as 12.50. If available, seconds should also be specified in decimal format. See |
c.date |
A vector of custom dates of length equal to or greater than 1. |
c.long |
A vector of custom longitude coordinates in decimal format. |
c.lat |
A vector of custom latitude coordinates in decimal format. |
c.tz |
A vector of custom time zone/s. Time zones located at the West of Greenwich are negative; e.g., for Colombia, |
LA |
Indicates whether leaf area data needs to be replicated to match the dimensions of the dataframe corresponding to the custom factors (see 'custom settings' in Details). When |
details |
Logical. If ( |
This function calls fixfile internally before calculating STAR. However, it does not modify the original dataset. To have a permanent fixed version of the data, use new.file<-fixfile(your.data). If using new.file within the package, be aware that the argument Ahmes should be set to FALSE.
o.format Needs to be specified if Ahmes = FALSE AND input data format is other than Julian or the default formats handled by as.Date{base} ("%Y/%m/%d" and "%Y-%m-%d"). When Ahmes = TRUE, o.format is not needed because functions of the Ahmes family solve date issues internally.
Custom settings. In the functions of the simu family, the original dataframe is repeated as a block times the number of levels of the custom arguments specified (c.hour, c.date, c.lat, c.long, and c.tz). E.g., if a dataset with 10 observations is to be recalculated at two days of the year, the function will create a new dataframe with 20 rows (10 observation X 2 days). For this reason, LA needs to be specified if the user intends to calculate SAL using the output of simu.star. In addition, the argument details allows the user to visualize the new dataframe created by the function.
Agustina Ventre-Lespiaucq and Silvia Santamaria Bueno.
Escribano-Rocafort, A.G., Ventre-Lespiaucq, A.B., Granado-Yela, C., Lopez-Pintor, A., Delgado, J.A., Munoz, V., Dorado, G.A., Balaguer, L. (2014). Simplifying data acquisition in plant canopies- Measurements of leaf angles with a cell phone. Methods in Ecology and Evolution 5:132-140. doi:10.1111/2041-210X.12141.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.