Module Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpBitAnd BinOpBitAnd BinOpBitAnd CompareGtE NameLoad NameLoad CompareLtE NameLoad NameLoad CompareGtE NameLoad NameLoad CompareLtE NameLoad NameLoad Slice Num Num Return SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num Slice Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpPow BinOpSub NameLoad NameLoad Num BinOpPow BinOpSub NameLoad NameLoad Num Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Num Return SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num decorator_list If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Print BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str Expr Str Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Print BinOpAdd SubscriptLoad NameLoad Index Str BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str Print BinOpAdd SubscriptLoad NameLoad Index Str BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str Print BinOpAdd BinOpAdd BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str SubscriptLoad NameLoad Index Str BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Str Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Str Print Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Print BinOpAdd SubscriptLoad NameLoad Index NameLoad Str If CompareEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str Expr Str Print Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword BinOpAdd BinOpAdd NameLoad Str SubscriptLoad NameLoad Index NameLoad Print Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Num NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpAdd Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index UnaryOpInvert AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Num NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Num NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Num NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Num NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Num NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str
N/A N/A datetime N/A yaml N/A os N/A sys N/A xlwt N/A numpy np N/A numpy.ma ma N/A ocw.data_source.local local N/A ocw.dataset ds N/A ocw.dataset_processor dsp N/A ocw.statistical_downscaling down N/A ocw.plotter plotter N/A ssl spatial_aggregation N/A N/A target_dataset lon_min lon_max lat_min lat_max N/A N/A N/A  Spatially subset a dataset within the given longitude and latitude boundaryd_lon-grid_space, grid_lon+grid_space
    :param target_dataset: Dataset object that needs spatial subsetting
    :type target_dataset: Open Climate Workbench Dataset Object
    :param lon_min: minimum longitude (western boundary)
    :type lon_min: float
    :param lon_max: maximum longitude (eastern boundary)
    :type lon_min: float
    :param lat_min: minimum latitude (southern boundary) 
    :type lat_min: float
    :param lat_min: maximum latitude (northern boundary) 
    :type lat_min: float
    :returns: A new spatially subset Dataset
    :rtype: Open Climate Workbench Dataset Object
     N/A N/A N/A N/A N/A target_dataset lons ndim 1 N/A N/A N/A target_dataset lats ndim 1 N/A N/A N/A new_lon new_lat N/A N/A np meshgrid N/A target_dataset lons N/A target_dataset lats N/A N/A N/A N/A N/A N/A target_dataset lons ndim 2 N/A N/A N/A target_dataset lats ndim 2 N/A N/A new_lon N/A target_datasets lons N/A new_lat N/A target_datasets lats N/A N/A y_index x_index N/A N/A N/A np where N/A N/A N/A N/A new_lon lon_min N/A new_lon lon_max N/A new_lat lat_min N/A new_lat lat_max N/A 0 2 N/A N/A N/A target_dataset values N/A N/A N/A N/A N/A y_index min N/A N/A N/A y_index max 1 N/A N/A N/A x_index min N/A N/A N/A x_index max 1 N/A extract_data_at_nearest_grid_point N/A N/A target_dataset longitude latitude N/A N/A N/A  Spatially subset a dataset within the given longitude and latitude boundaryd_lon-grid_space, grid_lon+grid_space
    :param target_dataset: Dataset object that needs spatial subsetting
    :type target_dataset: Open Climate Workbench Dataset Object
    :type longitude: float
    :param longitude: longitude
    :type latitude: float
    :param latitude: latitude 
    :returns: A new spatially subset Dataset
    :rtype: Open Climate Workbench Dataset Object
     N/A N/A N/A N/A N/A target_dataset lons ndim 1 N/A N/A N/A target_dataset lats ndim 1 N/A N/A N/A new_lon new_lat N/A N/A np meshgrid N/A target_dataset lons N/A target_dataset lats N/A N/A N/A N/A N/A N/A target_dataset lons ndim 2 N/A N/A N/A target_dataset lats ndim 2 N/A N/A new_lon N/A target_datasets lons N/A new_lat N/A target_datasets lats N/A distance N/A N/A N/A new_lon longitude 2.0 N/A N/A new_lat latitude 2.0 N/A N/A y_index x_index N/A N/A N/A np where N/A distance N/A N/A np min distance N/A 0 2 N/A N/A N/A target_dataset values N/A N/A N/A N/A y_index N/A 0 N/A N/A x_index N/A 0 N/A N/A N/A hasattr ssl _create_unverified_context N/A N/A N/A ssl _create_default_https_context N/A ssl _create_unverified_context N/A config_file N/A str N/A N/A sys argv N/A 1 N/A Reading the configuration file  config_file N/A config N/A N/A yaml load N/A open config_file N/A case_name N/A config N/A case_name N/A downscale_option_names N/A delta_addition delta_correction quantile_mapping asynchronous_regression N/A DOWNSCALE_OPTION N/A config N/A downscaling_option N/A location N/A config N/A location N/A grid_lat N/A location N/A grid_lat N/A grid_lon N/A location N/A grid_lon N/A month_index N/A config N/A month_index N/A month_start N/A month_index N/A 0 N/A month_end N/A month_index N/A -1 N/A ref_info N/A config N/A reference N/A model_info N/A config N/A model N/A OUTPUT N/A %s_%s_%s_%s_%s N/A N/A location N/A name N/A ref_info N/A variable N/A model_info N/A data_name N/A ref_info N/A data_name N/A N/A model_info N/A future N/A scenario_name N/A N/A N/A Processing  N/A ref_info N/A data_name   data N/A  Step 1: Load Local NetCDF Files into OCW Dataset Objects  N/A N/A Loading %s into an OCW Dataset Object N/A N/A ref_info N/A path N/A ref_dataset N/A N/A local load_file N/A ref_info N/A path N/A ref_info N/A variable N/A N/A N/A ref_info N/A data_name N/A  values shape: (times, lats, lons) - %s 
 N/A N/A N/A ref_dataset values shape N/A N/A Loading %s into an OCW Dataset Object N/A N/A N/A model_info N/A present N/A path N/A model_dataset_present N/A N/A local load_file N/A N/A model_info N/A present N/A path N/A model_info N/A variable N/A N/A N/A model_info N/A data_name N/A  values shape: (times, lats, lons) - %s 
 N/A N/A N/A model_dataset_present values shape N/A dy N/A N/A N/A model_dataset_present spatial_resolution N/A 0 N/A dx N/A N/A N/A model_dataset_present spatial_resolution N/A 1 N/A model_dataset_future N/A N/A local load_file N/A N/A model_info N/A future N/A path N/A model_info N/A variable N/A N/A N/A N/A N/A N/A model_info N/A future N/A scenario_name : N/A model_info N/A data_name N/A  values shape: (times, lats, lons) - %s 
 N/A N/A N/A model_dataset_future values shape N/A  Step 2: Temporal subsetting  N/A Temporal subsetting for the selected month(s) N/A ref_temporal_subset N/A N/A dsp temporal_subset month_start month_end ref_dataset N/A model_temporal_subset_present N/A N/A dsp temporal_subset month_start month_end model_dataset_present N/A model_temporal_subset_future N/A N/A dsp temporal_subset month_start month_end model_dataset_future N/A  Step 3: Spatial aggregation of observational data into the model grid  N/A N/A Spatial aggregation of observational data near latitude %0.2f and longitude %0.2f  N/A grid_lat grid_lon N/A ref_subset N/A extract_data_at_nearest_grid_point ref_temporal_subset grid_lon grid_lat N/A model_subset_present N/A extract_data_at_nearest_grid_point model_temporal_subset_present grid_lon grid_lat N/A model_subset_future N/A extract_data_at_nearest_grid_point model_temporal_subset_future grid_lon grid_lat N/A  Step 4:  Create a statistical downscaling object and downscaling model output  N/A Creating a statistical downscaling object N/A downscale N/A N/A down Downscaling ref_subset model_subset_present model_subset_future N/A N/A N/A downscale_option_names N/A DOWNSCALE_OPTION : Downscaling model output N/A N/A DOWNSCALE_OPTION 1 N/A N/A N/A downscaled_model_present downscaled_model_future N/A N/A downscale Delta_addition N/A N/A N/A DOWNSCALE_OPTION 2 N/A N/A N/A downscaled_model_present downscaled_model_future N/A N/A downscale Delta_correction N/A N/A N/A DOWNSCALE_OPTION 3 N/A N/A N/A downscaled_model_present downscaled_model_future N/A N/A downscale Quantile_mapping N/A N/A N/A DOWNSCALE_OPTION 4 N/A N/A N/A downscaled_model_present downscaled_model_future N/A N/A downscale Asynchronous_regression N/A N/A N/A N/A sys exit DOWNSCALE_OPTION must be an integer between 1 and 4 N/A  Step 5: Create plots and spreadsheet  N/A Plotting results N/A N/A N/A N/A N/A os path exists case_name N/A N/A N/A N/A os system N/A mkdir  case_name N/A N/A N/A os chdir N/A N/A N/A N/A os getcwd / case_name N/A N/A N/A plotter draw_marker_on_map grid_lat grid_lon fname downscaling_location location_name N/A N/A config N/A location N/A name N/A N/A N/A plotter draw_histogram N/A N/A N/A ref_subset ravel N/A N/A model_subset_present ravel N/A N/A model_subset_future ravel data_names N/A N/A ref_info N/A data_name N/A model_info N/A data_name N/A N/A model_info N/A future N/A scenario_name fname N/A OUTPUT _original N/A N/A N/A plotter draw_histogram N/A N/A N/A ref_subset ravel downscaled_model_present downscaled_model_future data_names N/A N/A ref_info N/A data_name N/A model_info N/A data_name N/A N/A model_info N/A future N/A scenario_name fname N/A N/A OUTPUT _downscaled_using_ N/A downscale_option_names N/A DOWNSCALE_OPTION N/A Generating spreadsheet N/A workbook N/A N/A xlwt Workbook N/A sheet N/A N/A workbook add_sheet N/A downscale_option_names N/A N/A config N/A downscaling_option N/A N/A N/A sheet write 0 0 N/A N/A config N/A location N/A name N/A N/A N/A sheet write 0 2 longitude N/A N/A N/A sheet write 0 4 latitude N/A N/A N/A sheet write 0 6 month N/A N/A N/A sheet write 0 3 grid_lon N/A N/A N/A sheet write 0 5 grid_lat N/A N/A imonth month N/A enumerate month_index N/A N/A N/A N/A sheet write 0 N/A 7 imonth month N/A N/A N/A sheet write 3 1 observation N/A N/A N/A sheet write 4 1 N/A ref_info N/A data_name N/A N/A idata data N/A enumerate N/A N/A N/A ref_subset ravel N/A N/A N/A N/A N/A ref_subset ravel mask N/A N/A N/A N/A sheet write N/A 5 idata 1 N/A N/A data item N/A N/A N/A sheet write 3 2 original N/A N/A N/A sheet write 4 2 N/A model_info N/A data_name N/A N/A idata data N/A enumerate N/A N/A model_subset_present ravel N/A N/A N/A N/A sheet write N/A 5 idata 2 N/A N/A data item N/A N/A N/A sheet write 3 3 original N/A N/A N/A sheet write 4 3 N/A N/A model_info N/A future N/A scenario_name N/A N/A idata data N/A enumerate N/A N/A model_subset_future ravel N/A N/A N/A N/A sheet write N/A 5 idata 3 N/A N/A data item N/A N/A N/A sheet write 3 4 downscaled N/A N/A N/A sheet write 4 4 N/A model_info N/A data_name N/A N/A idata data N/A enumerate downscaled_model_present N/A N/A N/A N/A sheet write N/A 5 idata 4 N/A N/A data item N/A N/A N/A sheet write 3 5 downscaled N/A N/A N/A sheet write 4 5 N/A N/A model_info N/A future N/A scenario_name N/A N/A idata data N/A enumerate downscaled_model_future N/A N/A N/A N/A sheet write N/A 5 idata 5 N/A N/A data item N/A N/A N/A workbook save N/A OUTPUT .xls