/gen_flx_input

Some simple tools to make setting up flexpart domains simpler

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

gen_flx_input

Introduction

Some simple tools to make setting up flexpart domains simpler

These tools were written for flexpart v.10 (in BETA at time of writing). The input files have been modified in v.10 and an option to input data on the much more flexible namelist format has been added. Many of these tools will therefore not work with earlier version of flexpart.

Scripts

A brief description of the scripts in this repository

files2available.sh

Prints an AVAILABLE file to stdout for use in flexpart v.10. Takes a list of input files as argument, the file names must follow the format: AA11223344 where AA are two arbitrary characters 11 is the year on 2-digit format (will assume 1900s when year>50, else: 2000s) 22 is the 2-digit month 33 is the 2-digit day 44 is the 2-digit hour (24-hour format)

grib2outgrid.sh

Prints an OUTGRID file to stdout for use in flexpart v.10, it takes a grib-file as input and creates a flexpart domain covering the same geographical region. The script was written for data from ECMWF so I don't know if it will work for GFS data, regardless, GFS-data is currently only supported on global domains so this script wouldn't be much of use anyway...

The script accepts some commandline options; such as specifying the vertical levels in the generated OUTGRID, or increasing the output resolution relative the input data.

Basic usage: grib2outgrid.sh [options] GRIBFILE > OUTGRID