forked from dcf21/astrolabe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
56 lines (43 loc) · 1.38 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-2022 Dominic Ford <[email protected]>
#
# 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 = 200
unit_m = 1.
unit_cm = 1. / 100
unit_mm = 1. / 1000
# Angle conversion
unit_deg = float(pi / 180)
unit_rev = 2. * pi
# Margins around output
margin_fraction = 1.02
# Outer radius of astrolabe
r_1 = 8.5 * unit_cm
# Distance between circles drawn on back of mother
d_12 = 0.07 * r_1
# Font size
font_size_base = 3.2 * unit_mm
line_width_base = 0.2 * unit_mm
# Size of tab into which climate slots
tab_size = 5 * unit_deg
# Scaling factor for size of hole in middle of astrolabe
centre_scaling = 1 / 2.5 * 0.6
# Inclination of the ecliptic
inclination_ecliptic = 23.5