libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
sufr_angle2string Module Reference

Procedures to convert angles to formatted text strings. More...

Functions/Subroutines

pure character function, dimension(7) prs (angle)
 Print separation angle (>0) as ddd.mm or mm.ss string, input in rad.
 
pure character function, dimension(10) dms (angle)
 Print angle as ddd.mm.ss string, input in rad - See wdms() for HTML version.
 
pure character function, dimension(13) dmss (angle)
 Print angle as a ddd.mm.ss.ss string, input in rad.
 
pure character function, dimension(11) dms2 (angle)
 Print angle as dms string, input in rad, output between -180 and +180 - See wdms2() for HTML version.
 
pure character function, dimension(10) ddms2 (angle)
 Print angle as dd.mm.ss string, input in rad, output between -99 and +99 - See wddms2() for HTML version.
 
pure character function, dimension(9) d1ms2 (angle)
 Print angle as d.mm.ss string, input in rad, output between -9 and +9 !!!
 
pure character function, dimension(14) dmss2 (angle, nosymbols)
 Print angle as dms.ss string, input in rad, output between -180 and +180.
 
pure character function, dimension(7) dm (angle)
 Print angle as ddd:mm string, input in rad.
 
pure character function, dimension(8) dm2 (angle)
 Print angle as ddd.mm string, input in rad, output between -180 and +180.
 
pure character function, dimension(7) dmm2 (angle)
 Print angle as dd.mm string, input in rad, output between -99 and +99 !!!
 
pure character function, dimension(9) dmmm2 (angle)
 Print angle as dd:mm.m string, input in rad, output between -99 and +99 !!!
 
pure character function, dimension(12) dmmmmm2 (angle, nosymbols)
 Print angle as dd:mm.mmm string (for gps), input in rad, output between -180 and +180 !!!
 
pure character function, dimension(6) ddd2 (angle)
 Print angle as dd.d string, input in rad, output between -99.9 and +99.9 !!!
 
pure character function, dimension(26) wdms (angle)
 Print angle as ddd.mm.ss string, input in rad with °, ’ and ” - HTML version of dms()
 
pure character function, dimension(29) wdmss (angle)
 Print angle as ddd.mm.ss.ss string, input in rad with °, ’ and ” - HTML version of dmss()
 
pure character function, dimension(27) wdms2 (angle)
 Print angle as dms string, input in rad, output between -180 and +180 with °, ’ and ” -
HTML version of dms2()
 
pure character function, dimension(30) wdmss2 (angle)
 Print angle as ddd.mm.ss.ss string, input in rad, output between -180 and +180 with °, ’ and ” -
HTML version of dmss2()
 
pure character function, dimension(26) wddms2 (angle)
 Print angle as dd.mm'ss" string, input in rad, output between -99 and +99 with °, ’ and ” HTML version of ddms2()
 
pure character function, dimension(25) wd1ms2 (angle)
 Print angle as d.mm.ss string, input in rad, output between -9 and +9 - HTML version of d1ms2.
 
pure character function, dimension(17) wdm (angle)
 Print angle as ddd:mm string, input in rad with ° and ’ - HTML version of dm()
 
pure character function, dimension(18) wdm2 (angle)
 Print angle as ddd.mm string, input in rad, output between -180 and +180 with ° and ’.
 
pure character function, dimension(17) wdmm2 (angle)
 Print angle as dd.mm string, HTML version input in rad, output between -99 and +99 !!!
 
pure character function, dimension(19) wdmmm2 (angle)
 Print angle as dd:mm.m string, HTML version. Input in rad, output between -99 and +99 !!!
 
pure character function, dimension(10) wddd2 (angle)
 Print angle as dd.d string, HTML version input in rad, output between -99.9 and +99.9 !!!
 
pure character function, dimension(8) ams (angle)
 Print angle as mm:ss.s string, input in rad.
 
pure character function, dimension(9) ams2 (angle)
 Print angle as mm:ss.s string, input in rad.
 
pure character function, dimension(9) amss (angle)
 Print angle as mm:ss.ss string, input in rad.
 
pure character function, dimension(5) ass (angle)
 Print angle as a string of ss.s", input in rad.
 
pure character function, dimension(20) wams (angle)
 Print angle as mm'ss.s" string, input in rad; HTML version of ams()
 
pure character function, dimension(21) wams2 (angle)
 Print angle as mm'ss.s" string, input in rad - html version of ams2()
 
pure character function, dimension(21) wamss (angle)
 Print angle as HTML mm:ss.ss string, input in rad - HTML version of amss()
 
pure character function, dimension(11) wass (angle)
 Print angle as a string of ss.s", input in rad - HTML version of ass()
 

