Philip P. Ide

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

User Tools

Site Tools


blog:aardvaark:mars_missions

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:aardvaark:mars_missions [2020/08/01 05:10] Phil Ideblog:aardvaark:mars_missions [2022/04/23 09:01] (current) Phil Ide
Line 1: Line 1:
 ====== Mars Mission Locator ====== ====== Mars Mission Locator ======
 {{:blog:aardvaark:download.png?direct&200 |Mars Missions}} {{: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.+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. 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.
 === === === ===
-{{ :blog:aardvaark:download.png?nolink |}}+<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. 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> <HTML>
Line 12: Line 14:
 <JS> <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 missions = [{"name":"Mars Perseverance","code":"M20","status":true,"lat":18.44462715,"lon":77.45088572,"landed":"2021-02-18","agency":"","vehicle_type":"rover","success":true,"above":false,"left":false,"active":true},{"name":"Mars InSight","code":"NSYT","status":true,"lat":4.502384,"lon":135.974,"landed":"2018-11-26","agency":"","vehicle_type":"lander","success":true,"above":true,"left":false,"active":true},{"name":"MSL Curiosity","code":"MSL","status":true,"lat":-4.589465,"lon":137.441635,"landed":"2012-08-06","agency":"","vehicle_type":"rover","success":true,"above":false,"left":false,"active":true},{"name":"Zhurong","code":"TW1","status":true,"lat":25.1,"lon":109.9,"landed":"2021-05-14","agency":"CNSA","vehicle_type":"lander","success":true,"above":false,"left":false,"active":true},{"name":"ExoMars 2022","code":"E22","status":false,"lat":18.2,"lon":335.45,"landed":"future","agency":"ESA","vehicle_type":"rover","success":false,"above":false,"left":false},{"name":"Mars Phoenix","code":"PHX","status":false,"lat":68.21878,"lon":234.24845,"landed":"2008-05-25","agency":"","vehicle_type":"lander","success":true,"above":false,"left":false},{"name":"MER-B Opportunity","code":"MERB","status":false,"lat":-1.9483,"lon":354.47417,"landed":"2004-01-25","agency":"","vehicle_type":"rover","success":true,"above":false,"left":false},{"name":"MER-A Spirit","code":"MERA","status":false,"lat":-14.571892,"lon":175.47848,"landed":"2004-01-04","agency":"","vehicle_type":"rover","success":true,"above":false,"left":true},{"name":"Mars Pathfinder","code":"MPF","status":false,"lat":19.09985,"lon":326.74576,"landed":"1997-07-04","agency":"","vehicle_type":"lander","success":true,"above":true,"left":false},{"name":"Viking Lander 2","code":"VL2","status":false,"lat":47.6698,"lon":134.2803,"landed":"1976-09-03","agency":"","vehicle_type":"lander","success":true,"above":false,"left":false},{"name":"Viking Lander 1","code":"VL1","status":false,"lat":22.2715,"lon":312.04863,"landed":"1976-07-20","agency":"","vehicle_type":"lander","success":true,"above":false,"left":false},{"name":"Beagle 2","code":"BEA","status":false,"lat":11.53,"lon":90.43,"landed":"","agency":"","vehicle_type":"lander","success":false,"above":false,"left":false},{"name":"ExoMars Schiaparelli","code":"EDM","status":false,"lat":-2.07,"lon":353.79,"landed":"","agency":"NASA","vehicle_type":"lander","success":false,"above":true,"left":false},{"name":"Mars Polar Lander","code":"MPL","status":false,"lat":-76.1,"lon":169.7,"landed":"","agency":"","vehicle_type":"lander","success":false,"above":false,"left":false},{"name":"Mars 6","code":"M6","status":false,"lat":-23.9,"lon":345.58,"landed":"","agency":"","vehicle_type":"lander","success":false,"above":false,"left":false},{"name":"Mars 3","code":"M3","status":false,"lat":-45,"lon":202,"landed":"","agency":"","vehicle_type":"lander","success":false,"above":false,"left":false},{"name":"Mars 2","code":"M2","status":false,"lat":-45,"lon":47,"landed":"","agency":"","vehicle_type":"lander","success":false,"above":false,"left":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 += 10 ){
 +    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 +=10 ){
 +    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';
 +    }
 +    else if( item.landed == "future" ){
 +        //ctx.fillStyle = '#00ffe0';
 +        ctx.fillStyle = '#ffffff';
 +    }
 +    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%4) ? posy+20 : posy-10;
 +    posy = (item.above) ? posy-10 : posy+20;
 +    posx = (item.left) ? posx-10 : posx;
 +    ctx.fillStyle = '#00ffe0';
 +    ctx.fillText( item.code, posx, posy);
 +  });
 +}
  
 o = document.getElementById('trouble'); o = document.getElementById('trouble');
Line 21: Line 98:
  
 for( i = 0; i < missions.length; i++ ){ for( i = 0; i < missions.length; i++ ){
 +    if( missions[i].above ) above = "Yes";
 +    else above = "-";
     var r = "<tr>"+     var r = "<tr>"+
                  "<td>"+missions[i].code+"</td>"+                  "<td>"+missions[i].code+"</td>"+
Line 26: Line 105:
                  "<td>"+missions[i].vehicle_type+"</td>"+                  "<td>"+missions[i].vehicle_type+"</td>"+
                  "<td>"+missions[i].landed+"</td>"+                  "<td>"+missions[i].landed+"</td>"+
-                 "<td>"+missions[i].agency+"</td>";+                 "<td>"+missions[i].agency+"</td>"
     if( missions[i].landed == "future" ){     if( missions[i].landed == "future" ){
         r += "<td>-</td><td>-</td>";         r += "<td>-</td><td>-</td>";
     }     }
     else {     else {
-        r += "<td>"+Yesno(missions[i].success, missions[i].landed != "future")+"</td>"++        r += "<td>"+Yesno(missions[i].success, false)+"</td>"+
              "<td>"+Yesno(missions[i].active, false)+"</td>";              "<td>"+Yesno(missions[i].active, false)+"</td>";
     }     }
 +    //r += "<td>"+Yesno(missions[i].above, false)+"</td>"
     table += r+"</tr>";     table += r+"</tr>";
 }; };
Line 46: Line 126:
 </JS> </JS>
 Data is culled (and then massaged) from the NASA/GISS software, Mars24. Data is culled (and then massaged) from the NASA/GISS software, Mars24.
 +
 +~~socialite~~
 +~~DISCUSSION~~
blog/aardvaark/mars_missions.1596258607.txt.gz · Last modified: 2020/08/01 05:10 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