NAME
          writecountrycode - Write country code file

     SYNOPSIS
          #include "lpj.h"

          int writecountrycode(Outputfile *output,
                               int index,
                               const Cell grid[],
                               const Config *config
                              );


     DESCRIPTION
          Function writes country code data for LPJmL grid. Only cell
          coordinates with valid soil code are written.  The arguments
          of writecountrycode are:

          output
               Pointer to initialized output data. output must be
               initialized by fopenoutput().

          index
               Set index of output.

          grid Cell grid array allocated and initialized by newgrid().

          config
               LPJmL configuration data. Must be read by readconfig().

     RETURN VALUE
          Upon successful completion the number of country codes
          written is returned.

     AUTHORS
          Werner von Bloh (Werner.von.Bloh@pik-potsdam.de), Sibyll
          Schaphoff (Sibyll.Schaphoff@pik-potsdam.de), Stefanie Rost
          (Jachner) (Stefanie.Rost@pik-potsdam.de), Marlies
          Gumpenberger (Marlies.Gumpenberger@pik-potsdam.de), Tim
          Beringer (Erbrecht) (Tim.Beringer@pik-potsdam.de), Christoph
          Mueller (Christoph.Mueller@pik-potsdam.de) Jens Heinke
          (Jens.Heinke@pik-potsdam.de), Hester Biemans
          (Hester.Biemans@wur.nl), Kirsten Thonicke
          (Kirsten.Thonicke@pik-potsdam.de), Ursula Heyder
          (Ursula.Heyder@pik-potsdam.de),


     SEE ALSO
          readconfig(3), fopenoutput(3), newgrid(3), fcloseoutput(3),
          isopen(3), writecoords(3), writeregioncode(3)



Man(1) output converted with man2html