flexprep documentation¶ Preprocessing What it does 1) Why we need dp/dη 2) Hybrid vertical coordinate (η) 3) Discrete dp/dη 4) Layer → level mapping 5) Vertical accumulation 6) Putting it together Inputs, outputs, assumptions Data Sources Available Sources IFS HRES input fields for FLEXPART (Europe) Constants Surface forecast fields Model-level forecast fields Vertical motion (eta levels) io_grib.py — Writing FLEXPART-Ready GRIB2 Files Overview Purpose Key GRIB Metadata Field-Specific Conversions Output API Reference flexprep.preprocessing flexprep.io_grib flexprep.input_fields flexprep.operators