dac
¶
Modules:
Functions:
-
calculate_relative_humidity–Function to calculate the relative humidity from dewpoint temperature and air temperature using the Sonntag formula.
-
ht_dac_era5_wenzel2025–Simulate HT-DAC plants using ERA5 weather data.
-
lt_dac_era5_wenzel2025–Simulate LT-DAC plants using ERA5 weather data.
calculate_relative_humidity
¶
calculate_relative_humidity(
dewpoint_temperature, air_temperature
)
Function to calculate the relative humidity from dewpoint temperature and air temperature using the Sonntag formula.
Parameters:
References
[1] https://www.npl.co.uk/resources/q-a/dew-point-and-relative-humidity
Source code in reskit/util/relative_humidity.py
ht_dac_era5_wenzel2025
¶
ht_dac_era5_wenzel2025(
placements: DataFrame,
era5_path: str,
output_netcdf_path: str = None,
output_variables: List[str] = None,
model: str = "HT_okosun",
)
Simulate HT-DAC plants using ERA5 weather data.
This function runs a full simulation workflow for high-temperature direct air capture (HT-DAC) plants. It reads ERA5 weather data, calculates relative humidity, runs the specified HT-DAC model simulation, and optionally saves results to a NetCDF file.
Parameters:
-
(placements¶DataFrame) –DataFrame specifying the plant locations and capacities.
-
(era5_path¶str) –Path to the ERA5 weather data source.
-
(output_netcdf_path¶str, default:None) –Path to save the output NetCDF file. If None, no file is saved. Default is None.
-
(output_variables¶list of str, default:None) –List of variables from the simulation to include in the output NetCDF file. If None, all available variables are included. Default is None.
-
(model¶str, default:'HT_okosun') –DAC model to use. Currently, only "HT_okosun" is implemented. Default is "HT_okosun".
Returns:
-
Dataset–Simulation results, optionally limited to
output_variablesand including all plant locations.
Raises:
-
AssertionError–If
modelis not "HT_okosun".
Notes
The simulation includes calculation of: - relative humidity - DAC capacity factor - electricity conversion factor - CO2 output per plant
The simulation relies on the DACWorkflowManager and the specified HT-DAC model.
Source code in reskit/dac/workflows/workflows.py
lt_dac_era5_wenzel2025
¶
lt_dac_era5_wenzel2025(
placements: DataFrame,
era5_path: str,
output_netcdf_path: str = None,
output_variables: List[str] = None,
model: str = "LT_jajjawi",
fillMethod: str = "nearest",
)
Simulate LT-DAC plants using ERA5 weather data.
This function runs a full simulation workflow for low-temperature direct air capture (LT-DAC) plants. It reads ERA5 weather data, calculates relative humidity, loads the specified LT-DAC model data, performs the simulation, and optionally saves results to a NetCDF file.
Parameters:
-
(placements¶DataFrame) –DataFrame specifying the plant locations and capacities.
-
(era5_path¶str) –Path to the ERA5 weather data source.
-
(output_netcdf_path¶str, default:None) –Path to save the output NetCDF file. If None, no file is saved. Default is None.
-
(output_variables¶list of str, default:None) –List of variables from the simulation to include in the output NetCDF file. If None, all available variables are included. Default is None.
-
(model¶str, default:'LT_jajjawi') –DAC model data to utilize. Default is "LT_jajjawi".
-
(fillMethod¶str, default:'nearest') –Method for filling weather conditions outside the DAC model data hull: - "nearest" : use the nearest available datapoint (default) - "offTmin" : cut off for temperatures outside the model range, nearest for relative humidity
Returns:
-
Dataset–Simulation results, optionally limited to
output_variablesand including all plant locations.
Notes
The simulation includes calculation of: - relative humidity - DAC capacity factor - electricity, heat, and water conversion factors - CO2, water, electricity, and heat outputs per plant