# printharvest.1

         NAME
              printharvest - Print global harvested carbon for crops and
              managed grasslands

         SYNOPSIS
              printharvest [-h] [-inpath dir] [-outpath dir]
              [[-Dmacro[=value]] [-Idir] ...] [filename]

         DESCRIPTION
              Program prints total harvested carbon of a LPJmL model run.
              The LPJmL configuration file is read in in order to find the
              location and name of the harvest data file.

         OPTIONS
              -h   display a short help text

              -inpath dir
                   set the input directory path. The path is added to the
                   input filenames if they do not contain an absolute
                   path.

              -outpath dir
                   set the output directory path. The path is added to the
                   output filenames if they do not contain an absolute
                   path.

              -Dmacro{=value]
                   define macro for the preprocessor of the configuration
                   file

              -Idir
                   define include directory for the preprocessor of the
                   configuration file

              filename
                   name of configuration file, default is lpjml.conf.

         EXAMPLE
              Print harvest carbon with default configuration file.
                   printharvest -D FROM_RESTART

         ENVIRONMENT
              LPJCONFIG
                   default LPJmL configuration filename

              LPJPREP
                   defines preprocessor command for LPJmL configuration
                   file, default is cpp -P.

              LPJROOT
                   defines the root directory for LPJmL. This directory is
                   added to the include directories of the preprocessor

              LPJINPATH
                   Path appended to the input filenames. Only done for
                   filenames without absolute path.

              LPJOPTIONS
                   runtime options for the preprocessor of LPJmL
                   configuration files

              LPJOUTPATH
                   Path appended to the output filenames. Only done for
                   filenames without absolute path.

         EXIT STATUS
              printharvest returns a zero exit status if the harvested
              carbon has been printed.  Non zero is returned in case of
              failure.

         AUTHOR
              Werner von Bloh (Werner.von.Bloh@pik-potsdam.de)

         SEE ALSO
              lpjml(1), lpjml.conf(5)