Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"servers": {
"microsoft/markitdown": {
"type": "stdio",
"command": "uvx",
"args": [
"markitdown-mcp@0.0.1a4"
],
"gallery": "https://api.mcp.github.com",
"version": "1.0.0"
}
},
"inputs": []
}
63 changes: 63 additions & 0 deletions QAG Notebooks/NASABridge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import requests
import json
from datetime import datetime

# --- NASA API Bridge ---
# We use the public DEMO key to pull real-time data
NASA_API_URL = "https://api.nasa.gov/neo/rest/v1/feed"
API_KEY = "DEMO_KEY"

def fetch_nasa_data():
"""Pulls today's Near Earth Object (asteroid) orbital data from NASA."""
today = datetime.today().strftime('%Y-%m-%d')
print(f"Opening connection to NASA servers for date: {today}...\n")

# Building the network request (This relies on standard earthly internet protocols)
params = {
'start_date': today,
'end_date': today,
'api_key': API_KEY
}

try:
# Pinging NASA
response = requests.get(NASA_API_URL, params=params)
response.raise_for_status() # Check for 100% data fidelity on the download

data = response.json()
return data['near_earth_objects'][today]

except requests.exceptions.RequestException as e:
print(f"Earthly Network Static encountered: {e}")
return None

# --- Main UFT Processing Terminal ---
def run_qag_data_comparison():
print("Initiating Comprehensive NASA vs. QAG Tool...\n")

asteroid_data = fetch_nasa_data()

if asteroid_data:
print(f"Successfully pulled {len(asteroid_data)} celestial objects from NASA.")
print("-" * 50)

for index, asteroid in enumerate(asteroid_data[:3]): # Let's just look at the first 3
name = asteroid['name']
speed_km_s = float(asteroid['close_approach_data'][0]['relative_velocity']['kilometers_per_second'])
miss_distance_km = float(asteroid['close_approach_data'][0]['miss_distance']['kilometers'])

print(f"Object: {name}")
print(f"Standard Observed Speed: {speed_km_s:.2f} km/s")
print(f"Distance from Earth: {miss_distance_km:,.2f} km")

# This is where we will eventually inject the QAG Local Shield math!
# Example: qag_speed = qag_engine.apply_local_shield(speed_km_s, miss_distance_km)

print("-" * 50)

print("\nData pulled with 100% informational fidelity.")
print("Ready to route through Quantum Affinity variables.")

# Ignite the script
if __name__ == "__main__":
run_qag_data_comparison()
62 changes: 62 additions & 0 deletions QAG Notebooks/QAGShieldViz.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import numpy as np
import matplotlib.pyplot as plt

print("Initiating Universal UFT Local Shield Visualizer...")

# --- 1. Set Up the Cosmic Canvas ---
plt.style.use('dark_background')
fig, ax = plt.subplots(figsize=(10, 8))

# Map the Local Space (A grid of 100,000 km around Earth)
grid_size = 100000
x = np.linspace(-grid_size, grid_size, 300)
y = np.linspace(-grid_size, grid_size, 300)
X, Y = np.meshgrid(x, y)

# --- 2. Calculate the Universal UFT Math ---
# Calculate the distance from Earth (r) for every pixel
R = np.sqrt(X**2 + Y**2)
R[R == 0] = 0.1 # Prevent dividing by zero at the exact center

# The Local Shield Math: Scaling the distance down for the tensor math
r_scaled = R / 1e8

# The Shielding Effect:
# Approaches 0 near Earth (Pure Newton), approaches 1 far away (Full QAG Variance)
shielding_effect = 1.0 - np.exp(-r_scaled * 1000.0)

# --- 3. Paint the QAG Affinity Field ---
# We use a contour map to show the massive modes relaxing
contour = ax.contourf(X, Y, shielding_effect, levels=50, cmap='magma', alpha=0.7)
cbar = plt.colorbar(contour)
cbar.set_label('QAG Variance Shielding (0 = Pure Newton)', color='cyan', fontsize=11)

# --- 4. Draw Earth and the Asteroid ---
# Draw the Earth right in the center
earth = plt.Circle((0, 0), 6371, color='dodgerblue', label='Earth (Screening Center)')
ax.add_patch(earth)

# Plot a simulated parabolic flyby for our verified asteroid
t = np.linspace(-grid_size, grid_size, 100)
asteroid_x = t
asteroid_y = 0.0001 * t**2 + 25000 # A close approach 25,000 km away
ax.plot(asteroid_x, asteroid_y, color='lime', linestyle='--', linewidth=2, label='Asteroid Trajectory')

# Mark the exact moment of closest approach
ax.plot(0, 25000, marker='*', color='yellow', markersize=15, label='Closest Approach')

# --- 5. Formatting the Output ---
ax.set_title('Universal UFT: Local Shield Active Around Earth', fontsize=14, color='cyan', pad=15)
ax.set_xlabel('Distance X (km)', fontsize=12)
ax.set_ylabel('Distance Y (km)', fontsize=12)
ax.legend(loc='upper right', framealpha=0.8)
ax.grid(True, color='gray', alpha=0.2)

# Ensure Earth is perfectly round
ax.set_aspect('equal', adjustable='box')

# Reveal the truth
plt.tight_layout()
plt.show()

print("Visualizer successfully manifested on screen.")
Loading