solarforecastarbiter.io.reference_observations.common

Functions

apply_json_site_parameters(json_sitefile, site) Updates site metadata with modeling parameters found in a json file.
check_and_post_observation(api, observation)
check_network(networks, metadata) Decodes extra_parameters and checks if an object is in the network.
clean_name(string) Removes all disallowed characters from a string and converts underscores to spaces.
create_forecasts(api, site, variables, templates) Create Forecast objects (NWP based and persistence) for each of variables.
create_nwp_forecasts(api, site, variables, …) Create Forecast objects for each of variables, if NWP forecasts can be made for that variable.
create_observation(api, site, variable[, …]) Creates a new Observation for the variable and site.
create_one_forecast(api, site, …[, …]) Creates a new Forecast or ProbabilisticForecast for the variable and site based on the template forecast.
create_persistence_forecasts(api, site, …) Create persistence Forecast objects for each Observation at the site with variable in variables.
decode_extra_parameters(metadata) Returns a dictionary parsed from the json string stored in extra_parameters
filter_by_networks(object_list, networks) Returns a copy of object_list with all objects that are not in the network removed.
get_last_site_timestamp(api, observations, end) Get the last value timestamp from the API as the minimum of the last timestamp for each observation at that site.
post_observation_data(api, observation, …) Posts data to an observation between start and end.
site_name_no_network(site) Removes the prefixed network from a site name for prepending to an observation, unless the network name and the site name are the same.
update_site_observations(api, fetch_func, …) Updates data for all reference observations at a given site for the period between start and end.