Skip to content

Commit

Permalink
fix names and preproc functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Nov 15, 2024
1 parent 7949375 commit c081243
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/shared_utilities/drivers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1031,28 +1031,28 @@ function prescribed_forcing_era5(

precip = TimeVaryingInput(
era5_ncdata_path,
["tp", "sf"],
["mtpr", "msr"],
surface_space;
reference_date = start_date,
regridder_type,
file_reader_kwargs = (; preprocess_func = (data) -> -data / 3600,),
file_reader_kwargs = (; preprocess_func = (data) -> -data,),
method = time_interpolation_method,
compose_function = (tp, sf) -> tp - sf,
compose_function = (mtpr, msr) -> mtpr - msr,
)

snow_precip = TimeVaryingInput(
era5_ncdata_path,
"sf",
"msr",
surface_space;
reference_date = start_date,
regridder_type,
file_reader_kwargs = (; preprocess_func = (data) -> -data / 3600,),
file_reader_kwargs = (; preprocess_func = (data) -> -data,),
method = time_interpolation_method,
)

u_atmos = TimeVaryingInput(
era5_ncdata_path,
["u10n", "v10n"],
["u10", "v10"],
surface_space;
reference_date = start_date,
regridder_type,
Expand Down Expand Up @@ -1105,20 +1105,18 @@ function prescribed_forcing_era5(

SW_d = TimeVaryingInput(
era5_ncdata_path,
"ssrd",
"msdwswrf",
surface_space;
reference_date = start_date,
regridder_type,
file_reader_kwargs = (; preprocess_func = (data) -> data / 3600,),
method = time_interpolation_method,
)
LW_d = TimeVaryingInput(
era5_ncdata_path,
"strd",
"msdwlwrf",
surface_space;
reference_date = start_date,
regridder_type,
file_reader_kwargs = (; preprocess_func = (data) -> data / 3600,),
method = time_interpolation_method,
)

Expand Down

0 comments on commit c081243

Please sign in to comment.