Skip to content

MAGDA-Project/magda_rd2wrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAGDA radars to WRF

This module can be used to convert radar data in netcdf MAGDA format into WRF ascii format.

Installation

The module use go-netcdf to read CAPPI netcdf files.

In order to use it, you need the developer version of the library provided by your distribution installed.

Furthermore, netcdf files are preprocessed using CDO and NCO tools.

On ubuntu you can install these dependencies with:

sudo apt install libnetcdf-dev cdo nco

On Typhoon, wrfprod user can load them with these modules:

module load CDO NCO

Usage on CIMA Typhoon

magda_rd2wrf is already present in /data/safe/home/wrfprod/bin/magda_rd2wrf

Template files to regrid radar for Romania and Switzerland is already present in path ~/.magda_rd2wrf

Command line usage

This module implements a console command that can be used to convert radar observations from netcdf to WRF ascii format.

Usage of magda_rd2wrf:

GRD_TEMPL=~/.magda_rd2wrf/swiss.grid.template
magda_rd2wrf <inputdir> <outfilename> YYYYMMDDHHNN
Options:
  -inputdir string
        the directory containing all CAPPI netcdf files
  -outfilename string
        name of the output file
  -YYYYMMDDHHNN date/time
        date and hour of the radar data to convert [YYYYMMDDHH]

GRD_TEMPL is an environment variable that must be set to the CDO template file to use for regridding. On Typhoon, there are two grid template already defined in ~/.magda_rd2wrf:

  • swiss.grid.template for Switzerland radars
  • romania.grid.template for Romania radars

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages