D2DMS Name
D2DMS Purpose
Function to convert from degrees to deg, min, sec.
Category
Calling Sequence
s = d2dms( deg) Inputs
deg = input in degrees (scalar or array). in
Keyword Parameters
Keywords
FRACTION=nd Show fractional seconds to nd places.
Seconds are rounded to nearest if FRACTION not used.
DIGITS=n Force degrees to have n digits.
/NODEG No degree symbol added.
Outputs
s = output string. out
Common Blocks
Notes
Modification History
R. Sterner, 1997 Jan 17
R. Sterner, 2002 Jan 30 --- allowed input to be an array.
R. Sterner, 2002 Apr 26 --- Added optional seconds fraction.
R. Sterner, 2002 Apr 28 --- Fixed a roundoff error.
R. Sterner, 2002 May 06 --- Fixed another roundoff error.
R. Sterner, 2006 Mar 21 --- Moved " after seconds fraction.
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 1997, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.