Skip to content

EnergyWeatherAI/LST_downscaling_and_nowcasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Article Companion Code: Spatiotemporal downscaling and nowcasting of urban land surface temperatures with deep neural networks

This repository contains the code examples and experiments that accompany the article: "Spatiotemporal downscaling and nowcasting of urban land surface temperatures with deep neural networks"


About the Article

Land Surface Temperature (LST) is a key variable for various applications, such as urban climate and ecology studies. Yet, existing satellite-derived LST products provide either high spatial or high temporal resolution, resulting in a fundamental trade-off between the two. To address this trade-off, we combine observations from a geostationary and a polar orbiting satellite and provide LST fields at high spatial and high temporal resolution (1 km at 15-min intervals). We demonstrate their application for intraday forecasting of LSTs. To estimate LST fields at high spatiotemporal resolution, a U-Net model is trained to map LST fields from SEVIRI/MSG (3 km and 15 min resolution) to LST fields from Terra/Aqua MODIS (1 km, 4 overpasses per day) that are collocated in space and time. The presented model has been trained on LSTs across large European cities with a population exceeding 1 million inhabitants, and achieves an RMSE = $1.92$~°C and near-zero bias MBE = $0.01$~°C on the hold-out test set. As a second step, we present an LST nowcasting model based on ConvLSTM architecture, trained across downscaled LST fields with forecast lead times of 15 to 75 minutes. The nowcasting model outperforms a persistence and a Climatological Rolling Median benchmarks, with RMSEs of $0.57$ to $1.15$~°C for the considered lead times and biases ranging from $-0.1$ to $0.14$~°C. An additional validation conducted against independent MODIS overpasses confirms robust performance.
Our LST forecast model at high spatiotemporal resolution is directly applicable to operational satellite-based LST monitoring.


Repository Structure

The repository is structured as follows:

1. scripts/

Contains scripts related to data preparation step.

Downscaling model

  • auto_download_MODIS.py - Create a list of MODIS files that needs to be dowloaded to cover a specific set of cities Needs separate environment. Environment: mamba activate lpdaac (https://www.earthdata.nasa.gov/centers/lp-daac)
  • modis_data_read.py - support script
  • modis_city_match_keep_nan.py - process raw MODIS data to create regridded MODIS images for each city
  • seviri_processing_add_extra_files.py - process seviri files for a downscaling model. Relies on the output from modis_city_match_keep_nan.py

Nowcasting model

  • nowcasting_data_download_links_gen.py - create a list of download links for SEVIRI. This one is used for getting the data for nowcasting. Can be adapted for the downscaling as well.
  • process_seviri_full_day.py - process seviri files for nowcasting models

2. mlscripts/

Contains scripts for machine learning experiments.

Downscaling model

  • prepare_dataset.py - Prepare the data for machine learning.
  • unet.py - perform the training of the downscaling model.
  • apply_test_unet.py - apply the model on the test set.

Nowcasting model

  • nowcast_convlstm.py - perform the training of the nowcasting model.
  • apply_test_nowcast_convlstm.py - apply the model on the test set.

3. datasets/

The city boundaries used in our work to spatially subset the data to patches covering each target city. We also have there the downscaling model with weights, means and standard deviations. It is needed to prepare the data for nowcasting.


Requirements

1. Install dependencies

pip install -r requirements.txt

2. Get data

The data is made available on Zenodo.

Related Article

Read the full article here: 👉 http://arxiv.org/abs/2605.13566

If you use our work, please consider citing the article.


Acknowledgements

This study was conducted as part of the Horizon Europe project UrbanAIR and has received funding from the Swiss State Secretariat for Education, Research and Innovation (SERI).


About

Source Code: Spatiotemporal downscaling and nowcasting of urban land surface temperatures with deep neural

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages