Download orbitlight.py from phanerozoic/orbitlight: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/phanerozoic/orbitlight/resolve/main/orbitlight.py
- Command line
-
hf download hf://datasets/phanerozoic/orbitlight/orbitlight.py
-
curl -L -o orbitlight.py https://huggingface.co/datasets/phanerozoic/orbitlight/resolve/main/orbitlight.py
1.14 kB
| """orbitlight: planet-frame searches of archived high-resolution spectra. | |
| python orbitlight.py transits plan|fetch|record ... the rocky planets of red dwarfs at He I 10830, H alpha and Na D | |
| python orbitlight.py giants plan|fetch|search|reflected|emission|record ... | |
| python orbitlight.py companions plan|test|search|survey|reanalyse ... | |
| Each mode's --help lists its options. Data live under ORBITLIGHT_DATA (default ./data) and results under ORBITLIGHT_RESULTS (default <data>/results).""" | |
| import os | |
| import sys | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| def main(): | |
| if len(sys.argv) < 2 or sys.argv[1] not in ("transits", "giants", "companions"): | |
| sys.exit(__doc__) | |
| mode, rest = sys.argv[1], sys.argv[2:] | |
| sys.argv = ["orbitlight.py " + mode] + rest | |
| if mode == "transits": | |
| from orbitlight.transits import shoreline_cli | |
| shoreline_cli() | |
| elif mode == "giants": | |
| from orbitlight.giants import giants_cli | |
| giants_cli() | |
| else: | |
| from orbitlight.companions import companions_cli | |
| companions_cli() | |
| if __name__ == "__main__": | |
| main() | |