Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:aardvaark:temp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:aardvaark:temp [2020/08/01 05:14] – created Phil Ideblog:aardvaark:temp [2020/08/01 05:21] (current) – removed Phil Ide
Line 1: Line 1:
-====== Mars Mission Locator ====== 
-{{:blog:aardvaark:download.png?direct&200 |Mars Missions}} 
-The location of all the missions that have gone to Mars can be confusing when you don't know where they went. Many missions never made it to the surface successfully, or had a malfunction that prevented them from working properly. Some of the landers introduced themselves to the surface with a little too much vigour. Others sailed on past Mars never to be seen again. 
  
-The map below details the NASA and ESA missions, including the intended landing sites of the upcoming NASA Mars2020 Perseverance Rover (and the Ingenuity helicopter), and the ESA ExoMars Rover (now slated for launch in 2022). I'll update the map at a later date with something a little less static, and include the USSR/RosCosmos missions, CNSA missions, and any others (such as ISRO, CSA and UAE) that might launch in the future. 
-=== === 
-<HTML> 
-<canvas id=map width='800px' height='400px'></canvas> 
-</HTML> 
-If it's red, it didn't end well, although not all of them pancaked: notably, the Beagle 2 appears to have landed safely, but one or perhaps two of its solar panels failed to open (one might have prevented the other from opening), resulting in the antenna being blocked, frustrating communications. 
-<HTML> 
-<span id=trouble></span> 
-</HTML> 
-<JS> 
-//############# 
-var missions = [{"name":"InSight","code":"NSYT","status":true,"lat":4.502384,"lon":135.623447,"landed":"2018-11-26","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Curiosity","code":"MSL","status":true,"lat":-4.589465,"lon":137.441635,"landed":"2012-08-06","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Perseverance","code":"M20","status":false,"lat":18.670633,"lon":77.4298,"landed":"future","agency":"NASA","vehicle_type":"rover","success":false},{"name":"ExoMars 2022","code":"E22","status":false,"lat":18.2,"lon":335.45,"landed":"future","agency":"ESA","vehicle_type":"rover","success":false},{"name":"Phoenix","code":"PHX","status":false,"lat":68.21878,"lon":234.24845,"landed":"2008-05-25","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Opportunity","code":"MERB","status":false,"lat":-1.9483,"lon":354.47417,"landed":"2004-01-25","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Spirit","code":"MERA","status":false,"lat":-14.571892,"lon":175.47848,"landed":"2004-01-04","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Pathfinder","code":"MPF","status":false,"lat":19.09985,"lon":326.74576,"landed":"1997-07-04","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Viking Lander 2","code":"VL2","status":false,"lat":47.6698,"lon":134.2803,"landed":"1976-09-03","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Viking Lander 1","code":"VL1","status":false,"lat":22.2715,"lon":312.04863,"landed":"1976-07-20","agency":"NASA","vehicle_type":"lander","success":true},{"name":"Beagle 2","code":"BEA","status":false,"lat":11.6,"lon":95.5,"landed":"","agency":"ESA","vehicle_type":"lander","success":false},{"name":"ExoMars Schiaparelli","code":"EDM","status":false,"lat":-2.07,"lon":353.79,"landed":"","agency":"ESA","vehicle_type":"lander","success":false},{"name":"Polar Lander","code":"MPL","status":false,"lat":-76.1,"lon":169.7,"landed":"","agency":"NASA","vehicle_type":"lander","success":false},{"name":"Mars 6","code":"M6","status":false,"lat":-23.9,"lon":345.58,"landed":"","agency":"USSR","vehicle_type":"lander","success":false},{"name":"Mars 3","code":"M3","status":false,"lat":-45,"lon":202,"landed":"","agency":"USSR","vehicle_type":"lander","success":false},{"name":"Mars 2","code":"M2","status":false,"lat":-45,"lon":47,"landed":"","agency":"USSR","vehicle_type":"lander","success":false}] 
-//############# 
-var backgroundImage = new Image(); 
-backgroundImage.src = '/lib/exe/fetch.php/blog/aardvaark/mars_relief_800.jpg'; 
-var canvas = document.getElementById('map'); 
-var ctx = canvas.getContext("2d"); 
-var doOnce = true; 
- 
-backgroundImage.onload = function(){ 
-    ctx.drawImage(backgroundImage, 0, 0); 
-    drawMap(); 
-} 
- 
-//canvas.style.border = 'solid 1px #000'; 
- 
-function drawMap(){ 
-  var vw = canvas.width/360; 
-  var vh = canvas.height/180; 
- 
-  ctx.font = "12px Arial"; 
-  ctx.textAlign = "center"; 
-  ctx.lineWidth = 0.5; 
-  ctx.strokeStyle = '#ccc'; 
-  ctx.moveTo( 0, 0 ); 
-  ctx.lineTo( 0, canvas.height ); 
- 
-  for( i = 20; i < 375; i += 20 ){ 
-    var v = Math.ceil(i*vw); 
-    ctx.moveTo( v, 0 ); 
-    ctx.lineTo( v, canvas.height ); 
-    var p = i <= 180 ? 180-i : i-180;  
-    ctx.fillText( p,  v, canvas.height-10 ); 
-    ctx.fillText( p,  v, 10 ); 
-  } 
-  ctx.stroke(); 
-  for( i = 20; i < 180; i +=20 ){ 
-    var v = Math.round(i*(canvas.height/180)); 
-    ctx.moveTo( 0, v ); 
-    ctx.lineTo( canvas.width, v ); 
-    var p = i <= 90 ? 90-i : i-90;  
-    ctx.fillText( p,  10, v ); 
-    ctx.fillText( p,  canvas.width-10, v ); 
-  } 
-  ctx.moveTo(0, canvas.height/2); 
-  ctx.lineTo( canvas.width, canvas.height/2 ); 
-  ctx.fillText( "0",  10, canvas.height/2 ); 
-  ctx.fillText( "0",  canvas.width-10, canvas.height/2 ); 
-  ctx.stroke(); 
-  ctx.strokeStyle = '#00ffe0'; 
-  ctx.fillStyle = '#fffe00'; 
-  missions.forEach( function(item, index){ 
-    ctx.beginPath(); 
-    ctx.fillStyle = '#fffe00'; 
-    if( !item.success && item.landed != "future" ){ 
-        ctx.fillStyle = '#ff0000'; 
-    } 
-    var posx = item.lon%180; 
-    if( item.lon < 180 ) posx += 180; 
-    posx = posx*vw; 
-     
-    var posy = 90-item.lat; 
-    posy = posy*vh; 
- 
-    ctx.moveTo(posx, posy); 
-    ctx.arc(posx, posy, 5, 0, 2 * Math.PI); 
-    ctx.fill(); 
-    ctx.closePath(); 
-    posy = (item.code == "MPF") ? posy-10 : (index%5) ? posy+20 : posy-10; 
-    ctx.fillStyle = '#00ffe0'; 
-    ctx.fillText( item.code, posx, posy); 
-  }); 
-} 
- 
-o = document.getElementById('trouble'); 
-var table = "<table>"+ 
-                "<tr><th>Code</th><th>Name</th><th>Type</th><th>Landed</th><th>Agency</th><th>Success</th><th>Active</th></tr>"; 
- 
-for( i = 0; i < missions.length; i++ ){ 
-    var r = "<tr>"+ 
-                 "<td>"+missions[i].code+"</td>"+ 
-                 "<td>"+missions[i].name+"</td>"+ 
-                 "<td>"+missions[i].vehicle_type+"</td>"+ 
-                 "<td>"+missions[i].landed+"</td>"+ 
-                 "<td>"+missions[i].agency+"</td>"; 
-    if( missions[i].landed == "future" ){ 
-        r += "<td>-</td><td>-</td>"; 
-    } 
-    else { 
-        r += "<td>"+Yesno(missions[i].success, missions[i].landed != "future")+"</td>"+ 
-             "<td>"+Yesno(missions[i].active, false)+"</td>"; 
-    } 
-    table += r+"</tr>"; 
-}; 
- 
-table += "</table>"; 
-o.innerHTML = table; 
- 
-function Yesno(x, fail ){ 
-   if( fail ) return x ? "Yes" : "failed"; 
-   return x ? "Yes" : "no"; 
-} 
-</JS> 
-Data is culled (and then massaged) from the NASA/GISS software, Mars24. 
blog/aardvaark/temp.1596258854.txt.gz · Last modified: 2020/08/01 05:14 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki