LoginSignup
1
3

More than 3 years have passed since last update.

[GrADS] Visualization Using Grib Format of ECMWF Model Result

Posted at

[Characteristic]

  • Visualization tools are needed to understand ECMWF model results, and this program is software designed to accomplish this purpose.

[Function]

  • Convert grib data to another format
    • [Method 1] converting grib-> ctl using wgrib batch file
    • [Method 2] grib-> NetCDF conversion using ncl library
  • Visualize in ctl or NetCDF format

[Materials]

  • Data : Surface temperature in ECMWF model
  • Period : June 2016
    [Method]

  • None
    [How to]

  • Same directory location for libraries required for GrADS visualization

    • xcbar.gs (Source : http://kodama.fubuki.info/wiki/wiki.cgi/GrADS/script?lang=jp)
    • worldmap (Source : ftp://cola.gmu.edu/grads/boundaries/worldmap)
    • convert grib data to ctl
    • [Method 1] converting grib-> ctl using wgrib batch file
      • [Step 1] Download grib2ctl.pl source code
      • wget "ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib.scripts/grib2ctl.pl"
      • [Step 2] wgib.c source code download
      • wget "ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/wgrib.c"
      • [Step 3] Compiling with wgrib.c
      • gcc wgrib.c -o wgrib
      • [Step 4] Setting and Granting wgrib and GrADS Environment Variables
      • open grib2ctl.pl
      • $wgrib=’wgrib’
      • $wgrib=’/usr/local/bin/wgrib
      • $pdef_dir=’/usr/local/lib/grads
      • chmod 755 grib2ctl.pl
      • [Step 5] Transform ctl according to analysis site and prediction field
        • Analyst Field
          • grib2ctl.pl grib_file > grib_file.ctl
          • gribmap -i grib_file.ctl -0
        • Prediction
          • grib2ctl.pl -verf grib_file > grib_file.ctl
          • gribmap -i grib_file.ctl
    • [Method 2] grib-> NetCDF conversion using ncl library
      • ncl_convert2nc grib_file > input.nc
      • Visualization_Using_Grib_Format_of_ECMEF_Model_Result.csh)
      • Check the visualization result

[OS]

  • Linux

[Language]

  • GrADS
  • ShellScript (csh)

[Source Code]

[Result]
- Worldmap visualization required for GrADSFig. Worldmap visualization required for GrADS.
image.png

  • Visualize surface temperature using ECMWF model results image.png
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3