Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomwhite/dusk
A program to plot the time of dusk over the year for any given location on the Earth's surface
https://github.com/tomwhite/dusk
d3 geometry mathematics time visualization
Last synced: 7 days ago
JSON representation
A program to plot the time of dusk over the year for any given location on the Earth's surface
- Host: GitHub
- URL: https://github.com/tomwhite/dusk
- Owner: tomwhite
- Created: 2015-11-21T11:08:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-16T12:53:12.000Z (about 5 years ago)
- Last Synced: 2024-12-06T19:11:35.127Z (about 2 months ago)
- Topics: d3, geometry, mathematics, time, visualization
- Language: HTML
- Homepage: http://tomwhite.github.io/dusk/
- Size: 381 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A program to plot the time of [dusk](https://en.wikipedia.org/wiki/Dusk) over the year for any given location on the
Earth's surface. Curves for official (0° below horizon), civil (6°), nautical (12°), and astronomical (18°) dusk are
shown.**November 2019 update: the United States Naval Observatory site used for sunrise and sunset data has been taken down until
April 2020, see https://www.researchgate.net/post/What_has_happened_to_wwwusnonavymil**To run, first generate a data file as follows (you will need to change the lat/long parameters for other locations):
```bash
./fetch_crick.sh
python convert.py > target/data/crick.tsv
cp target/data/crick.tsv data.tsv
```or, for San Francisco:
```bash
./fetch_sf.sh
python convert.py > target/data/sf.tsv
cp target/data/sf.tsv data.tsv
```Next, run a local server:
```bash
python -m SimpleHTTPServer
```then visit http://localhost:8000/ to see the plot.
=== Java version ===
There's also a Java version, which may not be quite as accurate.
```bash
mvn -q exec:java -Dexec.mainClass=com.tom_e_white.dusk.Dusk > data.tsv
```