Difference between revisions of "Template:Circle of latitude"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(add /doc)
imported>DePiep
Line 1: Line 1:
{{#switch: {{{1}}}
+
{{#switch: {{lc:{{{1}}}}}
  |Tropical=23° 26′ 16″{{#ifeq:{{{2}}}|Convert| (or {{#expr:(23+((26+(16/60))/60))round 4}}°)}}
+
  |tropical=23° 26′ 16″{{#ifeq:{{lc:{{{2}}}}}|convert| (or {{#expr:(23+((26+(16/60))/60))round 4}}°)}}
  |Polar=66° 33′ 44″{{#ifeq:{{{2}}}|Convert| (or {{#expr:(66+((33+(44/60))/60))round 4}}°)}}
+
  |polar=66° 33′ 44″{{#ifeq:{{lc:{{{2}}}}}|convert| (or {{#expr:(66+((33+(44/60))/60))round 4}}°)}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:13, 24 October 2014

Template documentation[view] [edit] [history] [purge]

Usage

  • |tropical or |polar
  • |convert is optional.
{{Circle of latitude|Tropical|convert}} → 23° 26′ 16″ (or 23.4378°)
{{Circle of latitude|polar}} → 66° 33′ 44″

This template uses a continuously updating formula found at http://www.neoprogrammics.com/obliquity_of_the_ecliptic. Note that this formula calculates the Mean Ecliptic, not the True Ecliptic, because it doesn't correct for Nutation.