weather

class weather.weather(epw_path='/home/docs/checkouts/readthedocs.org/user_builds/besos/envs/latest/lib/python3.7/site-packages/besos/data/example_epw.epw')[source]

To modify and create epw files by manually editing and producing new epws.

Initializing epw object

Parameters:epw_path – Path to epw file to import as object
get_col_bounds(cols, time_params=None)[source]

Gets the minimum and maximum of each column passed in

Parameters:
  • cols – list containing names of the columns
  • time_params – Dictionary containing time parameters for where the samples should be inputted, (ex. time_params = {‘Year’:’2002’,’Month’:’8’})
Returns:

Dataframe containing each rows minimum and maximum, or none if time_params had no rows meeting parameters

get_rows(time_params)[source]

returns row indexes that meet the time parameters passed in

Parameters:time_params – Dictionary containing parameters that have to be met (ex. {‘Month’:[‘1’,’2’,’3’]})
Returns:indexes where parameters are met
save_epw(output_path)[source]

Saves epw object as output_path, which then can be run in EnergyPlus

Parameters:output_path – String of where to save epw file (should end in .epw)