Set the "time.unit" attribute of an existing source_spct object
Function to set by reference the "time.unit" attribute
setTimeUnit( x, time.unit = c("second", "hour", "day", "exposure", "none"), override.ok = FALSE )
x |
a source_spct object |
time.unit |
character string indicating the time unit used for spectral irradiance or exposure ("second" , "day" or "exposure") or an object of class duration as defined in package lubridate. |
override.ok |
logical Flag that can be used to silence warning when overwriting an existing attribute value (used internally) |
x
This function alters x itself by reference and in addition
returns x invisibly. If x is not a source_spct or response_spct object, x is not modified.
The behaviour of this function is 'unusual' in that the default for
parameter time.unit
is used only if x
does not already have
this attribute set. time.unit = "hour"
is currently not fully
supported.
Other time attribute functions:
checkTimeUnit()
,
convertTfrType()
,
convertThickness()
,
convertTimeUnit()
,
getTimeUnit()
my.spct <- sun.spct setTimeUnit(my.spct, time.unit = "second") setTimeUnit(my.spct, time.unit = lubridate::duration(1, "seconds"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.