Giter Club home page Giter Club logo

dsaf's Introduction

DSAF: A Dual-Stage Adaptive Framework for Numerical Weather Prediction Downscaling

Abstract
While widely recognized as one of the most substantial weather forecasting methodologies, Numerical Weather Prediction (NWP) usually suffers from relatively coarse resolution and inevitable bias due to tempo-spatial discretization, physical parametrization process, and computation limitation. With the roaring growth of deep learning-based techniques, we propose the Dual-Stage Adaptive Framework (DSAF), a novel framework to address regional NWP downscaling and bias correction tasks. DSAF uniquely incorporates adaptive elements in its design to ensure a flexible response to evolving weather conditions. Specifically, NWP downscaling and correction are well-decoupled in the framework and can be applied independently, which strategically guides the optimization trajectory of the model. Utilizing a multi-task learning mechanism and an uncertainty-weighted loss function, DSAF facilitates balanced training across various weather factors. Additionally, our specifically designed attention-centric learnable module effectively integrates geographic information, proficiently managing complex interrelationships. Experimental validation on the ECMWF operational forecast (HRES) and reanalysis (ERA5) archive demonstrates DSAF's superior performance over existing state-of-the-art models and shows substantial improvements when existing models are augmented using our proposed modules.

Paper

DSAF

Figure 1: (a) and (b) Comparison of Correction, pure Downscaling and Our Tasks for 2m Temperature: Illustration of specific differences in $4\times$ and $2\times$ downscaling. NWP and Real denote HRES and ERA5 reanalysis data, respectively. HR signifies 0.25-degree resolution data, while $2\times\downarrow$ and $4\times\downarrow$ represent data at 0.5-degree and 1-degree resolutions, respectively. (c) Architectural overview of DSAF. (d) Heat maps of correlation matrices for diverse weather factors at Points No.1, No.2, and No.3. Warm colors indicate strong correlations, while cool colors represent weak ones. (e) Spatial and topographical characteristics of Points No.1, No.2, and No.3. Highlighting contrast between valley (Point No.1) and plain locations (Points No.2 and No.3).

Data

The datasets utilized in this study are derived from the European Centre for Medium-Range Weather Forecasts (ECMWF) operational forecast (HRES) and reanalysis (ERA5) archive. For regional NWP downscaling, we construct a real-world dataset called Huadong, covering the East China land and sea areas. In this dataset, HRES data is employed as the predictive data, while ERA5 reanalysis data serves as the ground truth.

Dataset Details. The Huadong dataset encompasses a latitude range from $26.8^\circ$ N to $42.9^\circ$ N and a longitude range from $112.6^\circ$ E to $123.7^\circ$ E. It comprises a grid of $64 \times 44$ cells, with each cell having a grid size of 0.25 degrees in both latitude and longitude. Notably, the Huadong dataset incorporates Digital Elevation Model (DEM) data to represent terrain information. The HRES and ERA5 data cover the period from January 3, 2020, to April 1, 2022, and include eight weather factors: surface pressure (sp), 2m temperature (2t), 2m dewpoint temperature (d2m), skin temperature (skt), 10m u component of wind (10u), 10m v component of wind (10v), 100m u component of wind (100u), and 100m v component of wind (100v).

Code Usage Instructions

  • Data processing: data_processing/ERA5.py and data_processing/HRES.py

  • 2x task: 2x_task/main.py

  • 4x task: 4x_task/main.py

Appendix

In this work, we approximate the $\nabla$ operator of different orders using the fourth-order different difference operator, corresponding to the $5\times5$ convolution kernel, thus representing $Loss_{reg}$. The $Loss_{reg}$ is obtained in DSAF/2x_task/train.py for the 2x task and DSAF/4x_task/train.py for the 4x task. The $Loss_{reg}$ is defined as

$$ Loss_{reg} = \nabla^2 p + \nabla \cdot (\mathbf{u} \cdot \nabla \mathbf{u}). $$

The fourth-order different difference kernels with the shape of $5 \times 5$ are given by

$$ K_{s, 1}=\frac{1}{12}\left[\begin{array}{ccccc} 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ -1 & 8 & 0 & -8 & 1 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right], $$

$$ K_{s, 2}=\frac{1}{12}\left[\begin{array}{ccccc} 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ -1 & 8 & 0 & -8 & 1 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right]^{T}, $$

$$ K_{s, 3}=\frac{1}{12}\left[\begin{array}{ccccc} 0 & 0 & -1 & 0 & 0 \\ 0 & 0 & 16 & 0 & 0 \\ -1 & 16 & -60 & 16 & -1 \\ 0 & 0 & 16 & 0 & 0 \\ 0 & 0 & -1 & 0 & 0 \end{array}\right], $$

$K_{s, 1}$ and $K_{s, 2}$ are different kernels for the first derivative $\partial x$ and $\partial y$, respectively. $K_{s, 3}$ is the kernel for the second derivative.

dsaf's People

Contributors

pengwei07 avatar

Stargazers

Jeff Carpenter avatar  avatar Rongyao Cai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.