예제 #1
0
def plots(data, curr_yr, fuel_disagg, config):
    """
    """
    # Spatial validation
    if (config['CRITERIA']['validation_criteria']
            == True) and (curr_yr == data['assumptions'].base_yr) and (
                config['CRITERIA']['cluster_calc'] != True):
        lad_validation.spatial_validation_lad_level(fuel_disagg,
                                                    data['result_paths'],
                                                    data['paths'],
                                                    data['regions'],
                                                    data['reg_coord'],
                                                    plot_crit=False)

    # Plot map with weather station
    if config['CRITERIA']['cluster_calc'] != True:
        data_loader.create_weather_station_map(
            data['weather_stations'],
            os.path.join(
                data['result_path'], 'weatherst_distr_weathyr_{}.pdf'.format(
                    config['CONFIG']['weather_yr_scenario'])),
            path_shapefile=config['DATA_PATHS']['lad_shapefile'])
예제 #2
0
    for region in data['regions']:
        regional_vars[region]['annual_tech_diff_params'] = annual_tech_diff_params[region]

    data['assumptions'].update('regional_vars', regional_vars)
    data['assumptions'].update('non_regional_vars', non_regional_vars)

    # ------------------------------------------------
    # Spatial Validation
    # ------------------------------------------------
    print("AA " + str(data['result_paths']['data_results_validation']))

    if config['CRITERIA']['validation_criteria'] == True and config['CRITERIA']['cluster_calc'] != True:
        lad_validation.spatial_validation_lad_level(
            data['fuel_disagg'],
            data['result_paths']['data_results_validation'],
            data['paths'],
            data['regions'],
            data['reg_coord'],
            config['CRITERIA']['plot_crit'])

    # -----------------------------------
    # Only selection of regions to simulate
    # -------------------------------------
    if config['CRITERIA']['reg_selection']:
        region_selection = read_data.get_region_selection(
            os.path.join(
                data['local_paths']['local_path_datafolder'],
                "region_definitions",
                config['CRITERIA']['reg_selection_csv_name']))
        #region_selection = ['E02003237', 'E02003238']