View source: R/gen_lookup_subsidy_par_win_mac_cluster.R
gen_lookup_subsidy_par_win_mac_cluster | R Documentation |
This function is the parallelized version of the gen_lookup_subsidy function.
gen_lookup_subsidy_par_win_mac_cluster(
subsidy_amount = 1,
subsidy_threshold = 1,
DSSAT_files = "./input_files/DSSAT_files",
maximum_well_capacity = 1000,
well_capacity_intervals = 10,
price_file = "./input_files/crop_prices.csv",
fixed_cost_file = "./input_files/fixed_cost_input.csv",
pumping_cost = 3.21,
default_well_capacity_col_name = "Well_Capacity(gpm)",
soil_moisture_targets = c(25, 35, 45, 55, 65, 75),
IFREQ_seq = 2,
IFREQ_interpolate = 0.1,
num_clusters = 6
)
subsidy_amount |
is the amount of subsidy per acre-inch of groundwater extracted. Defaults to 1. |
subsidy_threshold |
is the threshold of subsidy, i.e., the amount of groundwater extraction above which subsidy is zero. Defaults to 400. |
DSSAT_files |
is the directory where DSSAT files are located. Defaults to "C:/Users/manirad/Dropbox/DSSAT subregions work pre-2018 annual meeting/subregion KS files/outputs_for_econ/revised". |
price_file |
is the file that includes crop prices. Defaults to "C:/Users/manirad/Dropbox/DSSAT subregions work pre-2018 annual meeting/subregion KS files/crop_prices.csv". |
fixed_cost_file |
is the file tha includes fixed costs (per acre) costs of production. Defaults to "C:/Users/manirad/Downloads/test/fixed_cost_input.csv". |
pumping_cost |
is the cost of pumping an acre-inch of groundwater excluding taxes. Defaults to 3.56 which is the cost of pumpin an acre-inch of groundwater in parts of Kansas. |
default_well_capacity_col_name |
is the name of the well capacity column generated from the MODFLOW model. Defaults to 'Well_Capacity(gpm)' as this is the original column name we started with. |
soil_moisture_targets |
is the vector of soil moisture targets that are generated by the DSSAT model. (25, 35, 45, 55, 65, 75). |
IFREQ_seq |
is the difference between two consequtive irrigation frequencies (IFREQ) in DSSAT. Defaults to 2. |
IFREQ_interpolate |
is the size of interpolation interval. Defaults to 0.1 so that IFREQ_seq of 2 adds 0, 0.1, 0.2, ..., 1.9. |
num_clusters |
is the number of cores for parallelization. |
soil_file |
is the file that contains base soil file. Defaults to "C:/Users/manirad/Downloads/test/Well_Soil Type_generator_07.csv". |
well_capacity_file |
is the file that contains base well capacity. Defaults to "C:/Users/manirad/Downloads/test/Well_Capacity_ganarator.csv". |
returns the output table.
## Not run:
gen_lookup_tax(subsidy_amount = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.