to_pos(3m)

NAME
to_pos - Convert a position form decimal degrees to another

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

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.

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.

RETURNS

str Position in form of a string.

id optional
    Integer degree.

im optional
    Integer minutes.

rm optional
    Real minutes.

rs optional
    Real seconds.

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999