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
          For authors and contributors see AUTHORS file


     COPYRIGHT
          (C) Potsdam Institute for Climate Impact Research (PIK), see
          COPYRIGHT file


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






Man(1) output converted with man2html