-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocations.py
64 lines (45 loc) · 1.59 KB
/
locations.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
57
58
59
60
61
62
63
64
# locations.py
#
# A list of observatory locations
#
# Harry Krantz
# Steward Observatory
# University of Arizona
# Copyright May 2020
# @author modifications: Ian Snider
# Truman State University
# This program 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 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from skyfield.api import Topos
#empty dict
locations = {}
#Hopkins
hopkins = Topos(31.688, -110.883, elevation_m=2608)
locations["Hopkins"] = hopkins
#Bigelow
bigelow = Topos(32.4165, -110.7345, elevation_m=2510)
locations["Bigelow"] = bigelow
#Bok
bok = Topos(31.9629, -111.6004, elevation_m=2071)
locations["Bok"] = bok
#Lemmon
lemmon = Topos(32.44257, -110.7889, elevation_m=2805)
locations["Lemmon"] = lemmon
#TSUFarm
tsufarm = Topos(40.178803, -92.600666, elevation_m=297)
locations["TSU farm"] = tsufarm
# function to ask for user input
def inputLocation(latEntry, lonEntry, elevationEntry):
lat = float(latEntry.get())
lon = float(lonEntry.get())
elev = int(elevationEntry.get())
my_location = Topos(lat, lon, elevation_m=elev)
return my_location