Calculate sundial geometry and the equation of time, and plot the analemma
Project description
They deciphered my analemma!
- Fraa Orolo in Anathem by Neal Stephenson (2008)
The analemma is the beautiful double-loop path traced by the shadow on a sundial (or the sun in the sky) when observed at the same time each day throughout one year. This package calculates and plots the analemma for all types of sundial anywhere on earth, or any planet.
pip install analemma
Resources
The analemma package implements the mathematics of sundial and orbits for an arbitrary sundial geometry and orientation placed anywhere on any planet. The analemma expressed in an exact parametric expression which reduces to standard results for the special cases of common dial types. Despite sundials being thousands of years old, I cannot find an expression for the analemma quite as general as this in the literature.
Reference Article
The analemma is derived from first principles in The sundial problem from a new angle - Russell Goyder.pdf - the latest version of a paper originally published in the European Journal of Physics in 2006. The LaTeX source and figures for the paper are in the analemma repository.
Jupyter Notebooks
You can view and run Jupyter notebooks which reproduce all derivations and calculations in the article using symbolic algebra.
I used geometric algebra for this work and have a cheat sheet which could you useful if you familiar with the topic.
Presentations
I presented this work in part 1 and part 2 of a metauni seminar.
Building the LaTeX source
To build, run latexmk -pdf in docs/paper. To clean up, latexmk -C and if you want, find figs -name 'figure?.eps-converted-to.pdf' | xargs rm. Note - fixed a typo in figure 3 (DialFrame.fig) using inkscape which couldn't save as fig, so I saved it as DialFrame.svg.
This work is licensed under a Creative Commons Attribution 4.0 International License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file analemma-0.4.tar.gz.
File metadata
- Download URL: analemma-0.4.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953339e6776d944cbd3cf3d702240e982c3235e5bdcf2de0bf22daf834e25cef
|
|
| MD5 |
478b0cc198d41f80c9f399b459308870
|
|
| BLAKE2b-256 |
e11da7a81d9561c7440f2e1325b193d5dd482fe9c9043c146c0eac7f13c85a19
|
Provenance
The following attestation bundles were made for analemma-0.4.tar.gz:
Publisher:
publish-to-pypi.yml on russellgoyder/analemma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
analemma-0.4.tar.gz -
Subject digest:
953339e6776d944cbd3cf3d702240e982c3235e5bdcf2de0bf22daf834e25cef - Sigstore transparency entry: 238896112
- Sigstore integration time:
-
Permalink:
russellgoyder/analemma@7dc131df3ac7e718a222498ea2beb361ee5109e9 -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/russellgoyder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@7dc131df3ac7e718a222498ea2beb361ee5109e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file analemma-0.4-py3-none-any.whl.
File metadata
- Download URL: analemma-0.4-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67275526467efd2c7eb643b6c1b67d14c290789c4a3526c877238f360fe0814
|
|
| MD5 |
b277b822e5dfc12b660f3d178570f942
|
|
| BLAKE2b-256 |
e883b3da370dfa22e14a751482435edaad6dd0317e65bba8e96b757b11347b22
|
Provenance
The following attestation bundles were made for analemma-0.4-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on russellgoyder/analemma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
analemma-0.4-py3-none-any.whl -
Subject digest:
d67275526467efd2c7eb643b6c1b67d14c290789c4a3526c877238f360fe0814 - Sigstore transparency entry: 238896114
- Sigstore integration time:
-
Permalink:
russellgoyder/analemma@7dc131df3ac7e718a222498ea2beb361ee5109e9 -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/russellgoyder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@7dc131df3ac7e718a222498ea2beb361ee5109e9 -
Trigger Event:
push
-
Statement type: