Merge branch 'dev' into simulation

This commit is contained in:
Dan
2024-05-19 01:13:46 -04:00
42 changed files with 612 additions and 13 deletions

View File

@@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/" href="/DeepImpact_Logo.jpeg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>Deep Impact</title>
</head>
<body>
<div id="root"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@@ -9,6 +9,8 @@ function NavBar() {
<li><Link to='/'><p className='text-2xl text-white hover:text-red-900'>Main</p></Link></li>
<li><Link to='scenario/'><p className='text-2xl text-white hover:text-red-900'>Scenario</p></Link></li>
<li><Link to='about/'><p className='text-2xl text-white hover:text-red-900'>About</p></Link></li>
<li><Link to='effects/'><p className='text-2xl text-white hover:text-red-900'>Effects</p></Link></li>
<li><Link to='defenses/'><p className='text-2xl text-white hover:text-red-900'>Defenses</p></Link></li>
</ul>
</div>
</>

View File

@@ -1,13 +1,28 @@
function About() {
return (
<>
<div>
<p>About</p>
<div className='text-white text-center flex flex-col w-1/2'>
<div className='m-4'>
<p className='text-2xl underline mb-2'>What is Deep Impact?</p>
<p>Deep impact is a web-app designed to give users insight into potential danger of asteroid impact. Using the NASA NeoWs API we have created a simulation tool to visualize incoming asteroids and various methods of asteroid deflection.</p>
</div>
<div className='m-4'>
<p className='text-2xl underline mb-2'>Our Team</p>
<ul>
<li>Daniel Smith-dePaz</li>
<li>Jordan Yamada</li>
<li>Pierre Bell</li>
<li>Michael Roy</li>
<li>Mickey Shoenberger</li>
<li>Jordan Edgington</li>
</ul>
</div>
<p className='italic m-4'>The Sky Is Falling!</p>
<p className='m-4'>To see learn more about Deep Impact, checkout our <a href='https://github.com/Team-Deep-Impact/Deep-Impact' className='underline hover:text-red-900'>GitHub</a>.</p>
</div>
</>
)
}
export default About

View File

@@ -0,0 +1,107 @@
const Defenses = () => {
return (
<>
<div>
<h1 className="text-center text-2xl text-white my-5">Defensive Options</h1>
<h2 className="text-center underline text-xl text-white my-5">What Can We Do?</h2>
<p className="text-l text-white">Defending Earth against potentially hazardous meteors or asteroids involves several strategies and technologies, primarily focused on detection, deflection, and disruption. Here are the primary defense options:</p>
<h3 className="text-xl text-white my-5">Early Detection and Monitoring</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Space-Based Telescopes:</strong> Deploying telescopes in space to continuously monitor the sky for Near-Earth Objects (NEOs). Examples include NASAs NEOWISE mission and the upcoming NEOCam.
</li>
<li className="text-l text-white mb-3">
<strong>Ground-Based Telescopes:</strong> Utilizing a network of observatories around the world to detect and track asteroids. Projects like the Pan-STARRS and the Catalina Sky Survey are part of this effort.
</li>
<li className="text-l text-white mb-3">
<strong>Data Sharing and Coordination:</strong> International collaboration through organizations like the International Asteroid Warning Network (IAWN) and the Space Mission Planning Advisory Group (SMPAG) to share data and coordinate responses.
</li>
</ul>
<h3 class="text-xl text-white my-5">Deflection Techniques</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Kinetic Impactor:</strong> This involves sending a spacecraft to collide with the asteroid at high speed, changing its trajectory. NASAs Double Asteroid Redirection Test (DART) mission is an example, scheduled to test this method on the moonlet of the asteroid Didymos.
</li>
<li className="text-l text-white mb-3">
<strong>Gravity Tractor:</strong> A spacecraft would fly alongside the asteroid for an extended period, using its gravitational pull to gradually alter the asteroids path.
</li>
<li className="text-l text-white mb-3">
<strong>Ion Beam Shepherd:</strong> This concept involves using ion thrusters to create a continuous stream of particles that push against the asteroid, slowly changing its trajectory over time.
</li>
</ul>
<h3 class="text-xl text-white my-5">Disruption Techniques</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Nuclear Explosions:</strong> A nuclear device could be detonated near or on the asteroid to either vaporize a portion of it or to alter its course significantly. This is considered a last resort due to the potential for fragmenting the asteroid into multiple pieces, which might still pose a threat.
</li>
<li className="text-l text-white mb-3">
<strong>Laser Ablation:</strong> Using high-powered lasers to vaporize the surface of the asteroid, creating jets of gas that would act as a propulsion mechanism to nudge the asteroid off course.
</li>
</ul>
<h3 class="text-xl text-white my-5">Civil Protection and Mitigation</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Impact Prediction and Modeling:</strong> Improved computer models to predict impact locations, potential damage, and secondary effects like tsunamis and atmospheric changes.
</li>
<li className="text-l text-white mb-3">
<strong>Evacuation Plans:</strong> Developing and rehearsing evacuation plans for regions identified as potential impact sites.
</li>
<li className="text-l text-white mb-3">
<strong>Global Response Coordination:</strong> Establishing international protocols for disaster response, resource distribution, and public communication.
</li>
</ul>
<h3 class="text-xl text-white my-5">General Effects on Human Civilization</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Economic Disruption:</strong> Severe damage to infrastructure, agriculture, and resources can lead to economic collapse in affected regions.
</li>
<li className="text-l text-white mb-3">
<strong>Human Casualties:</strong> Direct impact areas would suffer heavy casualties, with potential global consequences from secondary effects like famine and disease.
</li>
<li className="text-l text-white mb-3">
<strong>Global Cooperation and Response:</strong> Such an event would likely necessitate global cooperation for disaster response, food distribution, and potentially relocation of populations.
</li>
</ul>
<h3 class="text-xl text-white my-5">International Collaboration and Policy Development</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Space Treaties and Agreements:</strong> Strengthening international treaties and agreements to ensure cooperation and shared responsibility in asteroid detection and deflection efforts.
</li>
<li className="text-l text-white mb-3">
<strong>Funding and Research:</strong> Increasing funding for asteroid research, detection programs, and the development of deflection technologies.
</li>
</ul>
<h3 class="text-xl text-white my-5">Key Missions and Programs</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>NASAs Planetary Defense Coordination Office (PDCO):</strong> Coordinates efforts to detect, track, and characterize potentially hazardous asteroids and comets.
</li>
<li className="text-l text-white mb-3">
<strong>ESAs Hera Mission:</strong> A follow-up to NASAs DART mission, Hera will study the aftermath of the DART impact to gather critical data on the effectiveness of kinetic impactors.
</li>
<li className="text-l text-white mb-3">
<strong>Space Situational Awareness (SSA) Program:</strong> Run by the European Space Agency (ESA) to detect and track objects that pose a risk to Earth or to satellites in orbit.
</li>
</ul>
<h3 class="text-xl text-white my-5">Challenges and Considerations</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Timely Detection:</strong> Early detection is crucial, as deflection methods are more effective when applied well in advance of a potential impact.
</li>
<li className="text-l text-white mb-3">
<strong>Technological Development:</strong> Many of the proposed deflection techniques are still in the research or testing phase and require further development.
</li>
<li className="text-l text-white mb-3">
<strong>International Cooperation:</strong> Effective planetary defense requires global collaboration, as the impact of a large asteroid would have worldwide consequences.
</li>
</ul>
<div class="mt-3">
<p class="text-l text-white mb-10">By combining these strategies, the global community aims to protect Earth from the potentially devastating effects of asteroid impacts.</p>
</div>
</div>
</>
)
}
export default Defenses

View File

@@ -0,0 +1,86 @@
const Effects = () => {
return (
<>
<div>
<h1 className="text-center text-2xl text-white my-5">Effects of an Impact</h1>
<h2 className="text-center underline text-xl text-white my-5">The Impact of a Meteor Hitting Earth</h2>
<p className="text-l text-white">The impact of a meteor hitting Earth can vary widely depending on the size, composition, speed, and location of the impact. Here are the key impacts based on the size of the meteor:</p>
<h3 className="text-xl text-white my-5">Small Meteors (up to 25 meters in diameter)</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Atmospheric Entry:</strong> These meteors typically burn up upon entering the Earths atmosphere, causing a bright flash and potentially a sonic boom.
</li>
<li className="text-l text-white mb-3">
<strong>Damage:</strong> If fragments reach the ground, they may cause minor damage locally, such as breaking windows or small craters. An example is the Chelyabinsk meteor in 2013, which caused injuries mainly from broken glass.
</li>
</ul>
<h3 class="text-xl text-white my-5">Medium Meteors (25 meters to 1 kilometer in diameter)</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Local Destruction:</strong> A meteor in this size range can cause significant local destruction, including fires, shockwaves, and substantial craters.
</li>
<li className="text-l text-white mb-3">
<strong>Tsunamis:</strong> If it impacts an ocean, it can generate large tsunamis capable of affecting coastal areas over a wide region.
</li>
<li className="text-l text-white mb-3">
<strong>Climate Effects:</strong> Dust and debris thrown into the atmosphere can lead to short-term climate changes, such as impact winter, where sunlight is blocked, leading to global cooling and agricultural impacts.
</li>
</ul>
<h3 class="text-xl text-white my-5">Large Meteors (1 kilometer to 10 kilometers in diameter)</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Regional to Global Catastrophe:</strong> These impacts can cause massive destruction over hundreds of kilometers from the impact site. The blast, heat, and shockwave can annihilate life forms in the vicinity.
</li>
<li className="text-l text-white mb-3">
<strong>Tsunamis:</strong> If the impact occurs in the ocean, it would generate massive tsunamis with potentially devastating global effects on coastal regions.
</li>
<li className="text-l text-white mb-3">
<strong>Climate Disruption:</strong> The impact would throw vast amounts of dust, ash, and aerosols into the atmosphere, potentially causing global cooling for years. This can disrupt ecosystems, agriculture, and food supplies globally.
</li>
<li className="text-l text-white mb-3">
<strong>Extinctions:</strong> Such an event can lead to mass extinctions due to the combination of immediate destruction, climatic effects, and ecological collapse. The most well-known example is the Chicxulub impactor, which contributed to the extinction of the dinosaurs 66 million years ago.
</li>
</ul>
<h3 class="text-xl text-white my-5">Very Large Meteors (over 10 kilometers in diameter)</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Global Catastrophe:</strong> These are extremely rare but can cause near-instantaneous global devastation.
</li>
<li className="text-l text-white mb-3">
<strong>Immediate Effects:</strong> Massive firestorms, shockwaves, and tsunamis would affect the entire planet.
</li>
<li className="text-l text-white mb-3">
<strong>Long-term Effects:</strong> Severe climate changes, including extended impact winters, leading to mass extinctions and potentially the collapse of human civilization.
</li>
</ul>
<h3 class="text-xl text-white my-5">General Effects on Human Civilization</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Economic Disruption:</strong> Severe damage to infrastructure, agriculture, and resources can lead to economic collapse in affected regions.
</li>
<li className="text-l text-white mb-3">
<strong>Human Casualties:</strong> Direct impact areas would suffer heavy casualties, with potential global consequences from secondary effects like famine and disease.
</li>
<li className="text-l text-white mb-3">
<strong>Global Cooperation and Response:</strong> Such an event would likely necessitate global cooperation for disaster response, food distribution, and potentially relocation of populations.
</li>
</ul>
<h3 class="text-xl text-white my-5">Mitigation and Prevention</h3>
<ul>
<li className="text-l text-white mb-3">
<strong>Early Detection:</strong> Advances in space observation aim to detect potential impactors well in advance. Programs like NASAs Near-Earth Object (NEO) Observations Program work towards this goal.
</li>
<li className="text-l text-white mb-3">
<strong>Deflection Strategies:</strong> Potential strategies for deflecting an asteroid include kinetic impactors, gravitational tractors, or even nuclear devices to alter the asteroids trajectory.
</li>
</ul>
<div class="mt-3">
<p class="text-l text-white mb-10">In summary, while the impact of small meteors is relatively minor and localized, large meteors can have devastating global consequences. Preparedness and mitigation strategies are essential for minimizing the potential impacts of such events.</p>
</div>
</div>
</>
)
}
export default Effects

View File

@@ -4,7 +4,7 @@ function Main() {
return (
<>
<div>
<div className='w-7/12'>
<h1 class="text-center text-2xl text-white my-5">Welcome to Deep Impact!</h1>
<h2 class="text-center underline text-xl text-white my-5">Close Approaches</h2>
<h3 class="text-xl text-white my-3">How close?</h3>

View File

@@ -3,7 +3,7 @@ import { Stage, Layer, Circle, Text, Line } from 'react-konva';
import { Slider, Button } from '@mui/material';
import axios from 'axios';
const API_KEY = 'LF7i77oqghRiq54HEFJh991WgjHcKsETP9D5ofsg';
const EARTH_RADIUS_KM = 6371; // Earth's radius in kilometers
const EARTH_DISPLAY_SCALE = 0.01; // Display scale for Earth
const ASTEROID_DISPLAY_SCALE = 0.3; // Display scale for asteroids
@@ -47,9 +47,9 @@ function Scenario() {
useEffect(() => {
const fetchAsteroids = async () => {
const fetchAsteroids = async (self, request) => {
try {
const response = await axios.get(`https://api.nasa.gov/neo/rest/v1/neo/browse?api_key=${API_KEY}`);
const response = await axios.get(`http://localhost:8000/api/sentry/`);
asteroidsData.current = response.data.near_earth_objects;
setAsteroidData(0); // Set initial asteroid
} catch (error) {

View File

@@ -4,6 +4,8 @@ import App from "./App";
import Main from "./pages/main";
import Scenario from "./pages/scenario";
import About from "./pages/about";
import Effects from "./pages/effects";
import Defenses from "./pages/defenses";
const router = createBrowserRouter([
{
path: "/",
@@ -20,8 +22,15 @@ const router = createBrowserRouter([
{
path: 'about/',
element: <About />
},
{
path: 'effects/',
element: <Effects />
},
{
path: 'defenses/',
element: <Defenses />
}
],
},
]);