  1.  NAME

  to_pos - Convert a position form decimal degrees to another

  2.  SYNOPSIS

  [id, im, rs] = to_pos(deg)

  3.  DESCRIPTION

  Converts positions in decimal degrees into a string according to the
  specified . Optionnally, it also returns the interger/real values of
  the converted positions.

  4.  PARAMETERS

     deg
        Decimal degrees.

     islat
        If non-zero,current position is a latitude,else a longitude is
        assumed.

     fmt optional String specifying the output . Possible values are: dm
        dms and dmsh. If missing,the  is determined from the number of
        output arguments. However,if only a string should be built,this
        parameter is required.

  5.  RETURNS

     str
        Position in form of a string.

     id optional
        Integer degree.

     im optional
        Integer minutes.

     rm optional
        Real minutes.

     rs optional
        Real seconds.

  6.  AUTHORS

  Pierre Jaccard, Geophysical Institute, University of Bergen, 1999

