53
53
</ div >
54
54
< pre >
55
55
try:
56
- 148.88822;69.06529;EQ_J2000
57
- 202.48417;47.23056;EQ_J2000
56
+ 148.88822;69.06529;EQ_J2000 # Galaxy M81
57
+ 202.48417;47.23056;EQ_J2000 # Galaxy M51
58
+ 136.9316774;+1.1195886;galactic # W5 star-forming region
59
+ 10.68479;41.26906;EQ_J2000 # Galaxy M31
58
60
</ pre >
59
61
60
62
94
96
< a href ="javascript:load3C(getSTarget(),0,2,2,2) "> 3 Color</ a > in cell < span class ='smallCoords '> at row: 0, col: 2, w:2 h: 2</ span >
95
97
</ li >
96
98
</ ul >
97
-
99
+ </ body >
98
100
99
101
100
102
< script type ="text/javascript ">
147
149
WorldPt : sTarget ,
148
150
RangeValues : firefly . util . image . RangeValues . serializeSimple ( 'Sigma' , - 2 , 8 , 'Linear' ) ,
149
151
SizeInDeg : '1'
150
- } ,
152
+ }
151
153
] ;
152
154
153
155
160
162
function loadNewCharts ( r , c , w , h ) {
161
163
firefly . getViewer ( ) . addCell ( r , c , w , h , 'xyPlots' , 'newChartContainer' ) ;
162
164
163
- trace1 = {
164
- x : "tables::wiseCatTbl,ra " ,
165
- y : "tables::wiseCatTbl,dec " ,
165
+ var trace1 = {
166
+ x : "tables::wiseCatTbl,w1mpro-w2mpro " ,
167
+ y : "tables::wiseCatTbl,w2mpro-w3mpro " ,
166
168
mode : 'markers' ,
167
- type : 'scatter'
169
+ type : 'scatter' ,
170
+ marker : { size : 4 }
171
+ } ;
172
+
173
+ var layoutS = {
174
+ title : 'Color-Color' ,
175
+ xaxis : { title : 'w1mpro-w2mpro (mag)' } ,
176
+ yaxis : { title : 'w2mpro-w3mpro (mag)' }
168
177
} ;
169
178
170
- firefly . getViewer ( ) . showPlot ( { chartId : 'newChart1' , data : [ trace1 ] , fireflyData : [ { dataType : 'fireflyScatter' } ] } ,
171
- 'newChartContainer' ) ;
179
+ firefly . getViewer ( ) . showPlot (
180
+ { chartId : 'newChart1' , layout : layoutS , data : [ trace1 ] , fireflyData : [ { dataType : 'fireflyScatter' } ] } ,
181
+ 'newChartContainer' ) ;
172
182
}
173
183
174
184
function loadNewHeatmapCharts ( r , c , w , h ) {
205
215
{ dataType : 'fireflyHeatmap' }
206
216
] ;
207
217
208
- firefly . getViewer ( ) . showPlot ( { chartId : 'newChart2' , data : dataHM , fireflyData :fireflyDataHM } ,
209
- 'heatMapContainer' ) ;
218
+ var layoutHM = {
219
+ title : 'Magnitude-magnitude densities' ,
220
+ xaxis : { title : 'w1 photometry (mag)' } ,
221
+ yaxis : { title : '' }
222
+ } ;
223
+
224
+ firefly . getViewer ( ) . showPlot (
225
+ { chartId : 'newChart2' , layout : layoutHM , data : dataHM , fireflyData :fireflyDataHM } ,
226
+ 'heatMapContainer' ) ;
210
227
}
211
228
212
229
function loadHistogramCharts ( r , c , w , h ) {
213
230
firefly . getViewer ( ) . addCell ( r , c , w , h , 'xyPlots' , 'histContainer' ) ;
214
231
215
232
var dataH = [
216
- { name : 'dec-0.02 ' , marker : { color : 'rgba(153, 51, 153, 0.8)' } } ,
217
- { name : 'dec+0.02 ' , marker : { color : 'rgba(102,153,0, 0.7)' } }
233
+ { name : 'w1mpro ' , marker : { color : 'rgba(153, 51, 153, 0.8)' } } ,
234
+ { name : 'w2mpro ' , marker : { color : 'rgba(102,153,0, 0.7)' } }
218
235
] ;
219
236
220
237
var fireflyDataH = [
225
242
algorithm : 'fixedSizeBins' ,
226
243
fixedBinSizeSelection : 'numBins' ,
227
244
numBins : 30 ,
228
- columnOrExpr : 'dec-0.02 '
245
+ columnOrExpr : 'w1mpro '
229
246
}
230
247
} ,
231
248
{
235
252
algorithm : 'fixedSizeBins' ,
236
253
fixedBinSizeSelection : 'numBins' ,
237
254
numBins : 40 ,
238
- columnOrExpr : 'dec+0.02 ' // same column but shifted
255
+ columnOrExpr : 'w2mpro ' // same column but shifted
239
256
}
240
257
}
241
258
] ;
242
- firefly . getViewer ( ) . showPlot ( { chartId : 'firefly-hist-tbl' , data : dataH , fireflyData : fireflyDataH } ,
243
- 'histContainer' ) ;
259
+
260
+ var layoutHist = {
261
+ title : 'Photometry histogram' ,
262
+ xaxis : { title : 'photometry (mag)' } ,
263
+ yaxis : { title : '' }
264
+ } ;
265
+
266
+ firefly . getViewer ( ) . showPlot (
267
+ { chartId : 'firefly-hist-tbl' , layout : layoutHist , data : dataH , fireflyData : fireflyDataH } ,
268
+ 'histContainer' ) ;
244
269
}
245
270
246
271
function load3DChart ( r , c , w , h ) {
250
275
var data3d = [
251
276
{
252
277
type : 'scatter3d' ,
253
- name : 'w1-w2' ,
278
+ name : 'w1-w2-w3 ' ,
254
279
x : "tables::wiseCatTbl,w1mpro" ,
255
280
y : "tables::wiseCatTbl,w2mpro" ,
256
281
z : "tables::wiseCatTbl,w3mpro" ,
257
282
mode : 'markers' ,
258
283
marker : {
259
- size : 5 ,
260
- opacity : 0.6
261
- }
284
+ size : 3 ,
285
+ line : {
286
+ color : 'rgb(127, 127, 127, 0.14)' ,
287
+ width : 1
288
+ }
289
+ } ,
290
+ hoverinfo : 'x+y+z'
262
291
}
263
292
] ;
264
293
265
- firefly . getViewer ( ) . showPlot ( { chartId : 'newChart3' , data : data3d } ,
266
- '3dChartContainer' ) ;
294
+ var tfont = { size : 11 } ;
295
+ var layout3d = {
296
+ title : 'Photometry in band 1, 2, 3' ,
297
+ xaxis : { visible : false } ,
298
+ yaxis : { visible : false } ,
299
+ scene :{
300
+ xaxis : {
301
+ title : 'w1 (mag)' ,
302
+ titlefont : tfont
303
+ } ,
304
+ yaxis : {
305
+ title : 'w2 (mag)' ,
306
+ titlefont : tfont
307
+ } ,
308
+ zaxis : {
309
+ title : 'w3 (mag)' ,
310
+ titlefont : tfont
311
+ }
312
+ }
313
+ } ;
314
+
315
+ firefly . getViewer ( ) . showPlot (
316
+ { chartId : 'newChart3' , layout : layout3d , data : data3d } ,
317
+ '3dChartContainer' ) ;
267
318
}
268
319
269
320
270
321
function showATable ( sTarget , r , c , w , h ) {
271
322
firefly . getViewer ( ) . addCell ( r , c , w , h , 'tables' ) ;
272
- var req = firefly . util . table . makeIrsaCatalogRequest ( 'another wise catalog' , 'WISE' , 'allwise_p3as_psd' ,
323
+ var req = firefly . util . table . makeIrsaCatalogRequest ( 'WISE catalog' , 'WISE' , 'allwise_p3as_psd' ,
273
324
{ position : sTarget ,
274
325
SearchMethod : 'Cone' ,
275
326
radius : 1200 ,
333
384
< script type ="text/javascript " src ="../firefly_loader.js "> </ script >
334
385
335
386
387
+ </ html >
0 commit comments