forked from jarmoruuth/AstroMosaic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAstroMosaic.html
2371 lines (2172 loc) · 98.5 KB
/
AstroMosaic.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!-- Tool to visualize telescope FoV and mosaic grid. Jarmo Ruuth, 2018-2022 -->
<!DOCTYPE HTML>
<html lang = "en">
<head>
<link rel="icon" type="image/png" sizes="16x16" href="AM-favicon.png">
<!-- include Aladin Lite CSS file in the head section of your page -->
<link rel="stylesheet" href="https://aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Astro Mosaic Telescope Planner" />
<meta property="og:url" content="https://ruuth.xyz/AstroMosaic.html" />
<meta property="og:image" content="https://ruuth.xyz/astromosaicscreen.jpg" />
<meta property="og:description" content="Astro Mosaic is a tool for planning telescope observations." />
<meta property="og:type" content="website" />
<style>
.header {
background: lightgray;
}
.h2text {
padding-bottom: 20px;
text-align: left;
margin-left: 80px;
}
.banner {
padding: 5px;
margin: 5px;
background: whitesmoke;
color: darkred;
}
.flex-container-top {
display: flex;
flex-direction: row;
background: white;
}
.flex-container-top > div {
margin: 2px;
padding: 2px;
}
.flex-container-top2 {
display: flex;
flex-direction: row;
background: white;
}
.flex-container-top2 > div {
margin: 2px;
padding: 2px;
}
.flex-container {
display: flex;
flex-direction: row;
background: white;
}
.flex-container > div {
margin: 2px;
padding: 2px;
}
p {
margin: 0px;
padding: 0px;
}
.footer {
padding: 10px;
background: whitesmoke;
}
/* Dropdown Button */
.dropbtn {
background-color: lightgray;
color: white;
padding: 16px;
font-size: 16px;
border: none;
padding: 5px;
margin: 5px;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.all_div {
visibility: hidden;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #3e8e41;}
</style>
<title>AstroMosaic</title>
<meta charset = "UTF-8" />
</head>
<body>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.js" charset="utf-8"></script>
<div id="allDiv" class="all_div">
<div id="headerDiv" class="header">
<div class="dropdown">
<button class="dropbtn"><img src="menu-24px.svg" alt="Home" height="16"></button>
<div class="dropdown-content">
<a href="AstroImageTools.html">Home</a>
<a href="AstroMosaicInfo.html">Astro Mosaic</a>
<a href="AutoIntegrateInfo.html">AutoIntegrate</a>
<a href="DownloadFitInfo.html">Download .fit</a>
<a href="FitsPyInfo.html">FITS utility</a>
</div>
</div>
<div class="h2text">
<h2 id="astro_mosaic_title" >Astro Mosaic Telescope Planner</h2>
</div>
</div>
<div id="firstDiv" class="flex-container-top">
<div>
<form title="Enter target name or coordinates, click info icon for more info." action="javascript:ViewTarget()">
Target:<br>
<input type="text" id="target"><br>
</form>
</div>
<div>
<button onclick="alert(target_info_text)"><img src="information-outline.png"></button>
</div>
<div>
<form title="Select telescope service.">
Service:<br>
<select id="current-telescope-service" onchange="javascript:ViewImage(1)">
</select>
</form>
</div>
<div>
<form title="Select telescope.">
Telescope:<br>
<select id="current-telescope" onchange="javascript:ViewImage(2)">
</select>
</form>
</div>
<div>
<form title="Select grid type: telescope field of view, mosaic grid or separate mosaic panels.">
View:<br >
<select id="grid_type" onchange="javascript:ViewImage(0)">
<option value="fov">FoV</option>
<option value="mosaic">Mosaic grid</option>
<option value="panels">Mosaic panels</option>
</select>
</form>
</div>
<div>
<form title="Select mosaic overlap, a recommended value is to use 20% overlap." action="javascript:ViewImage(0)">
Mosaic overlap (%):<br>
<input type="number" id="overlap_percentage" min="1" max="100">
</form>
</div>
<div>
<form title="Select mosaic grid size." action="javascript:ViewImage(0)">
Grid size (x,y):<br>
<input type="number" id="size_x" min="1" max="10">
<input type="number" id="size_y" min="1" max="10">
</form>
</div>
<div>
<form title="Select date for target visibility view." action="javascript:ViewImage(0)">
Date (YYYY-MM-DD):<br>
<input type="text" id="view_date">
</form>
</div>
<div>
<br>
<button title="Refresh current view." onclick="ViewImage(0)">Refresh</button>
</div>
<div>
<br>
<form title="If selected, reposition image framing by moving the image using the mouse." action="javascript:ViewImage(0)">
<input type="checkbox" id="repositionCheckbox">Reposition
</form>
</div>
</div>
<div id="secondDiv" class="flex-container-top2">
<div>
<form title="Select catalog.">
<select id="catalog-selection" onchange="javascript:filterChanged()">
</select>
</form>
</div>
<div id ="catalogDiv">
</div>
<div>
<form title="Show only catalog objects that are higher than selected altitude.">
Altitude:
<select id="catalogFilterDegrees" onchange="javascript:filterChanged()">
<option value="all">All</option>
<option value="0">0°</option>
<option value="15">15°</option>
<option value="30">30°</option>
<option value="45">45°</option>
<option value="60">60°</option>
<option value="75">75°</option>
</select>
</form>
</div>
<div>
<form title="Show only catalog objects that are visible at selected time. Time format is HH:MM." action="javascript:filterTimeChanged()">
Time:
<input type="text" id="catalogFilterTime" size=5>
</form>
</div>
<div>
<form title="Show only catalog objects that are further away from the moon than selected angle.">
Moon:
<select id="catalogFilterMoon" onchange="javascript:filterChanged()">
<option value="all">All</option>
<option value="45">45°</option>
<option value="90">90°</option>
<option value="135">145°</option>
</select>
</form>
</div>
<div>
<form title="Show only catalog objects that have higher magnitude than selected magnitude. NOTE! Not many objects have a magnitude available." action="javascript:filterMagnitudeChanged()">
Magnitude:
<input type="text" id="catalogFilterMagnitude" size=5>
</form>
</div>
<div>
<form title="If selected, show target Wiki page when available." action="javascript:ViewImage(0)">
<input type="checkbox" id="wikiCheckbox">Wiki
</form>
</div>
<div>
<form title="If selected, show target test information when available." action="javascript:ViewImage(0)">
<input type="checkbox" id="textCheckbox">Text
</form>
</div>
<div>
<form title="If selected, show current weather at telescope location." action="javascript:ViewImage(0)">
<input type="checkbox" id="weatherCheckbox">Weather
</form>
</div>
</div>
<div>
<p id="startup_info_text"></p>
</div>
<div>
<p id="error_text"></p>
</div>
<div id="panels-div">
</div>
<div id="footerDiv" class="footer">
<p>Author: Jarmo Ruuth. Feedback: <a href="https://forums.ruuth.xyz" target="_blank">forums.ruuth.xyz</a> or <a href="mailto:astroimagetools@gmail.com" target="_blank">astroimagetools@gmail.com</a></p>
<p><button id="version-button" style="background-color:white" onclick="alert(version_text)">Version info</button>
<a href="AstroMosaicInfo.html#credits" target="_blank">Credits</a></small></p>
</div>
</div>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="AstroMosaicEngine.js"></script>
<script type="text/javascript">
var astro_mosaic_link = 'Powered by <a href="https://ruuth.xyz/AstroMosaicInfo.html">Astro Mosaic</a>';
var startup_image = "M67";
var startup_info_text = "Added reposition mode to visually move current framing. Thanks to Nick R for contributing ideas and code. Also added info text when hovering over input fields.";
var version_text =
"Version 1.67\n"+
"- Added reposition mode to visually move current framing. Thanks to Nick R for contributing the code. Also added info text when hovering over input fields.\n" +
"Version 1.66\n"+
"- Added support for SkyGems telescopes\n" +
"Version 1.65\n"+
"- Added support for decimal degrees coordinate format 'd DD.dec DD.dec'\n" +
"Version 1.64\n"+
"- Added Cederblad catalog\n" +
"Version 1.63\n"+
"- Fixes to parsing incomplete RA/DEC values and catalog name search.\n"+
"Version 1.62\n"+
"- Added configuration for optional offaxis guiding view.\n"+
"Version 1.61\n"+
"- Fixes and updates for configuring Astro Mosaic, like time zone support.\n"+
"Version 1.60\n"+
"- Added Barnard catalog\n" +
"Version 1.59\n"+
"- Added LDN catalog\n" +
"Version 1.58\n"+
"- Added RoboScopes\n" +
"- Telescope Live as default\n" +
"Version 1.56\n"+
"- Resolving names from loaded catalogs if Sesame name resolver fails\n" +
"Version 1.55\n"+
"- Fixed Wiki for Sharpless targets\n" +
"Version 1.54\n"+
"- Added Hubble WFC3 telescope\n" +
"Version 1.53\n"+
"- Changed some links to open in a new tab so the current view context is not lost\n" +
"Version 1.52\n"+
"- Changed visibility chart axis so that it always shows full night\n" +
"Version 1.51\n"+
"- Fixes to Wiki output\n" +
"- Added checkbox for text only info of catalog items\n" +
"- Added filtering based on magnitude (although default catalogs do not have that yet)\n" +
"- Fix to Slooh 500 catalog field ordering (in .json file)\n" +
"- Fix to gridlines and time printing, thanks for tips goes to Ed Kalin\n" +
"- Added basic time zone support. Field timezoneOffset can optionally have difference" +
" between UTC time and local time, in hours\n" +
"- Some more cleanup\n" +
"Version 1.50\n"+
"- Separated AstroMosaic engine to a separate AstroMosaicEngine.js file\n" +
"- Interface reorganizations\n" +
"Version 1.40\n"+
"- Fixed CHI-6 FoV\n" +
"Version 1.39\n"+
"- Added Telescope Live CHI-6 telescope\n" +
"Version 1.38\n"+
"- Fixed URL parameter handling\n" +
"Version 1.37\n"+
"- Added add_catalog URL parameter to add your own catalog\n" +
"Version 1.36\n"+
"- Fix to coordinate handling, format like 05:41.0 -02:30 was not handled correctly\n" +
"Version 1.35\n"+
"- Fix to decimal number handling, sign was sometimes dropped\n" +
"Version 1.34\n"+
"- Fix to catalog filtering\n" +
"Version 1.33\n"+
"- Reworked internal data structures\n" +
"- Url parameter services_json=url to give services and telescopes in a json file\n" +
"- Url parameter view=target|day|year to show only one element, useful for embedding\n" +
"- Fix to Slooh Chile horizon limits\n" +
"Version 1.32\n"+
"- Started using fetch API instead of XMLHttpRequest\n" +
"- Another fix to mosaic coordinate format for Telescope Live\n" +
"Version 1.31\n"+
"- Fix to mosaic coordinate format for Telescope Live\n" +
"Version 1.30\n"+
"- Added Telescope Live telescopes\n"+
"- Added more catalogs to filtered view list\n"+
"- Restructured code for telescope and catalog handling\n"+
"Version 1.28\n"+
"- Added astronomical seeing widget\n"+
"Version 1.27\n"+
"- Added Sharpless and RCW catalogs\n"+
"Version 1.26\n"+
"- Better error handling\n"+
"Version 1.25\n"+
"- Show RA/DEC in different coordinate formats in FoV view\n"+
"Version 1.24\n"+
"- Added color coding to separate visible and not visible Slooh 500 targets\n"+
"Version 1.23\n"+
"- Added C2LPT (Lunar and Planetary Telescope)\n"+
"Version 1.22\n"+
"- NGC and IC catalog layer added, not enabled by default\n"+
"- Object markers are clickable and show a short info or Wiki page\n"+
"Version 1.21\n"+
"- Added C2 and C2FR, where FR is the scope with Focal Reducer\n"+
"Version 1.20\n"+
"- Added Slooh 500 target name layer, enabled by default\n"+
"- Added map view control button\n"+
"- Added full screen control button\n"+
"Version 1.19\n"+
"- Added C2 current_telescope\n"+
"Version 1.18\n"+
"- Added link to my other Astro Image Tools at https://ruuth.xyz/AstroImageTools.html\n"+
"Version 1.17\n"+
"- Multiple target coordinates can be listed in target field separated by comma\n"+
"- Coordinate Format HHMMSS DDMMSS is also accepted\n"+
"Version 1.16\n"+
"- Added visible/not visible line type to year visibility\n"+
"Version 1.15\n"+
"- Fixed a few Slooh 500 list coordinates\n"+
"Version 1.14\n"+
"- Fixed ra/dec parsing with missing seconds part\n"+
"Version 1.13\n"+
"- moon distance filter for Slooh 500 list\n"+
"- more Slooh 500 list filter points\n"+
"- separate field for error text\n"+
"Version 1.12\n"+
"- changes to work better on mobile devices\n"+
"Version 1.11\n"+
"- mosaic grid max size increased to 10x10\n"+
"- target coordinates can be given also in RA.ddd DEC.ddd format\n"+
"- mosaic grid coordinates are shown as a table\n"+
"Version 1.10\n"+
"- added Slooh 500 list with altitude and time filtering\n"+
"- added embedded Wikipedia page if Wiki checkbox is checked\n"+
"- mosaic panel view shows actual panels up to size 5x5\n"+
"Version 1.00\n"+
"- basic FoV, mosaic grid and panels views\n"+
"- target visibility during one night and next 12 months\n";
var version_number = version_text.substring(8, 12);
var target_info_text = "Supported target formats\n" +
"\n" +
"Target name:\n" +
"\n" +
"A target name that can be resolved by name resolvers.\n" +
"\n" +
"RA/DEC in hours and degrees:\n" +
"\n" +
"HH:MM:SS DD:MM:SS\n" +
"HH MM SS DD MM SS\n" +
"HH:MM:SS/DD:MM:SS\n" +
"HH MM SS/DD MM SS\n" +
"HHMMSS DDMMSS\n" +
"HH.dec DD.dec\n" +
"\n" +
"RA/DEC in decimal degrees:\n" +
"\n" +
"d DD.dec DD.dec";
document.getElementById("version-button").innerText= "v." + version_number + " info";
var hoursToDeg = 15;
var hour_ms = 60*60*1000;
var day_ms = 24*hour_ms;
// Messier catalog is in the source as a default catalog (although
// not that useful for southern sky). But we need to have some
// catalog in place at startup and loading catalogs may take time.
var messier_catalog = {
"Credits" : "Information retrieved from Sesame",
"format" : ["CAT", "RA", "DEC", "TYPE", "CON", "BMAG", "DST", "NAME", "INFO"],
"data" : [
["M 1",5.57554,22.0145,"SuperNova Remnant","",0,0,"",""],
["M 2",21.55751,-0.82325,"Globular Cluster","",0,0,"",""],
["M 3",13.70323,28.37728,"Globular Cluster","",0,0,"",""],
["M 4",16.39312,-26.52575,"Globular Cluster","",0,0,"",""],
["M 5",15.30923,2.08103,"Globular Cluster","",0,0,"",""],
["M 6",17.67222,-32.25333,"Open (galactic) Cluster","",0,0,"",""],
["M 7",17.8975,-34.79333,"Open (galactic) Cluster","",0,0,"",""],
["M 8",18.06028,-24.38667,"HII (ionized) region","",0,0,"",""],
["M 9",17.31994,-18.51625,"Globular Cluster","",0,0,"",""],
["M 10",16.95251,-4.10031,"Globular Cluster","",0,0,"",""],
["M 11",18.85139,-6.27,"Open (galactic) Cluster","",0,0,"",""],
["M 12",16.78727,-1.94853,"Globular Cluster","",0,0,"",""],
["M 13",16.6949,36.46132,"Globular Cluster","",0,0,"",""],
["M 14",17.62671,-3.24592,"Globular Cluster","",0,0,"",""],
["M 15",21.49954,12.167,"Globular Cluster","",0,0,"",""],
["M 16",18.31333,-13.80667,"Open (galactic) Cluster","",0,0,"",""],
["M 17",18.34639,-16.17167,"Open (galactic) Cluster","",0,0,"",""],
["M 18",18.33278,-17.10167,"Open (galactic) Cluster","",0,0,"",""],
["M 19",17.0438,-26.26794,"Globular Cluster","",0,0,"",""],
["M 20",18.045,-22.97167,"Open (galactic) Cluster","",0,0,"",""],
["M 21",18.07028,-22.49,"Open (galactic) Cluster","",0,0,"",""],
["M 22",18.60665,-23.90475,"Globular Cluster","",0,0,"",""],
["M 23",17.95111,-18.985,"Open (galactic) Cluster","",0,0,"",""],
["M 24",18.28,-18.55,"Association of Stars","",0,0,"",""],
["M 25",18.52972,-19.11667,"Open (galactic) Cluster","",0,0,"",""],
["M 26",18.755,-9.38333,"Open (galactic) Cluster","",0,0,"",""],
["M 27",19.99343,22.7212,"Planetary Nebula","",0,0,"",""],
["M 28",18.40914,-24.86983,"Globular Cluster","",0,0,"",""],
["M 29",20.39889,38.52333,"Open (galactic) Cluster","",0,0,"",""],
["M 30",21.67281,-23.17986,"Globular Cluster","",0,0,"",""],
["M 31",0.71231,41.26875,"Galaxy","",0,0,"",""],
["M 32",0.71162,40.86517,"Interacting Galaxies","",0,0,"",""],
["M 33",1.56414,30.65994,"Galaxy in Group of Galaxies","",0,0,"",""],
["M 34",2.70139,42.76167,"Open (galactic) Cluster","",0,0,"",""],
["M 35",6.14833,24.33333,"Open (galactic) Cluster","",0,0,"",""],
["M 36",5.605,34.14,"Open (galactic) Cluster","",0,0,"",""],
["M 37",5.87167,32.55333,"Open (galactic) Cluster","",0,0,"",""],
["M 38",5.47861,35.855,"Open (galactic) Cluster","",0,0,"",""],
["M 39",21.53,48.43333,"Open (galactic) Cluster","",0,0,"",""],
["M 40",12.37015,58.08294,"Composite object","",0,0,"",""],
["M 41",6.76694,-20.75667,"Open (galactic) Cluster","",0,0,"",""],
["M 42",5.58814,-5.39111,"HII (ionized) region","",0,0,"",""],
["M 43",5.59194,-5.27,"HII (ionized) region","",0,0,"",""],
["M 44",8.67333,19.66667,"Open (galactic) Cluster","",0,0,"",""],
["M 45",3.78333,24.11667,"Open (galactic) Cluster","",0,0,"",""],
["M 46",7.69611,-14.81,"Open (galactic) Cluster","",0,0,"",""],
["M 47",7.60972,-14.48333,"Open (galactic) Cluster","",0,0,"",""],
["M 48",8.22861,-5.75,"Open (galactic) Cluster","",0,0,"",""],
["M 49",12.49633,8.00041,"Seyfert 2 Galaxy","",0,0,"",""],
["M 50",7.04653,-8.33778,"Open (galactic) Cluster","",0,0,"",""],
["M 51",13.49797,47.19526,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 52",23.41333,61.59333,"Open (galactic) Cluster","",0,0,"",""],
["M 53",13.21535,18.16817,"Globular Cluster","",0,0,"",""],
["M 54",18.91759,-30.47986,"Globular Cluster","",0,0,"",""],
["M 55",19.66659,-30.96475,"Globular Cluster","",0,0,"",""],
["M 56",19.27655,30.18347,"Globular Cluster","",0,0,"",""],
["M 57",18.89308,33.02913,"Planetary Nebula","",0,0,"",""],
["M 58",12.62878,11.81809,"Seyfert Galaxy","",0,0,"",""],
["M 59",12.70064,11.64693,"Galaxy in Group of Galaxies","",0,0,"",""],
["M 60",12.72778,11.55261,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 61",12.36526,4.47377,"Seyfert 2 Galaxy","",0,0,"",""],
["M 62",17.02017,-30.11236,"Globular Cluster","",0,0,"",""],
["M 63",13.26369,42.02937,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 64",12.94547,21.68266,"Seyfert Galaxy","",0,0,"",""],
["M 65",11.31554,13.09221,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 66",11.33751,12.99129,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 67",8.855,11.8,"Open (galactic) Cluster","",0,0,"",""],
["M 68",12.65777,-26.74406,"Globular Cluster","",0,0,"",""],
["M 69",18.52308,-32.34808,"Globular Cluster","",0,0,"",""],
["M 70",18.72021,-32.29211,"Globular Cluster","",0,0,"",""],
["M 71",19.89625,18.77919,"Globular Cluster","",0,0,"",""],
["M 72",20.89103,-12.53731,"Globular Cluster","",0,0,"",""],
["M 73",20.98333,-12.63333,"Cluster of Stars","",0,0,"",""],
["M 74",1.6116,15.78346,"Galaxy","",0,0,"",""],
["M 75",20.10134,-21.92226,"Globular Cluster","",0,0,"",""],
["M 76",1.70546,51.57543,"Planetary Nebula","",0,0,"",""],
["M 77",2.71133,-0.01329,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 78",5.77939,0.07917,"Reflection Nebula","",0,0,"",""],
["M 79",5.40294,-24.52425,"Globular Cluster","",0,0,"",""],
["M 80",16.284,-22.97608,"Globular Cluster","",0,0,"",""],
["M 81",9.92588,69.06529,"Seyfert 2 Galaxy","",0,0,"",""],
["M 82",9.93123,69.6797,"Interacting Galaxies","",0,0,"",""],
["M 83",13.61692,-29.86576,"Starburst Galaxy","",0,0,"",""],
["M 84",12.41771,12.88698,"Seyfert 2 Galaxy","",0,0,"",""],
["M 85",12.42335,18.19108,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 86",12.43661,12.94597,"Galaxy in Group of Galaxies","",0,0,"",""],
["M 87",12.51373,12.39112,"Brightest galaxy in a Cluster (BCG)","",0,0,"",""],
["M 88",12.53312,14.42041,"Seyfert 2 Galaxy","",0,0,"",""],
["M 89",12.59439,12.55634,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 90",12.61384,13.16287,"Seyfert 2 Galaxy","",0,0,"",""],
["M 91",12.59068,14.49632,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 92",17.28539,43.13594,"Globular Cluster","",0,0,"",""],
["M 93",7.74167,-23.85667,"Open (galactic) Cluster","",0,0,"",""],
["M 94",12.8481,41.12015,"Seyfert Galaxy","",0,0,"",""],
["M 95",10.7327,11.70361,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 96",10.77937,11.81994,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 97",11.24659,55.01902,"Planetary Nebula","",0,0,"",""],
["M 98",12.23008,14.90047,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 99",12.31378,14.41649,"HII Galaxy","",0,0,"",""],
["M 100",12.38193,15.8223,"Active Galaxy Nucleus","",0,0,"",""],
["M 101",14.0535,54.34875,"Galaxy in Pair of Galaxies","",0,0,"",""],
["M 102",15.10821,55.76331,"Seyfert Galaxy","",0,0,"",""],
["M 103",1.55639,60.65,"Open (galactic) Cluster","",0,0,"",""],
["M 104",12.66651,-11.62305,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 105",10.79711,12.58163,"LINER-type Active Galaxy Nucleus","",0,0,"",""],
["M 106",12.31601,47.30372,"Seyfert 2 Galaxy","",0,0,"",""],
["M 107",16.54218,-13.05378,"Globular Cluster","",0,0,"",""],
["M 108",11.19194,55.67412,"Starburst Galaxy","",0,0,"",""],
["M 109",11.96,53.37452,"Galaxy in Group of Galaxies","",0,0,"",""],
["M 110",0.67279,41.68542,"Galaxy in Group of Galaxies","",0,0,"",""]
]
};
var catalogs = [
{ name: "Messier", targets: messier_catalog.data, url: "https://ruuth.xyz/Messier.json" , source: "simbad", AladinCatalog: null, color: '#29a329' },
{ name: "Slooh 500 Teide", targets: null, url: "https://ruuth.xyz/Slooh500Teide.json" , source: "slooh", AladinCatalog: null, color: '#29a329' },
{ name: "Slooh 500 Chile", targets: null, url: "https://ruuth.xyz/Slooh500Chile.json" , source: "slooh", AladinCatalog: null, color: '#29a329' },
{ name: "NGC", targets: null, url: "https://ruuth.xyz/OpenNGC.json", source: "openngc", AladinCatalog: null, color: '#cccccc' },
{ name: "IC", targets: null, url: "https://ruuth.xyz/OpenIC.json", source: "openngc", AladinCatalog: null, color: '#cccccc' },
{ name: "RCW", targets: null, url: "https://ruuth.xyz/RCW.json", source: "simbad", AladinCatalog: null, color: '#00af00' },
{ name: "Sharpless", targets: null, url: "https://ruuth.xyz/Sharpless.json", source: "simbad", AladinCatalog: null, color: '#00afff' },
{ name: "LDN", targets: null, url: "https://ruuth.xyz/LDN.json", source: "vizier", AladinCatalog: null, color: '#CBCC49' },
{ name: "Barnard", targets: null, url: "https://ruuth.xyz/Barnard.json", source: "vizier", AladinCatalog: null, color: '#E0FFFF' }, // light cyan
{ name: "Cederblad", targets: null, url: "https://ruuth.xyz/Cederblad.json", source: "vizier", AladinCatalog: null, color: '#A0FFFF' }
];
// zero horizon if nothing else is specified
var horizon_0 = {
name: "horizon-0",
hard: [ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
soft: null
};
var all_services = {
telescope_services: [
{
name: "Telescope Live",
radec_format: 1,
default_telescope: 2,
telescopes: [
{ name: "AUS-2", fov_x: 324, fov_y: 324, lat: -34.86416, lng: 148.97639, timezoneOffset: null, alt: 648, weather: "tl-aus", horizon_limits: [20], meridian_transit: 60 },
{ name: "SPA-1", fov_x: 324, fov_y: 324, lat: 37.50103, lng: -2.40857, timezoneOffset: null, alt: 1025, weather: "tl-spa", horizon_limits: [30], meridian_transit: 60 },
{ name: "SPA-2", fov_x: 23, fov_y: 23, lat: 37.50103, lng: -2.40857, timezoneOffset: null, alt: 1025, weather: "tl-spa", horizon_limits: [30], meridian_transit: 60 },
{ name: "SPA-3", fov_x: 324, fov_y: 324, lat: 37.50103, lng: -2.40857, timezoneOffset: null, alt: 1025, weather: "tl-spa", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-1", fov_x: 32, fov_y: 32, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-2", fov_x: 67, fov_y: 67, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-3", fov_x: 19, fov_y: 19, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-4", fov_x: 67, fov_y: 67, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-5", fov_x: 473, fov_y: 378, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 },
{ name: "CHI-6", fov_x: 124, fov_y: 155, lat: -30.47253, lng: -70.76300, timezoneOffset: null, alt: 1025, weather: "tl-chi", horizon_limits: [30], meridian_transit: 60 }
]
},
{
name: "Slooh",
radec_format: 0,
telescopes: [
{ name: "T1", fov_x: 37, fov_y: 37, lat: 28.29970, lng: -16.50826, alt: 2372, timezoneOffset: null, weather: "slooh-teide", horizon_limits: "slooh-teide1", meridian_transit: 60 },
{ name: "T2", fov_x: 43, fov_y: 43, lat: 28.29970, lng: -16.50826, alt: 2372, timezoneOffset: null, weather: "slooh-teide", horizon_limits: "slooh-teide2", meridian_transit: 60 },
{ name: "T2UWF", fov_x: 107.6, fov_y: 72.12, lat: 28.29970, lng: -16.50826, timezoneOffset: null, alt: 2372, weather: "slooh-teide", horizon_limits: "slooh-teide2", meridian_transit: 60 },
{ name: "T3", fov_x: 99.14, fov_y: 74.56, lat: 28.29970, lng: -16.50826, timezoneOffset: null, alt: 2372, weather: "slooh-teide", horizon_limits: "slooh-teide3", meridian_transit: 60 },
{ name: "T4", fov_x: 15.57, fov_y: 12.03, lat: 28.29970, lng: -16.50826, timezoneOffset: null, alt: 2372, weather: "slooh-teide", horizon_limits: "slooh-teide4", meridian_transit: 60 },
{ name: "C1", fov_x: 31.18, fov_y: 20.51, lat: -33.269, lng: -70.534, timezoneOffset: null, alt: 1450, weather: "slooh-chile", horizon_limits: "slooh-chile", meridian_transit: 60 },
{ name: "C1UWF", fov_x: 81.49, fov_y: 82, lat: -33.269, lng: -70.534, timezoneOffset: null, alt: 1450, weather: "slooh-chile", horizon_limits: "slooh-chile", meridian_transit: 60 },
{ name: "C2", fov_x: 43, fov_y: 43, lat: -33.269, lng: -70.534, timezoneOffset: null, alt: 1450, weather: "slooh-chile", horizon_limits: "slooh-chile", meridian_transit: 60 },
{ name: "C2FR", fov_x: 65, fov_y: 65, lat: -33.269, lng: -70.534, timezoneOffset: null, alt: 1450, weather: "slooh-chile", horizon_limits: "slooh-chile", meridian_transit: 60 },
{ name: "C2LPT", fov_x: 8.24, fov_y: 5.18, lat: -33.269, lng: -70.534, timezoneOffset: null, alt: 1450, weather: "slooh-chile", horizon_limits: "slooh-chile", meridian_transit: 60 }
]
},
{
name: "RoboScopes",
radec_format: 1,
telescopes: [
{ name: "Pier 4", fov_x: 796, fov_y: 514, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [20], meridian_transit: 60 },
{ name: "Pier 6", fov_x: 324, fov_y: 324, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [25], meridian_transit: 60 },
{ name: "Pier 7", fov_x: 79, fov_y: 60, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [25], meridian_transit: 60 },
{ name: "Pier 8", fov_x: 43, fov_y: 43, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [30], meridian_transit: 60 },
{ name: "Pier 9", fov_x: 29, fov_y: 19, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [35], meridian_transit: 60 },
{ name: "Pier 10", fov_x: 105, fov_y: 70, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [30], meridian_transit: 60 },
{ name: "Pier 11", fov_x: 336, fov_y: 256, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [25], meridian_transit: 60 },
{ name: "Pier 12", fov_x: 43, fov_y: 43, lat: 38.2182225, lng: -6.632443, timezoneOffset: null, alt: 535, weather: "rs-spa", horizon_limits: [30], meridian_transit: 60 }
]
},
{
name: "SkyGems",
radec_format: 1,
telescopes: [
{ name: "Hakos iDK 20", fov_x: 37, fov_y: 37, lat: -23.236384, lng: 16.3594727, timezoneOffset: null, alt: 1835, weather: null, horizon_limits: [22], meridian_transit: 60 },
{ name: "Hakos H8 2.8", fov_x: 205, fov_y: 137, lat: -23.236384, lng: 16.3594727, timezoneOffset: null, alt: 1835, weather: null, horizon_limits: [22], meridian_transit: 60 },
{ name: "Hakos RC360", fov_x: 40, fov_y: 40, lat: -23.236384, lng: 16.3594727, timezoneOffset: null, alt: 1835, weather: null, horizon_limits: [22], meridian_transit: 60 },
{ name: "FSQ106 Namibia", fov_x: 116, fov_y: 87, lat: -23.236384, lng: 16.3594727, timezoneOffset: null, alt: 1835, weather: null, horizon_limits: [22], meridian_transit: 60 },
{ name: "Spain Veloce 200 RH", fov_x: 102, fov_y: 77, lat: 38.2, lng: -6.6, timezoneOffset: null, alt: 1025, weather: "rs-spa", horizon_limits: [36], meridian_transit: 60 },
{ name: "Spain CDK500", fov_x: 37, fov_y: 37, lat: 38.2, lng: -6.6, timezoneOffset: null, alt: 1025, weather: "rs-spa", horizon_limits: [12], meridian_transit: 60 },
{ name: "Dream Astrograph New Mexico", fov_x: 101, fov_y: 101, lat: 34.2, lng: -108.1, timezoneOffset: null, alt: 2371, weather: "sg-newmex", horizon_limits: [35], meridian_transit: 60 }
]
},
{
name: "Hubble",
radec_format: 1,
telescopes: [
{ name: "WFC3", fov_x: 2.66666667, fov_y: 2.66666667, lat: 0, lng: 0, timezoneOffset: null, alt: 100000, weather: null, horizon_limits: [0], meridian_transit: 0 }
]
}
],
weather_services: [ // Seeing widgets from https://www.meteoblue.com/
{ name: "slooh-teide", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/parque-nacional-del-teide_spain_2510570?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 695px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/parque-nacional-del-teide_spain_2510570?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>' },
{ name: "slooh-chile", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/la-dehesa_chile_3886112?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 711px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/la-dehesa_chile_3886112?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>'},
{ name: "tl-chi", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/portezuelo-del-chaco_chile_3895723?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 711px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/portezuelo-del-chaco_chile_3895723?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>'},
{ name: "tl-spa", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/el-chaparral-alto_spain_2518568?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 695px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/el-chaparral-alto_spain_2518568?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>'},
{ name: "tl-aus", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/mount-manton_australia_8167256?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 695px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/mount-manton_australia_8167256?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>'},
{ name: "rs-spa", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/fregenal-de-la-sierra_spain_2517643?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 745px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/fregenal-de-la-sierra_spain_2517643?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank" rel="noopener">meteoblue</a></div>'},
{ name: "sg-nam", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/-23.2N16.4E1737_Africa%2FWindhoek?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 753px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/-23.2N16.4E1737_Africa%2FWindhoek?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank" rel="noopener">meteoblue</a></div>'},
{ name: "sg-newmex", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing/34.2N-108.1E2264_America%2FDenver?geoloc=fixed&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 753px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing/34.2N-108.1E2264_America%2FDenver?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank" rel="noopener">meteoblue</a></div>'},
{ name: "detect_location", url: '<iframe src="https://www.meteoblue.com/en/weather/widget/seeing?geoloc=detect&noground=0" frameborder="0" scrolling="NO" allowtransparency="true" sandbox="allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox" style="width: 520px; height: 711px"></iframe><div><!-- DO NOT REMOVE THIS LINK --><a href="https://www.meteoblue.com/en/weather/forecast/seeing?utm_source=weather_widget&utm_medium=linkus&utm_content=seeing&utm_campaign=Weather%2BWidget" target="_blank">meteoblue</a></div>'}
],
horizon_limits: [
{ name: "slooh-chile",
hard: [ 7.75,5.75,3.5,1.75,1.75,1.75,6.75,1.5,1,0.75,0.5,0.5,0.25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.5,0.75,1.25,0.75,0.5,0.5,4,13.5,11,
8.5,6,2.25,0,0.25,1.25,4,5.25,6.5,7.5,8.25,9.25,10,10.25,10.5,10.75,11,11.25,11.25,11,11.75,12.25,13,13.5,32.5,16.75,11.5,12,
12.75,13.25,13,12.75,11.75,10.75],
soft: [ 18,18,18,18,18,18,18,18,18,20,22,24,25,30,35,42,47,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,
50,50,50,47,40,35,30,25,24,22,20,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18]
},
{ name: "slooh-teide1",
hard: [ 27,25,24,23,21.5,20,18,16,13.5,11,10,9,9,9,9,9,9,9,9,9,10,11,11.5,12,13.5,15,17,19,22,25,26.5,28,29.5,31,32,33,32,31,29.5,
28,26.5,25,22,19,18,15,14,13,13,13,13.5,14,14,14,12,12,12.5,13,12.5,12,12,12,15,16,18.5,21,22,23,23.5,24,26],
soft: [ 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,33,33,33,33,33,33,33,33,33,33,33,33,33,30,
30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 ]
},
{ name: "slooh-teide2",
hard: [ 30,26.6,24.8,23.8,22.7,21.2,19.6,17.6,15.5,13,10.8,9.8,9,9,9,9,9,9,9,9,9.2,10.2,11.1,11.6,12.3,13.8,15.4,17.4,19.6,33,33,33,
33,33,33,33,33,33,33,33,33,26.2,24.4,21.4,18.8,17.4,14.8,13.8,13,13,13.1,13.6,14,14,13.6,12,12.1,12.6,12.9,12.4,12,12,12.6,
15.2,16.5,19,21.2,22.2,23.1,23.6,24.4 ],
soft: [ 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,33,33,33,33,33,33,33,33,33,33,33,33,33,30,
30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 ]
},
{ name: "slooh-teide3",
hard: [ 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10 ],
soft: [ 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,33,33,33,33,33,33,33,33,33,33,33,33,33,30,
30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 ]
},
{ name: "slooh-teide4",
hard: [ 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10 ],
soft: [ 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,33,33,33,33,33,33,33,33,33,33,33,33,33,30,
30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 ]
}
]
};
// screen location for generic engine
var viewer_panels = {
aladin_panel : "aladin-div", // show Aladin Lite
aladin_panel_text : "aladin-div-text",
dayvisibility_panel : "day-div", // show day visibility
dayvisibility_panel_text : "day-div-text",
yearvisibility_panel : "year-div", // show year visibility
yearvisibility_panel_text : "year-div-text",
status_text : "error_text",
error_text : "error_text",
startup_info_text: "startup_info_text",
panel_view_x : 5,
panel_view_y : 5,
panel_view_div : "panel-view-div-",
panel_view_text : "panel-text-div-"
};
var viewer_params = {
fov_x : null,
fov_y : null,
location_lat : null,
location_lng : null,
horizonSoft : null,
horizonHard : null,
meridian_transit : null,
UTCdate_ms : null,
timezoneOffset : null, // in hours, null means UTC, should match with lat/lng
grid_type : null,
grid_size_x : null,
grid_size_y : null,
isCustomMode : false,
isRepositionModeFunc : isRepositionMode,
repositionTargetFunc : repositionTarget
};
var element_div_size = "700px"; // for height and width
var element_div_size_int = 700;
var element_div_size2_h = "350px"; // half of element_div_size
var element_div_size2_w = "600px";
// screen locations for viewer
var info_panels = {
weather_panel : "weather-div",
wiki_panel : "wiki-div",
wiki_panel_width : element_div_size,
wiki_frame_width : element_div_size_int
};
var engine_native_resources = {
aladin_object_clicked : function(){},
reset_view : function(){},
sun_rise_set : function(){},
object_altitude_init : function(){},
object_altaz : function(){},
object_altitude_get : function(){},
moon_position : function(){},
moon_topocentric_correction : function(){},
moon_distance : function(){}
};
var engine_data = null;
var screen_setup = null;
var mobile_screen = false;
if (screen.height > screen.width) {
// screen is taller than it is wide
console.log("mobile_screen", screen.height, screen.width);
mobile_screen = true;
} else {
console.log("not mobile_screen", screen.height, screen.width);
mobile_screen = false;
}
// Most of these are init in initAstroMosaic()
var telescope_services;
var current_telescope_service;
var current_telescope;
var current_telescope_service_selected_index;
var current_telescope_selected_index;
var url = new URL(window.location);
console.log(url);
var current_catalog = null; // current visible catalog
var current_catalog_filtered_list = null; // filtered list of catalog items
var catalog_filters_changed = true;
var catalogDiv_select = null;
var catalog_text = null;
var catalog_date = null;
var catalog_filter_time = null;
var catalogFilterDegrees = null;
var catalogFilterMoon = null;
var catalogFilterMagnitude = null;
var catalog_index = null;
var wikiChecked = false;
var url_target = null;
var url_add_catalog = null;
var url_add_service = null;
var url_set_service = null;
var url_offaxis = null;
var url_service = null;
var url_telescope = null;
var url_name = null;
var url_grid_type = null;
var url_overlap = null;
var url_date = null;
var url_services_json = null;
var url_view = "all";
document.getElementById("size_x").value = 3;
document.getElementById("size_y").value = 3;
if (typeof URLSearchParams === "function") {
searchParams = new URLSearchParams(url.search.slice(1));
parse_url(searchParams);
if (url_services_json != null) {
// load services json and start astro mosaic when load completes
load_services_json(url_services_json);
}
}
if (url_services_json == null) {
// Start astro mosaic. We may also start after loading
// json services file
startAstroMosaic("normal start");
}
function createRowDiv(rownum)
{
var row = document.createElement("DIV");
row.id = "row-" + rownum.toString();
row.className = "flex-container";
return row;
}
function appendCellDiv(col, id, height, width, add_text)
{
var margin = "10px";
var x = document.createElement("DIV");
x.id = id;
x.style.height = height;
x.style.width = width;
x.style.margin = margin;
//x.style.color = "white";
col.appendChild(x);
if (add_text) {
x.id = id;
var x = document.createElement("P");
x.id = id + "-text";
x.style.margin = margin;
col.appendChild(x);
}
}
function createDefaultPanels(mobile_screen)
{
if (url_view != 'all') {
return;
}
console.log("createDefaultPanels", mobile_screen);
var panels = document.getElementById("panels-div");
var i = 0;
var size1 = element_div_size;
var size2_h = element_div_size2_h;
var size2_w = element_div_size2_w;
panels.innerHTML = "";
if (mobile_screen) {
appendCellDiv(panels, "aladin-div", size1, size1, true);
appendCellDiv(panels, "day-div", size2_h, size2_w, true);
appendCellDiv(panels, "year-div", size2_h, size2_w, url_view != "all");
appendCellDiv(panels, "weather-div", "0px", "0px", false);
appendCellDiv(panels, "wiki-div", "0px", "0px", false);
} else {
var row = createRowDiv(i++);
var col = document.createElement("DIV");
appendCellDiv(col, "aladin-div", size1, size1, true);
row.appendChild(col);
var col = document.createElement("DIV");
appendCellDiv(col, "day-div", size2_h, size2_w, true);
appendCellDiv(col, "year-div", size2_h, size2_w, url_view != "all");
row.appendChild(col);
panels.appendChild(row);
var row = createRowDiv(i++);
var col = document.createElement("DIV");
appendCellDiv(col, "weather-div", "0px", "0px", false);
row.appendChild(col);
var col = document.createElement("DIV");
appendCellDiv(col, "wiki-div", "0px", "0px", false);
row.appendChild(col);
panels.appendChild(row);
}
}
function createMosaicPanels()
{
console.log("createMosaicPanels");
var panels = document.getElementById("panels-div");
panels.innerHTML = "";
for (var i = 0; i < 5; i++) {
// row
var row = document.createElement("DIV");
row.className = "flex-container";
for (var j = 0; j < 4; j++) {
var col = document.createElement("DIV");
var x = document.createElement("DIV");
x.id = "panel-view-div-" + i.toString() + j.toString();
x.style.height = "300px";
x.style.width = "300px";
x.style.padding = "2px";
x.style.margin = "2px";
x.style.color = "white";
col.appendChild(x);
var x = document.createElement("P");
x.id = "panel-text-div-" + i.toString() + j.toString();
col.appendChild(x);
row.appendChild(col);
}
panels.appendChild(row);
}
}
function startAstroMosaic(txt)
{
console.log("startAstroMosaic", txt);
apply_url_add();
// initialization
initAstroMosaic();
// setup done, show target image
if (url_view == "all") {
document.getElementById("target").value = startup_image;
}
ViewImage(0);
}
function initAstroMosaic()
{
console.log("initAstroMosaic");
init_all_services();
telescope_services = all_services.telescope_services;
current_telescope_service_selected_index = 0;
current_telescope_service = telescope_services[current_telescope_service_selected_index];
console.log("current_telescope_service", current_telescope_service.name);
if (current_telescope_service.hasOwnProperty('default_telescope')) {
current_telescope_selected_index = current_telescope_service.default_telescope;
} else {
current_telescope_selected_index = 0;
}
current_telescope = current_telescope_service.telescopes[current_telescope_selected_index];
console.log("current_telescope", current_telescope.name);
apply_url_set();
load_and_init_catalogs();
update_telescope_service_list();
update_telescope_list(current_telescope_service.name);
update_catalog_list();
engine_native_resources.aladin_object_clicked = showWikiTarget;
engine_native_resources.reset_view = wikiReset;
}
function init_all_services()
{
console.log("init_all_services");
// Update telescope FoV values.