-
Notifications
You must be signed in to change notification settings - Fork 16
/
constants.py
56 lines (43 loc) · 1.47 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# constants.py
# -*- coding: utf-8 -*-
#
# The python script in this file makes the various parts of a model astrolabe.
#
# Copyright (C) 2010-2024 Dominic Ford <https://dcford.org.uk/>
#
# This code is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# You should have received a copy of the GNU General Public License along with
# this file; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301, USA
# ----------------------------------------------------------------------------
"""
The file contains global settings for the astrolabe.
"""
from math import pi
# Units
dots_per_inch: float = 200
unit_m: float = 1.
unit_cm: float = 1. / 100
unit_mm: float = 1. / 1000
# Angle conversion
unit_deg: float = float(pi / 180)
unit_rev: float = 2. * pi
# Margins around output
margin_fraction: float = 1.02
# Outer radius of astrolabe
r_1: float = 8.5 * unit_cm
# Distance between circles drawn on back of mother
d_12: float = 0.07 * r_1
# Font size
font_size_base: float = 3.2 * unit_mm
line_width_base: float = 0.2 * unit_mm
# Size of tab into which climate slots
tab_size: float = 5 * unit_deg
# Scaling factor for size of hole in middle of astrolabe
centre_scaling: float = 1 / 2.5 * 0.6
# Inclination of the ecliptic
inclination_ecliptic: float = 23.5