From 896e3f35835b5afa2a678949c637c5ac7feca0f9 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 12 Jun 2022 19:35:55 -0600 Subject: [PATCH] no galmon-observers --- galmon-observers | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 galmon-observers diff --git a/galmon-observers b/galmon-observers deleted file mode 100755 index b12f3b5..0000000 --- a/galmon-observers +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python3 -""" - galmon-observers - Retrieve Galmon observers, output SSC format for Celestia. - - Copyright (C) 2022, Jeff Moe, jebba. - Author: Jeff Moe - - 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 2 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 . -""" - -# Usage: -# galmon-observers -# Example: -# ./galmon-observers - -import pandas as pd - -#observers_url='https://galmon.eu/observers.json' -observers_url='data/observers.json' - -observers = pd.read_json(observers_url, orient='records') - -for x in range(len(observers.id)): - print('Location "Observer ', observers["id"][x], - ', ', observers["owner"][x], '" ', - '"Sol/Earth"', sep="") - print('{') - print(' LongLat [', observers["longitude"][x], - observers["latitude"][x], "%.3f" %(observers["h"][x] / 1000), - ']') - print(' Importance 1000.00') - print(' Type "Observatory"') - print(' }') - print() -