NAME
          writecoords - Write coordinate file

     SYNOPSIS
          #include "lpj.h"

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


     DESCRIPTION
          Function writes coordinate data for LPJmL grid. Only cell
          coordinates with valid soil code are written.  The arguments
          of writecoords 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 coordinates 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), writecountrycode(3), writeregioncode(3)



Man(1) output converted with man2html