perillaroc / porter-ng

GrADS to GRIB2 data converter using ecCodes.
MIT License
0 stars 0 forks source link
eccodes grads grib2

porter-ng

A simple data conversion tool which converts GrADS binary data to GRIB 2 data.

It is currently tested on numerical weather prediction model's output data produced by NWPC (Numerical Weather Prediction Center of CMA).

Requirements

Installation

Use CMake to build from source code.

Some Cmake variables are available to help find required libraries. Such as:

Getting Started

Use command line tool porter to convert GrADS data to GRIB 2.

porter --config=config.yaml \
    --output=output.grib2 \
    data.ctl

A simple config file:

params:
  -
    name: t
    keys:
      # param
      discipline: 0
      parameterCategory: 0
      parameterNumber: 0

      # level
      typeOfLevel: isobaricInPa
    value: x + 273.15

  -
    name: u
    levels: [1000, 962.5]
    keys:
      # param
      discipline: 0
      parameterCategory: 2
      parameterNumber: 2

      # level
      typeOfLevel: isobaricInPa

License

Copyright © 2018-2019, Perilla Roc.

This project is licensed under the MIT License.