From 36298e74d466038db1a65fa81fc378d890d5fbf6 Mon Sep 17 00:00:00 2001
From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de>
Date: Mon, 13 Apr 2015 08:18:42 +0000
Subject: [PATCH] Afterburner: added docu

---
 OPERATORS           |  1 +
 doc/tex/Modules     |  1 +
 src/modules.c       |  2 +-
 src/operator_help.h | 18 ++++++++++++++++++
 4 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/OPERATORS b/OPERATORS
index 3d0505236..3e52ea75f 100644
--- a/OPERATORS
+++ b/OPERATORS
@@ -483,6 +483,7 @@ Operator catalog:
    Miscellaneous
 -------------------------------------------------------------
    Gradsdes      gradsdes        GrADS data descriptor file
+   Afterburner   after           ECHAM standard post processor
    Filter        bandpass        Bandpass filtering
    Filter        lowpass         Lowpass filtering
    Filter        highpass        Highpass filtering
diff --git a/doc/tex/Modules b/doc/tex/Modules
index 997b7d2ba..1898b5358 100644
--- a/doc/tex/Modules
+++ b/doc/tex/Modules
@@ -110,6 +110,7 @@ Input         Import/Export
 Output        Import/Export
 Outputtab     Import/Export
 Gradsdes      Miscellaneous
+Afterburner   Miscellaneous
 Filter        Miscellaneous
 Gridcell      Miscellaneous
 Smooth9       Miscellaneous
diff --git a/src/modules.c b/src/modules.c
index c49b27af1..7dfdd08ca 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -547,7 +547,7 @@ static modules_t Modules[] =
                                                                type       in  out
   */
   { Adisit,         AdisitHelp,        AdisitOperators,        CDI_REAL,  1,  1 },
-  { Afterburner,    NULL,              AfterburnerOperators,   CDI_REAL, -1,  1 },
+  { Afterburner,    AfterburnerHelp,   AfterburnerOperators,   CDI_REAL, -1,  1 },
   { Arith,          ArithHelp,         ArithOperators,         CDI_REAL,  2,  1 },
   { Arithc,         ArithcHelp,        ArithcOperators,        CDI_REAL,  1,  1 },
   { Arithdays,      ArithdaysHelp,     ArithdaysOperators,     CDI_REAL,  1,  1 },
diff --git a/src/operator_help.h b/src/operator_help.h
index 240ccee42..ee4092d99 100644
--- a/src/operator_help.h
+++ b/src/operator_help.h
@@ -4021,6 +4021,24 @@ static char *GradsdesHelp[] = {
     NULL
 };
 
+static char *AfterburnerHelp[] = {
+    "NAME",
+    "    after - ECHAM standard post processor",
+    "",
+    "SYNOPSIS",
+    "    after  ifiles ofile",
+    "",
+    "DESCRIPTION",
+    "    The \"afterburner\" is the standard post processor for ECHAM data which provides the following operations:",
+    "    - Extract specified variables and levels",
+    "    - Compute derived variables",
+    "    - Transform spectral data to Gaussian grid representation",
+    "    - Vertical interpolation to pressure levels or height",
+    "    - Compute temporal means",
+    "    - Write data in GRIB, NetCDF, SERVICE or EXTRA format",
+    NULL
+};
+
 static char *FilterHelp[] = {
     "NAME",
     "    bandpass, lowpass, highpass - Time series filtering",
-- 
GitLab