NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SOLWEIG-GPU Version: 2.0

Harsh Kamath, Andrea Zonato, Naveen SudharsanZenodo (CERN European Organization for Nuclear Research) 2026 · OpenAlex

Abstract

Please check the GitHub repository the the latest version of the software: GitHub Read the detailed documentation: Documentation SOLWEIG-GPU Version 2: Sample Data and Usage Examples SOLWEIG-GPU is a GPU-accelerated Python framework for running the standalone SOLWEIG model for high-resolution urban thermal comfort and radiation modeling. It computes key urban microclimate variables including sky-view factor (SVF), mean radiant temperature (Tmrt), Universal Thermal Climate Index (UTCI), wet bulb globe temperature (WBGT), shadow patterns, and shortwave and longwave radiation components. This Zenodo archive provides sample input data and forcing datasets that can be used to test, reproduce, and familiarize users with the SOLWEIG-GPU workflow. The sample data are intended to help users understand the required input structure, test the installation, and run example simulations using different meteorological forcing options. What is new in Version 2 Version 2 of SOLWEIG-GPU includes several major updates: Modular workflows for preprocessing, wall-height and wall-aspect calculation, sky-view factor calculation, and thermal comfort simulations Separate functions for calculating wall height/aspect, SVF, Tmrt, UTCI, and related radiation variables Ability to compute wet bulb globe temperature (WBGT) Bug fixes and improved model stability GLIDE-SOL-related capabilities, including: Downloading and processing required input datasets Wind-direction-based wind-extension coefficient calculation when ERA5 data are used Diagnostic urban heat island intensity calculation when ERA5 forcing data are used These additions make the framework more flexible for research workflows, large-area simulations, urban digital twin applications, and diagnostic environmental modeling. Model installation We recommend installing SOLWEIG-GPU inside a conda environment. conda create -n solweig python=3.10 conda activate solweig conda install -c conda-forge gdal cudnn pytorch timezonefinder matplotlib sip pip install PyQt5 pip install solweig-gpu If you already have an older version installed, upgrade using: pip install --upgrade solweig-gpu Note: cudnn is required only if you are using an NVIDIA GPU. Input data The Input_raster folder contains the raster files required by SOLWEIG-GPU: Building_DSM.tifBuilding digital surface model, including buildings and terrain elevation. DEM.tifDigital elevation model excluding buildings. Trees.tifTree or vegetation height raster. Landcover.tifOptional land-cover raster. These files represent the spatial input datasets required for SOLWEIG-GPU simulations. Meteorological forcing options SOLWEIG-GPU can be meteorologically forced in three ways: User-provided meteorological .txt file ERA5 reanalysis data Weather Research and Forecasting model output files (wrfout) For WRF forcing, make sure filenames follow one of the following formats: wrfout_d0x_yyyy-mm-dd_hh_mm_ss wrfout_d0x_yyyy-mm-dd_hh:mm:ss wrfout_d0x_yyyy-mm-dd_hh The preferred format is: wrfout_d0x_yyyy-mm-dd_hh_mm_ss This format is recommended because it works more reliably across different operating systems. The Forcing_data folder contains sample meteorological forcing data for all supported forcing methods. Output structure SOLWEIG-GPU writes outputs under an output_folder directory inside the selected base_path. For tiled simulations, each tile has its own output folder, for example: output_folder/ ├── 0_0/ ├── 1000_0/ ├── 0_1000/ └── ... SVF outputs are saved as single-band rasters. Time-varying variables such as Tmrt, UTCI, radiation fluxes, shadow, and WBGT are saved as multi-band rasters, where each band corresponds to a model time step. Example 1: Running SOLWEIG-GPU with WRF forcing from solweig_gpu import thermal_comfort thermal_comfort( base_path="/path/to/input", selected_date_str="2020-08-13", building_dsm_filename="Building_DSM.tif", dem_filename="DEM.tif", trees_filename="Trees.tif", landcover_filename=None, ERA_5_z0_find=False, tile_size=1000, overlap=100, use_own_met=False, own_met_file=None, start_time="2020-08-13 06:00:00", end_time="2020-08-14 05:00:00", data_source_type="wrfout", data_folder="/path/to/wrfout/files", use_uhi=False, save_tmrt=True, save_svf=False, save_kup=False, save_kdown=False, save_lup=False, save_ldown=False, save_shadow=False, save_wbgt=False, ) In this example, the model simulation date is 2020-08-13. The start and end times are provided in UTC: 2020-08-13 06:00:00 UTC to 2020-08-14 05:00:00 UTC For Austin, Texas, this corresponds approximately to: 2020-08-13 01:00:00 to 2020-08-13 23:00:00 local time The UTC-to-local-time conversion is handled internally by SOLWEIG-GPU. The tile_size depends on the available GPU memory. A value of 1000 is suitable for this example, but users with lower-memory GPUs may need to reduce it. The overlap parameter controls the number of additional pixels used around each tile for shadow transfer between neighboring tiles. For example, with: tile_size = 1000 overlap = 100 the processed tile size becomes: 1100 × 1100 pixels Example 2: Running SOLWEIG-GPU with ERA5 forcing from solweig_gpu import thermal_comfort thermal_comfort( base_path="/path/to/input", selected_date_str="2020-08-13", building_dsm_filename="Building_DSM.tif", dem_filename="DEM.tif", trees_filename="Trees.tif", landcover_filename=None, ERA_5_z0_find=True, tile_size=1000, overlap=100, use_own_met=False, own_met_file=None, start_time="2020-08-13 06:00:00", end_time="2020-08-13 23:00:00", data_source_type="ERA5", data_folder="/path/to/era5/files", use_uhi=True, save_tmrt=True, save_svf=False, save_kup=False, save_kdown=False, save_lup=False, save_ldown=False, save_shadow=False, save_wbgt=True, ) For the ERA5 sample data, the forcing period is: 2020-08-13 06:00:00 UTC to 2020-08-13 23:00:00 UTC For Austin, Texas, this corresponds approximately to: 2020-08-13 01:00:00 to 2020-08-13 18:00:00 local time When ERA5 forcing is used, SOLWEIG-GPU can process the selected date and time range automatically, provided that ERA5 data are available for the requested period. For example, if the ERA5 files contain data from: 2020-08-13 00:00:00 UTC to 2020-08-14 23:00:00 UTC and the selected simulation date is: 2020-08-13 with start and end times: 2020-08-13 06:00:00 UTC to 2020-08-14 05:00:00 UTC the model will automatically extract and process the required time steps. If ERA_5_z0_find=True, SOLWEIG-GPU expects the ERA5 instantaneous file needed for roughness-length-based wind-extension coefficient calculation to be available in the ERA5 data folder. If use_uhi=True, SOLWEIG-GPU calculates diagnostic urban heat island intensity. This option should be used only with ERA5 forcing. Example 3: Running SOLWEIG-GPU with a user-provided meteorological file from solweig_gpu import thermal_comfort thermal_comfort( base_path="/path/to/input", selected_date_str="2020-08-13", building_dsm_filename="Building_DSM.tif", dem_filename="DEM.tif", trees_filename="Trees.tif", landcover_filename=None, ERA_5_z0_find=False, tile_size=1000, overlap=100, use_own_met=True, own_met_file="/path/to/met.txt", start_time=None, end_time=None, data_source_type=None, data_folder=None, use_uhi=False, save_tmrt=True, save_svf=False, save_kup=False, save_kdown=False, save_lup=False, save_ldown=False, save_shadow=False, save_wbgt=False, ) Use this option when forcing SOLWEIG-GPU with a user-provided meteorological .txt file. When using a custom meteorological file: Set use_own_met=True Provide the file path using own_met_file Keep ERA_5_z0_find=False unless ERA5 roughness data are also available Keep use_uhi=False, because diagnostic urban heat island intensity calculation is intended for ERA5 forcing Modular workflow in Version 2 Version 2 also allows the model to be run in separate stages. This is useful when users want to preprocess the data once, calculate SVF separately, rerun selected tiles, or save intermediate products. Step 1: Preprocess input data from solweig_gpu import preprocess preprocess( base_path="/path/to/input", selected_date_str="2020-08-13", building_dsm_filename="Building_DSM.tif", dem_filename="DEM.tif", trees_filename="Trees.tif", landcover_filename="Landcover.tif", windcoeff_folder="/path/to/input", tile_size=1000, overlap=100, use_own_met=False, start_time="2020-08-13 06:00:00", end_time="2020-08-14 05:00:00", data_source_type="ERA5", data_folder="/path/to/era5/files", own_met_file=None, preprocess_dir="/path/to/input", use_uhi=True, ) Step 2: Calculate wall height and wall aspect from solweig_gpu import run_walls_aspect run_walls_aspect("/path/to/input") Step 3: Calculate sky-view factor from solweig_gpu import calculate_svf calculate_svf( base_path="/path/to/input", patch_option=2, overwrite=False, ) Step 4: Run the thermal comfort model over tiles from solweig_gpu import run_utci_tiles run_utci_tiles( base_path="/path/to/input", preprocess_dir="/path/to/input", selected_date_str="2020-08-13", save_tmrt=True, save_svf=False, save_kup=False, save_kdown=False, save_lup=False, save_ldown=False, save_shadow=False, save_wbgt=True, ) This modular workflow is recommended for advanced users, large-domain applications, debugging, or repeated simulations using the same spatial inputs. Optional input-data generation Version 2 includes support for downloading and processing required SOLWEIG-GPU input datasets from near-globally available urban datasets. Google Earth Engine must be authenticated before using this
BibTeX
@inproceedings{kamath2026solweig,
  author = {Harsh Kamath and Andrea Zonato and Naveen Sudharsan},
  title = {{SOLWEIG-GPU Version: 2.0}},
  booktitle = {Zenodo (CERN European Organization for Nuclear Research)},
  year = {2026},
  doi = {10.5281/zenodo.21081622},
}

Loading related content...

Figure