Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mwisp [2025/01/24 12:06]
Déborah Paradis
mwisp [2025/02/03 12:55] (current)
Déborah Paradis
Line 15: Line 15:
  
 ^  __**12CO **__  ^  __**13CO**__ ​ ^ ^  __**12CO **__  ^  __**13CO**__ ​ ^
-|  <​html><​div id="​aladin-lite-div-12co" class="​aladin-lite-container"></​div></​html> ​ |  <​html><​div id="​aladin-lite-div-13co" class="​aladin-lite-container"></​div></​html> ​ |+|  <​html><​div id="​aladin-lite-div-mwisp12co" class="​aladin-lite-container"></​div></​html> ​ |  <​html><​div id="​aladin-lite-div-mwisp13co" class="​aladin-lite-container"></​div></​html> ​ |  
 +<​html>​ 
 +<script src="​lib/​scripts/​aladin-btns.js"></​script>​ 
 +<​script>​ 
 +// Broadcast a table given a hub connection. 
 +var mwisp12co = function(connection) { 
 +    var msg = new samp.Message("​image.load.fits",​ 
 +    {"​url":​ "​http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_12CO_MOM0_1_16384_partial.fits","​name":"​MWISP 12CO(1-0) MOM0"} ); 
 +    connection.notifyAll([msg]);​ 
 +}; 
 +var mwisp13co = function(connection) { 
 +      var msg = new samp.Message("​image.load.fits",​ 
 +    {"​url":​ "​http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_13CO_MOM0_1_16384_partial.fits","​name":"​MWISP 13CO(1-0) MOM0"} ); 
 +      connection.notifyAll([msg]);​ 
 +}; 
 +</​script>​ 
 +</​html>​ 
  
 === Reference === === Reference ===
Line 24: Line 41:
 12CO Integrated Intensity : [[http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_12CO_MOM0_1_16384_partial.fits|MWISP_12CO_MOM0_1_16384_partial.fits]] 12CO Integrated Intensity : [[http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_12CO_MOM0_1_16384_partial.fits|MWISP_12CO_MOM0_1_16384_partial.fits]]
 <​html>​ <​html>​
-<button class="​aladin-btn"​ type="​button"​ onclick="​connector.runWithConnection(12co)">​Aladin</​button>​+<button class="​aladin-btn"​ type="​button"​ onclick="​connector.runWithConnection(mwisp12co)">​Aladin</​button>​
 </​html>​ \\ </​html>​ \\
  
 13CO Integrated Intensity : [[http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_13CO_MOM0_1_16384_partial.fits|MWISP_13CO_MOM0_1_16384_partial.fits]] 13CO Integrated Intensity : [[http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_13CO_MOM0_1_16384_partial.fits|MWISP_13CO_MOM0_1_16384_partial.fits]]
 <​html>​ <​html>​
-<button class="​aladin-btn"​ type="​button"​ onclick="​connector.runWithConnection(13co)">​Aladin</​button>​+<button class="​aladin-btn"​ type="​button"​ onclick="​connector.runWithConnection(mwisp13co)">​Aladin</​button>​
 </​html>​ \\ </​html>​ \\
 +
  
 <​html>​ <​html>​
-<script src="​lib/​scripts/​aladin-btns.js"></​script>​ 
 <​script>​ <​script>​
-// Broadcast a table given a hub connection. + // Aladin visualizations
-var 12co= function(connection) { +
-    var msg = new samp.Message("​image.load.fits",​ +
-    {"​url":​ "​http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_12CO_MOM0_1_16384_partial.fits","​name":"​MWISP 12CO(1-0) MOM0"} ); +
-    connection.notifyAll([msg]);​ +
-}; +
-/*var 13co = function(connection) { +
-      var msg = new samp.Message("​image.load.fits",​ +
-    {"​url":​ "​http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_13CO_MOM0_1_16384_partial.fits","​name":"​MWISP 13CO(1-0) MOM0"} ); +
-      connection.notifyAll([msg]);​ +
-};*/ +
-/* // Aladin visualizations+
 jQuery().ready(function($){ jQuery().ready(function($){
-    var aladin_01 = A.aladin('#​aladin-lite-div-12co', {zoom:​170});​+    var aladin_01 = A.aladin('#​aladin-lite-div-mwisp12co', {zoom:​170});​
     aladin_01.setFrame('​Galactic'​);​     aladin_01.setFrame('​Galactic'​);​
     aladin_01.gotoPosition(130,​ 0);     aladin_01.gotoPosition(130,​ 0);
Line 58: Line 64:
     aladin_01.getBaseImageLayer().getColorMap().update('​rainbow'​);​     aladin_01.getBaseImageLayer().getColorMap().update('​rainbow'​);​
  
-    var aladin_02 = A.aladin('#​aladin-lite-div-13co', {zoom:​170});​+    var aladin_02 = A.aladin('#​aladin-lite-div-mwisp13co', {zoom:​170});​
     aladin_02.setFrame('​Galactic'​);​     aladin_02.setFrame('​Galactic'​);​
     aladin_02.gotoPosition(130,​ 0);     aladin_02.gotoPosition(130,​ 0);
Line 68: Line 74:
     aladin_02.getBaseImageLayer().getColorMap().update('​rainbow'​);​     aladin_02.getBaseImageLayer().getColorMap().update('​rainbow'​);​
  
-});*/+});
 </​script>​ </​script>​
 </​html>​ </​html>​
-