Example #1
0
 def load_duration_curve(self, category):
     title = "Load Duration Curve" + self.plot_title_tail
     output_path = self.locator.get_timeseries_plots_file(
         self.plot_output_path_header + '_load_duration_curve', category)
     analysis_fields = [
         "E_sys_kWh", "Qhs_sys_kWh", "Qww_sys_kWh", "Qcs_sys_kWh",
         'Qcdata_sys_kWh', 'Qcre_sys_kWh'
     ]
     data = self.data_processed['hourly_loads'].copy()
     plot = load_duration_curve(data, analysis_fields, title, output_path)
     return plot
Example #2
0
 def load_duration_curve_final(self, category):
     title = "Load Duration Curve" + self.plot_title_tail
     output_path = self.locator.get_timeseries_plots_file(
         self.plot_output_path_header + '_load_duration_curve_supply',
         category)
     analysis_fields = [
         "DH_hs_kWh", "DH_ww_kWh", 'SOLAR_ww_kWh', 'SOLAR_hs_kWh',
         "DC_cs_kWh", 'DC_cdata_kWh', 'DC_cre_kWh', 'GRID_kWh', 'PV_kWh',
         'NG_hs_kWh', 'COAL_hs_kWh', 'OIL_hs_kWh', 'WOOD_hs_kWh',
         'NG_ww_kWh', 'COAL_ww_kWh', 'OIL_ww_kWh', 'WOOD_ww_kWh'
     ]
     data = self.data_processed['hourly_loads'].copy()
     analysis_fields = self.erase_zeros(data, analysis_fields)
     plot = load_duration_curve(data, analysis_fields, title, output_path)
     return plot