GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SkyAlmanac-Py2/config.py at main · aendie/SkyAlmanac-Py2 Expand file tree/ Copy pathconfig.pyMore file actions 62 lines (51 loc) · 2.17 KB / Copy pathconfig.pyFile metadata and controls62 lines (51 loc) · 2.17 KB 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 #!/usr/bin/env python2 # -*- coding: UTF-8 -*- # Copyright (C) 2021 Andrew Bauer # 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/>. # ================ EDIT LINES IN THIS SECTION ONLY ================ # choose an ephemeris (ephndx = 0, 1 or 2): # 0 de421.bsp 1900 to 2050 # 1 de405.bsp 1900 to 2200 # 2 de406.bsp 1900 to 2750 (Equation of Time may show ??:?? after 2750) ephndx = 0 # note: the datetime strftime() methods require year >= 1900 pgsz = 'A4' # page size 'A4' or 'Letter' (global variable) moonimg = True # 'True' to include a moon image; otherwise 'False' useIERS = True # 'True' to download finals2000A.all; 'False' to use built-in UT1 tables ageIERS = 30 # download a new finals2000A.all version after 'ageIERS' days if useIERS=True # ================ DO NOT EDIT LINES BELOW HERE ================ # define global variables logfileopen = False ephemeris = [['de421.bsp',1900,2050],['de405.bsp',1900,2200],['de406.bsp',1900,2750]] tbls = '' # table style (global variable) decf = '' # Declination format (global variable) # list of latitudes to include for Sunrise/Sunset/Twilight/Moonrise/Moonset... lat = [72,70,68,66,64,62,60,58,56,54,52,50,45,40,35,30,20,10,0,-10,-20,-30,-35,-40,-45,-50,-52,-54,-56,-58,-60] # open/write/close a log file def initLOG(): global errors errors = 0 global logfile logfile = open('debug.log', 'w') global logfileopen logfileopen = True # write to log file def writeLOG(text): logfile.write(text) return # close log file def closeLOG(): logfileopen = False logfile.close() return |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |