Skip to content

Commit d1aad4f

Browse files
author
Kit Schwarz
committed
replace input_data_histclim
1 parent ecc1882 commit d1aad4f

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

dscim/preprocessing/inputs/energy_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
def calculate_batch_damages(batch, ec):
1717
path = "/shares/gcp/outputs/energy_pixel_interaction/impacts-blueghost/integration_resampled"
1818
save_path = (
19-
"/shares/gcp/integration/float32/input_data_histclim/energy_data/hybrid_price/"
19+
"/shares/gcp/integration/float32/sectoral_ir_damages/energy_data/hybrid_price/"
2020
)
2121
print(f"Processing batch={batch} damages in {os.getpid()}")
2222
concatenate_energy_damages(
@@ -35,7 +35,7 @@ def energy_inputs(
3535
re_calculate=False,
3636
path_econ="/shares/gcp/estimation/mortality/release_2020/data/3_valuation/inputs",
3737
input_path="/shares/gcp/outputs/energy_pixel_interaction/impacts-blueghost/integration_resampled",
38-
output_path="/shares/gcp/integration/float32/input_data_histclim/energy_data/",
38+
output_path="/shares/gcp/integration/float32/sectoral_ir_damages/energy_data/",
3939
):
4040
# if __name__ == "__main__":
4141

dscim/preprocessing/inputs/labor_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def calculate_batch_damages(batch, ec, input_path, output_path):
3131
def labor_inputs(
3232
path_econ="/shares/gcp/estimation/mortality/release_2020/data/3_valuation/inputs",
3333
input_path="/shares/gcp/outputs/labor/impacts-woodwork/mc_correct_rebasing_for_integration",
34-
output_path="/shares/gcp/integration/float32/input_data_histclim/labor_data/new_mc/",
34+
output_path="/shares/gcp/integration/float32/sectoral_ir_damages/labor_data/new_mc/",
3535
):
3636
# if __name__ == "__main__":
3737
ec = EconVars(path_econ=path_econ)

dscim/preprocessing/inputs/mortality_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
delta_costs="monetized_costs_vsl_epa_scaled",
3535
histclim_deaths="monetized_deaths_vsl_epa_popavg",
3636
),
37-
outpath="/shares/gcp/integration/float32/input_data_histclim/mortality_data/impacts-darwin-montecarlo-damages-v4.zarr",
37+
outpath="/shares/gcp/integration/float32/sectoral_ir_damages/mortality_data/impacts-darwin-montecarlo-damages-v4.zarr",
3838
)
3939

4040
#########################
@@ -62,5 +62,5 @@
6262
# delta_costs = 'monetized_costs_vsl_epa_scaled',
6363
# histclim_deaths = 'monetized_histclim_deaths_vsl_epa_scaled',
6464
# ),
65-
# outpath="/shares/gcp/integration/float32/input_data_histclim/mortality_data/impacts-darwin-montecarlo-damages-v5.zarr",
65+
# outpath="/shares/gcp/integration/float32/sectoral_ir_damages/mortality_data/impacts-darwin-montecarlo-damages-v5.zarr",
6666
# )

dscim/preprocessing/midprocessing.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@ def update_damage_function_library(
2929

3030

3131
def combine_CAMEL_coefs(
32-
recipe, disc, eta, rho, CAMEL, coastal, AMEL, input_dir, mask='unmasked', pulse_year=2020, fit=True
32+
recipe,
33+
disc,
34+
eta,
35+
rho,
36+
CAMEL,
37+
coastal,
38+
AMEL,
39+
input_dir,
40+
mask="unmasked",
41+
pulse_year=2020,
42+
fit=True,
3343
):
3444

3545
print(f"Creating {recipe} {disc} for {CAMEL}...")

dscim/preprocessing/misc/check_nans.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
# NOTE: modify paths in this cell
1414
# NOTE: include the trailing / in the root paths
15-
input_root = "/shares/gcp/integration/float32/input_data_histclim/mortality_epa_vsl/"
15+
input_root = "/shares/gcp/integration/float32/sectoral_ir_damages/mortality_epa_vsl/"
1616

1717
filename_stem = ""
18-
output_root = "/shares/gcp/integration/float32/input_data_histclim/mortality_epa_vsl/"
18+
output_root = "/shares/gcp/integration/float32/sectoral_ir_damages/mortality_epa_vsl/"
1919

2020
check_csv = False
2121
check_nc4 = False
@@ -147,7 +147,7 @@ def check_csv_nans(path):
147147

148148

149149
check_zarr_nans(
150-
"/shares/gcp/integration/float32/input_data_histclim/mortality_epa_vsl/impacts-darwin-montecarlo-damages-vsl_popavg-histclim-delta.zarr"
150+
"/shares/gcp/integration/float32/sectoral_ir_damages/mortality_epa_vsl/impacts-darwin-montecarlo-damages-vsl_popavg-histclim-delta.zarr"
151151
)
152152

153153

0 commit comments

Comments
 (0)