A topography analysis system for astronomy enthusiasts
Project description
Astronomy AI - Topography Analysis System
A simple and powerful system for analyzing locations for astronomy purposes, including elevation data and telescope obstruction analysis.
🚀 Quick Start
Step 1: Install Dependencies
pip install requests
Step 2: Run the System
python demo.py
📋 Features
- Elevation Analysis - Get elevation data for any location
- Location Parsing - Supports addresses and coordinates
- Quality Assessment - Evaluates location quality for astronomy
- Recommendations - Provides telescope orientation suggestions
- Multiple APIs - Uses free elevation and geocoding services
🎯 How to Use
-
Run the program:
python demo.py -
Enter a location:
- Address: "Mount Wilson Observatory, California"
- Coordinates: "34.0522, -118.2437"
- City: "Denver, Colorado"
-
Get results:
- Elevation data
- Location quality assessment
- Telescope recommendations
- Suggestions for better viewing
📊 Example Output
🌌 Astronomy AI - Topography Analysis System
==================================================
Example locations you can analyze:
1. Mount Wilson Observatory, California
2. 40.7589, -73.9851
3. 34.0522, -118.2437
4. Denver, Colorado
5. Flagstaff, Arizona
Or enter your own location (address or coordinates):
Enter location (or 'quit' to exit): Flagstaff, Arizona
🔍 Analyzing location: Flagstaff, Arizona
Fetching elevation data...
Performing analysis...
============================================================
ASTRONOMY AI - LOCATION ANALYSIS RESULTS
============================================================
📍 Location: Flagstaff, Coconino County, Arizona, USA
Coordinates: 35.1983, -111.6513
🏔️ Elevation Analysis:
Elevation: 2106m
Quality: Excellent
📊 Analysis:
Location quality: Excellent
Recommendation: High elevation - great for astronomy!
💡 Recommendations:
Location quality: Excellent
Telescope orientation: Point telescope toward the horizon for best views
💡 Suggestions:
• Current elevation: 2106m
• High elevation - great for astronomy!
• Consider checking weather conditions
• Look for areas with minimal light pollution
============================================================
🔧 Installation
Minimal Installation (Recommended)
pip install requests
Full Installation (Optional)
pip install requests python-dotenv
📁 Files
demo.py- Main applicationrequirements.txt- Python dependenciesREADME.md- This file
🌟 Features Explained
Elevation Analysis
- Fetches elevation data from multiple free APIs
- Provides elevation quality assessment
- Compares to ideal astronomy elevations
Location Parsing
- Supports various input formats:
- Full addresses: "Mount Wilson Observatory, California"
- Coordinates: "34.0522, -118.2437"
- City names: "Denver, Colorado"
Quality Assessment
- Excellent: >2000m elevation
- Good: 1000-2000m elevation
- Fair: 500-1000m elevation
- Poor: <500m elevation
Recommendations
- Telescope orientation suggestions
- Weather considerations
- Light pollution advice
- Alternative location suggestions
🔍 APIs Used
- Open-Elevation API - Primary elevation data
- USGS National Map API - Fallback elevation data
- Nominatim (OpenStreetMap) - Geocoding services
All APIs are free and don't require API keys.
🛠️ Troubleshooting
Common Issues
-
"ModuleNotFoundError: No module named 'requests'"
pip install requests
-
"Connection error"
- Check your internet connection
- Try again in a few minutes
-
"Location not found"
- Try a different location name
- Use coordinates instead of address
Getting Help
If you encounter any issues:
- Make sure you have Python 3.7+ installed
- Install the required dependencies
- Check your internet connection
- Try the example locations first
🎉 Success!
Once you see the interactive prompt, you're ready to analyze locations for astronomy purposes!
Enter any location and get instant elevation data, quality assessment, and telescope recommendations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astronomy_topography_system-1.0.0.tar.gz.
File metadata
- Download URL: astronomy_topography_system-1.0.0.tar.gz
- Upload date:
- Size: 54.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181c020f068e572af591bcc506688a022fc3d11d7c51551207afae14f2b1a19c
|
|
| MD5 |
d8c17936297a5f23c1ec8442291d77c6
|
|
| BLAKE2b-256 |
705f1bc2fe54a89a38fd621162ea7b6f7659022e2f7b8ab629084b1095011e08
|
File details
Details for the file astronomy_topography_system-1.0.0-py3-none-any.whl.
File metadata
- Download URL: astronomy_topography_system-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
746a3386817cc64fd80588f5039442a844ef815067ba3ff7eba96c828b7576d7
|
|
| MD5 |
924f67c750b24d125b1eda439dbe55c8
|
|
| BLAKE2b-256 |
dddca6e52fff6d0aee04c070e55347d06e60bc88d0f66a6684c902aaabc3368c
|