Detailed Description

Procedures to convert angles to formatted text strings.

Function/Subroutine Documentation

◆ ams()

pure character function, dimension(8) sufr_angle2string::ams ( real(double), intent(in) angle)

Print angle as mm:ss.s string, input in rad.

Parameters
angleAngle (rad)
Return values
amsAngle as mm:ss.s string

Definition at line 1123 of file angle2string.f90.

References ams(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev().

Referenced by ams().

Here is the call graph for this function:

◆ ams2()

pure character function, dimension(9) sufr_angle2string::ams2 ( real(double), intent(in) angle)

Print angle as mm:ss.s string, input in rad.

Parameters
angleAngle (rad)
Return values
ams2Angle as mm:ss.s string

Definition at line 1155 of file angle2string.f90.

References ams2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by ams2().

Here is the call graph for this function:

◆ amss()

pure character function, dimension(9) sufr_angle2string::amss ( real(double), intent(in) angle)

Print angle as mm:ss.ss string, input in rad.

Parameters
angleAngle (rad)
Return values
amssAngle as mm:ss.ss string

Definition at line 1193 of file angle2string.f90.

References amss(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev().

Referenced by amss().

Here is the call graph for this function:

◆ ass()

pure character function, dimension(5) sufr_angle2string::ass ( real(double), intent(in) angle)

Print angle as a string of ss.s", input in rad.

Parameters
angleAngle (rad)
Return values
assAngle as a string of ss.s"

Definition at line 1224 of file angle2string.f90.

References ass(), sufr_kinds::double, sufr_constants::r2d, and sufr_angles::rev().

Referenced by ass().

Here is the call graph for this function:

◆ d1ms2()

pure character function, dimension(9) sufr_angle2string::d1ms2 ( real(double), intent(in) angle)

Print angle as d.mm.ss string, input in rad, output between -9 and +9 !!!

Parameters
angleAngle (rad)
Return values
d1ms2Angle as d.mm.ss string

Definition at line 295 of file angle2string.f90.

References d1ms2(), sufr_kinds::double, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by d1ms2().

Here is the call graph for this function:

◆ ddd2()

pure character function, dimension(6) sufr_angle2string::ddd2 ( real(double), intent(in) angle)

Print angle as dd.d string, input in rad, output between -99.9 and +99.9 !!!

Parameters
angleAngle (rad)
Return values
ddd2Angle as dd.d string

Definition at line 613 of file angle2string.f90.

References ddd2(), sufr_kinds::double, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by ddd2().

Here is the call graph for this function:

◆ ddms2()

pure character function, dimension(10) sufr_angle2string::ddms2 ( real(double), intent(in) angle)

Print angle as dd.mm.ss string, input in rad, output between -99 and +99 - See wddms2() for HTML version.

Parameters
angleAngle (rad)
Return values
ddms2Angle as dd.mm.ss string

Definition at line 250 of file angle2string.f90.

References ddms2(), sufr_kinds::double, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by ddms2().

Here is the call graph for this function:

◆ dm()

pure character function, dimension(7) sufr_angle2string::dm ( real(double), intent(in) angle)

Print angle as ddd:mm string, input in rad.

Parameters
angleAngle (rad)
Return values
dmAngle as ddd:mm string

Definition at line 400 of file angle2string.f90.

References dm(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev().

Referenced by dm().

Here is the call graph for this function:

◆ dm2()

pure character function, dimension(8) sufr_angle2string::dm2 ( real(double), intent(in) angle)

Print angle as ddd.mm string, input in rad, output between -180 and +180.

Parameters
angleAngle (rad)
Return values
dm2Angle as ddd.mm string

Definition at line 436 of file angle2string.f90.

References dm2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dm2().

Here is the call graph for this function:

◆ dmm2()

pure character function, dimension(7) sufr_angle2string::dmm2 ( real(double), intent(in) angle)

Print angle as dd.mm string, input in rad, output between -99 and +99 !!!

Parameters
angleAngle (rad)
Return values
dmm2Angle as dd.mm string

Definition at line 477 of file angle2string.f90.

References dmm2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dmm2().

Here is the call graph for this function:

◆ dmmm2()

pure character function, dimension(9) sufr_angle2string::dmmm2 ( real(double), intent(in) angle)

Print angle as dd:mm.m string, input in rad, output between -99 and +99 !!!

Parameters
angleAngle (rad)
Return values
dmmm2Angle as dd:mm.m string

Definition at line 518 of file angle2string.f90.

References dmmm2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dmmm2().

Here is the call graph for this function:

◆ dmmmmm2()

pure character function, dimension(12) sufr_angle2string::dmmmmm2 ( real(double), intent(in) angle,
logical, intent(in), optional nosymbols )

Print angle as dd:mm.mmm string (for gps), input in rad, output between -180 and +180 !!!

Parameters
angleAngle (rad)
noSymbolsDo not print symbols (d,',") - use spaces instead; default: false (do use symbols)
Return values
dmmmmm2Angle as dd.d string

Definition at line 561 of file angle2string.f90.

References dmmmmm2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dmmmmm2().

Here is the call graph for this function:

◆ dms()

pure character function, dimension(10) sufr_angle2string::dms ( real(double), intent(in) angle)

Print angle as ddd.mm.ss string, input in rad - See wdms() for HTML version.

Parameters
angleAngle (rad)
Return values
dmsAngle as ddd.mm.ss string

Definition at line 117 of file angle2string.f90.

References dms(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev().

Referenced by dms().

Here is the call graph for this function:

◆ dms2()

pure character function, dimension(11) sufr_angle2string::dms2 ( real(double), intent(in) angle)

Print angle as dms string, input in rad, output between -180 and +180 - See wdms2() for HTML version.

Parameters
angleAngle (rad)
Return values
dms2Angle as dms string

Definition at line 202 of file angle2string.f90.

References dms2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dms2().

Here is the call graph for this function:

◆ dmss()

pure character function, dimension(13) sufr_angle2string::dmss ( real(double), intent(in) angle)

Print angle as a ddd.mm.ss.ss string, input in rad.

Parameters
angleAngle (rad)
Return values
dmssAngle as a ddd.mm.ss.ss string

Definition at line 159 of file angle2string.f90.

References dmss(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev().

Referenced by dmss().

Here is the call graph for this function:

◆ dmss2()

pure character function, dimension(14) sufr_angle2string::dmss2 ( real(double), intent(in) angle,
logical, intent(in), optional nosymbols )

Print angle as dms.ss string, input in rad, output between -180 and +180.

Parameters
angleAngle (rad)
noSymbolsDo not print symbols (d,',") - use spaces instead; default: false (do use symbols)
Return values
dmss2Angle as ddd:mm string

Definition at line 341 of file angle2string.f90.

References dmss2(), sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, and sufr_angles::rev2().

Referenced by dmss2().

Here is the call graph for this function:

◆ prs()

pure character function, dimension(7) sufr_angle2string::prs ( real(double), intent(in) angle)

Print separation angle (>0) as ddd.mm or mm.ss string, input in rad.

Parameters
angleAngle (rad)
Return values
prsSeparation angle (>0) as ddd.mm or mm.ss string

Definition at line 74 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, prs(), sufr_constants::r2d, and sufr_angles::rev().

Referenced by prs().

Here is the call graph for this function:

◆ wams()

pure character function, dimension(20) sufr_angle2string::wams ( real(double), intent(in) angle)

Print angle as mm'ss.s" string, input in rad; HTML version of ams()

Parameters
angleAngle (rad)
Return values
wamsAngle as mm'ss.s" HTML string

Definition at line 1258 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev(), and wams().

Referenced by wams().

Here is the call graph for this function:

◆ wams2()

pure character function, dimension(21) sufr_angle2string::wams2 ( real(double), intent(in) angle)

Print angle as mm'ss.s" string, input in rad - html version of ams2()

Parameters
angleAngle (rad)
Return values
wams2Angle as mm'ss.s" HTML string

Definition at line 1290 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wams2().

Referenced by wams2().

Here is the call graph for this function:

◆ wamss()

pure character function, dimension(21) sufr_angle2string::wamss ( real(double), intent(in) angle)

Print angle as HTML mm:ss.ss string, input in rad - HTML version of amss()

Parameters
angleAngle (rad)
Return values
wamssAngle as HTML mm:ss.ss string

Definition at line 1328 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev(), and wamss().

Referenced by wamss().

Here is the call graph for this function:

◆ wass()

pure character function, dimension(11) sufr_angle2string::wass ( real(double), intent(in) angle)

Print angle as a string of ss.s", input in rad - HTML version of ass()

Parameters
angleAngle (rad)
Return values
wassAngle as a HTML string of ss.s"

Definition at line 1359 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::r2d, sufr_angles::rev(), and wass().

Referenced by wass().

Here is the call graph for this function:

◆ wd1ms2()

pure character function, dimension(25) sufr_angle2string::wd1ms2 ( real(double), intent(in) angle)

Print angle as d.mm.ss string, input in rad, output between -9 and +9 - HTML version of d1ms2.

Parameters
angleAngle (rad)
Return values
wd1ms2Angle as d.mm.ss HTML string

Definition at line 884 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::r2d, sufr_angles::rev2(), and wd1ms2().

Referenced by wd1ms2().

Here is the call graph for this function:

◆ wddd2()

pure character function, dimension(10) sufr_angle2string::wddd2 ( real(double), intent(in) angle)

Print angle as dd.d string, HTML version input in rad, output between -99.9 and +99.9 !!!

Parameters
angleAngle (rad)
Return values
wddd2Angle as dd.d HTML string

Definition at line 1087 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::r2d, sufr_angles::rev2(), and wddd2().

Referenced by wddd2().

Here is the call graph for this function:

◆ wddms2()

pure character function, dimension(26) sufr_angle2string::wddms2 ( real(double), intent(in) angle)

Print angle as dd.mm'ss" string, input in rad, output between -99 and +99 with °, ’ and ” HTML version of ddms2()

Parameters
angleAngle (rad)
Return values
wddms2Angle as dd.mm'ss" HTML string

Definition at line 836 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wddms2().

Referenced by wddms2().

Here is the call graph for this function:

◆ wdm()

pure character function, dimension(17) sufr_angle2string::wdm ( real(double), intent(in) angle)

Print angle as ddd:mm string, input in rad with ° and ’ - HTML version of dm()

Parameters
angleAngle (rad)
Return values
wdmAngle as ddd:mm HTML string

Definition at line 929 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev(), and wdm().

Referenced by wdm().

Here is the call graph for this function:

◆ wdm2()

pure character function, dimension(18) sufr_angle2string::wdm2 ( real(double), intent(in) angle)

Print angle as ddd.mm string, input in rad, output between -180 and +180 with ° and ’.

Parameters
angleAngle (rad)
Return values
wdm2Angle as ddd.mm HTML string

Definition at line 964 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wdm2().

Referenced by wdm2().

Here is the call graph for this function:

◆ wdmm2()

pure character function, dimension(17) sufr_angle2string::wdmm2 ( real(double), intent(in) angle)

Print angle as dd.mm string, HTML version input in rad, output between -99 and +99 !!!

Parameters
angleAngle (rad)
Return values
wdmm2Angle as dd.mm string

Definition at line 1006 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wdmm2().

Referenced by wdmm2().

Here is the call graph for this function:

◆ wdmmm2()

pure character function, dimension(19) sufr_angle2string::wdmmm2 ( real(double), intent(in) angle)

Print angle as dd:mm.m string, HTML version. Input in rad, output between -99 and +99 !!!

Parameters
angleAngle (rad)
Return values
wdmmm2Angle as dd:mm.m HTML string

Definition at line 1046 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wdmmm2().

Referenced by wdmmm2().

Here is the call graph for this function:

◆ wdms()

pure character function, dimension(26) sufr_angle2string::wdms ( real(double), intent(in) angle)

Print angle as ddd.mm.ss string, input in rad with °, ’ and ” - HTML version of dms()

Parameters
angleAngle (rad)
Return values
wdmsAngle as ddd.mm.ss HTML string

Definition at line 651 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev(), and wdms().

Referenced by wdms().

Here is the call graph for this function:

◆ wdms2()

pure character function, dimension(27) sufr_angle2string::wdms2 ( real(double), intent(in) angle)

Print angle as dms string, input in rad, output between -180 and +180 with °, ’ and ” -
HTML version of dms2()

Parameters
angleAngle (rad)
Return values
wdms2Angle as dms HTML string

Definition at line 737 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wdms2().

Referenced by wdms2().

Here is the call graph for this function:

◆ wdmss()

pure character function, dimension(29) sufr_angle2string::wdmss ( real(double), intent(in) angle)

Print angle as ddd.mm.ss.ss string, input in rad with °, ’ and ” - HTML version of dmss()

Parameters
angleAngle (rad)
Return values
wdmssAngle as ddd.mm.ss.ss HTML string

Definition at line 693 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev(), and wdmss().

Referenced by wdmss().

Here is the call graph for this function:

◆ wdmss2()

pure character function, dimension(30) sufr_angle2string::wdmss2 ( real(double), intent(in) angle)

Print angle as ddd.mm.ss.ss string, input in rad, output between -180 and +180 with °, ’ and ” -
HTML version of dmss2()

Parameters
angleAngle (rad)
Return values
wdmss2Angle as ddd.mm.ss.ss HTML string

Definition at line 785 of file angle2string.f90.

References sufr_kinds::double, sufr_constants::mm, sufr_constants::r2d, sufr_angles::rev2(), and wdmss2().

Referenced by wdmss2().

Here is the call graph for this function: