Reflective accessor that walks every slot of an S4 model object (except
misc) and gathers the names in any weather column. A technology,
storage or supply links to a weather profile by name; the profile itself
is a separate weather object in the repository.
See also
Other model:
find_in_model(),
get_region(),
update,model-method
Examples
# the weather series a process is linked to, read from its own slots
topia_elc <- topia$modules$electricity
get_weather(getObject(topia_elc$repo, name = "EWIN", drop = TRUE))
#> [1] "WWIN"
# a process with no weather link reports none
get_weather(getObject(topia_elc$repo, name = "ECOA", drop = TRUE))
#> character(0)
