Re: Complicated Date to Lat Reverse function



On 10 Jan 2006 09:06:34 -0800, "jshanman" <jcshanks@xxxxxxxxxxxxx>
wrote:

>I am writing a timeline that uses Google Maps. I have a function that
>converts a date time to latitude coords. This function is used to draw
>the markers on the timeline. I need a reverse function to convert a
>latitude coord back to an accurate date time. Then I could detect the
>day/hour in the viewport when the timeline is zoomed in or out, or if
>it is moved. I cannot use the javascript date functions because this
>timeline will eventually be used for BC and AD years.


No comment on your code, but I think you mean Longitude, not Latitude.

This sort of calculation gets to be really fun when you are computing
light/dark areas!

Project for the Student:

Calculate the position of an instrument that logs light or dark with a
timestamp in UTC, and no other information

This is a real project that we did some years ago for an instrument
package light enough to be carried by an albatross!

Paul
.



Relevant Pages

  • Re: Complicated Date to Lat Reverse function
    ... >I am writing a timeline that uses Google Maps. ... >converts a date time to latitude coords. ... Before writing in a language, ...
    (comp.lang.javascript)
  • Javascript Latitude to Date function
    ... I am writing a timeline that uses Google Maps. ... converts a date time to latitude coords. ... RelYear = syear - byear; ...
    (sci.math.num-analysis)
  • Complicated Date to Lat Reverse function
    ... I am writing a timeline that uses Google Maps. ... converts a date time to latitude coords. ... RelYear = syear - byear; ...
    (comp.lang.javascript)
  • Re: Chewy Papadopoulous owes me an apology
    ... of the timeline particularly notable. ... The one point I would contest in this excellent history is the ... in 1620 he recorded an instrument "...made of a great gourd and a neck, ...
    (rec.audio.pro)

Loading