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 11:52]
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) { +jQuery().ready(function($){ 
-    var msg new samp.Message("​image.load.fits"​, +    var aladin_01 ​A.aladin('#​aladin-lite-div-mwisp12co'​, {zoom:170}); 
-    ​{"​url"​"​http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/​MWISP_12CO_MOM0_1_16384_partial.fits","​name":"​MWISP 12CO(1-0) MOM0"} ); +    ​aladin_01.setFrame('​Galactic'​); 
-    ​connection.notifyAll([msg]); +    ​aladin_01.gotoPosition(130, 0); 
-}; +    ​aladin_01.setImageSurvey(aladin_01.createImageSurvey( 
-var 13co = function(connection{ +        '​MWISP_12CO_MOM0',​ '​MWISP_12CO_MOM0'​
-      var msg = new samp.Message("image.load.fits"​+        '​http://​cade.irap.omp.eu/​documents/​Ancillary/​4Aladin/MWISP_12CO_MOM0/'​, 
-    ​{"​url":​ "http://​cade.irap.omp.eu/​documents/​Ancillary/​MWISP/MWISP_13CO_MOM0_1_16384_partial.fits"​,"​name":"​MWISP 13CO(1-0MOM0"​} ​); +        '​Galactic',​ 3 
-      ​connection.notifyAll([msg])+    ​)); 
-};+    ​aladin_01.getBaseImageLayer().getColorMap().update('​rainbow'​);
  
 +    var aladin_02 = A.aladin('#​aladin-lite-div-mwisp13co',​ {zoom:​170});​
 +    aladin_02.setFrame('​Galactic'​);​
 +    aladin_02.gotoPosition(130,​ 0);
 +    aladin_02.setImageSurvey(aladin_02.createImageSurvey(
 +        '​MWISP_13CO_MOM0',​ '​MWISP_13CO_MOM0',​
 +        '​http://​cade.irap.omp.eu/​documents/​Ancillary/​4Aladin/​MWISP_13CO_MOM0/',​
 +        '​Galactic',​ 3
 +    ));
 +    aladin_02.getBaseImageLayer().getColorMap().update('​rainbow'​);​
 +
 +});
 </​script>​ </​script>​
 </​html>​ </​html>​
-