# Predicting Manhattanhenge

At the time of writing, Manhattanhenge is tonight in New York City (ref 1), "an event during which the setting sun is aligned with the east–west streets of the main street grid of Manhattan, New York City." (ref 2)

Is there a way to predict future dates of Manhattanhenge for other years, or more generally creating your own for your home town? (ie. Sunset down main street of AnyTown, USA)

Thinking of SunPosition at Sunset for Lat, Long; but how to set it to up for matches direction needed for your hometown? (or Manhattan if replicating Manhattanhenge)

EDIT Reducing scope of question from comments: The azimuth angles don't match on that date and time. If can understand the azimuth discrepancy I can figure out the rest. Thank you.

I tried the following code for today (7/11/2016) for Times Square, knowing it is Manhattanhenge, but the azimuth angle does not equal the azimuthal direction going along 42nd st.

TimesSquare = GeoPosition[{40.7589, -73.9851}] ;
Pt42nd1 = GeoPosition[{40.749467, -73.970835}];
Pt42nd2 = GeoPosition[{40.761835, -74.000741}];
SunPosition[TimesSquare, Sunset[TimesSquare, DateObject[{2016, 07, 11, 12, 0}]]]
GeoDirection[Pt42nd1, Pt42nd2]


Output:

{300.28°, -0.74°}
-61.4505°


• Have you tried anything - or is this a coding request? Jul 11, 2016 at 21:44
• Yes, thank you - it is more of a coding request. I couldn't figure out where to even start. Jul 11, 2016 at 21:50
• Try to make a table using SunPosition for the sun location along the horizon at sunset for each day. Pick the right one. Jul 11, 2016 at 21:55
• Thank you, I tried for today for Times Square but could not make the angles equal. Edited the question with the code used. Jul 12, 2016 at 2:54
• I'm voting to close this question as off-topic because the OP, showing little or no effort of his own, is simply begging others to write code for him Jul 12, 2016 at 15:18