adding a few more stars

master
Pablo Gonzalez 2021-01-29 20:19:34 +01:00
parent b661679c19
commit 3c76559fce
2 changed files with 65 additions and 51 deletions

View File

@ -83,7 +83,21 @@ function drawStars(lat,lon,date){
var x = size / 2 + size / 2 * Math.cos(alt) * Math.sin(azi); var x = size / 2 + size / 2 * Math.cos(alt) * Math.sin(azi);
var y = size / 2 + size / 2 * Math.cos(alt) * Math.cos(azi); var y = size / 2 + size / 2 * Math.cos(alt) * Math.cos(azi);
starPositions[starNumber] = [x,y]; starPositions[starNumber] = [x,y];
var magnitude = starMag<1.5?2:1; var magnitude = starMag<1?2:1;
//Stars between 1.5 and 4 magnitude should get a different colour
var col=1;
if (starMag<=1.5)
col=1;
else if (starMag>1.5 && starMag<2)
col=0.9;
else if (starMag>=2 && starMag<3)
col=0.7;
else if (starMag>=3 && starMag<3.5)
col=0.5;
else
col=0.3;
g.setColor(col,col,col);
g.fillCircle(x, y, magnitude); g.fillCircle(x, y, magnitude);
if (starMag<1 && settings.starnames) if (starMag<1 && settings.starnames)
g.drawString(starInfo[3],x,y+2); g.drawString(starInfo[3],x,y+2);
@ -99,7 +113,7 @@ function drawStars(lat,lon,date){
//Each star has a number (the position on the file (line number)). These are the lines //Each star has a number (the position on the file (line number)). These are the lines
//joining each star in the constellations. //joining each star in the constellations.
constelations=[[[7,68],[10,53],[53,56],[28,68],"Orion"],[[13,172],[13,340],[293,340],[29,293],"Taurus"], constelations=[[[7,68],[10,53],[53,56],[28,68],"Orion"],[[13,172],[13,340],[293,340],[29,293],"Taurus"],
[[155,8],"Canis Menor"],[[36,81],[87,81],[235,87],[33,235],[33,75],[75,40],"Ursa Major"],[[67,91],[74,67],[91,110],[110,252],"Cassiopeia"],[[23,166],[16,294],[294,44],[166,149],[230,149],[16,23],"Gemini"]]; [[155,8],"Canis Menor"],[[36,81],[87,81],[235,87],[33,235],[33,75],[75,40],"Ursa Major"],[[67,91],[74,67],[91,110],[110,252],"Cassiopeia"],[[23,166],[16,294],[294,44],[166,149],[230,149],[16,23],"Gemini"],[[88,218],[215,292],[218,292],[245,88],[292,245],[215,218],"Cepheus"],[[150,62],[150,175],[175,35],[403,62],[487,158],[384,487],[384,158],[35,158],[487,403],"Perseus"],[[19,65],[65,90],[65,147],[466,65],[466,189],[147,401],[213,90],"Cygnus"],[[6,42],[168,6],[168,113],[113,29],[104,29],[104,42],"Auriga"]];
g.setColor(0,255,0); g.setColor(0,255,0);
for (i=0;i<constelations.length;i++) for (i=0;i<constelations.length;i++)
{ {

View File

@ -47,7 +47,7 @@
1.670,-0.313,2.0,BE CMA 1.670,-0.313,2.0,BE CMA
2.477,-0.151,2.0,AL HYA 2.477,-0.151,2.0,AL HYA
0.555,0.409,2.0,AL ARI 0.555,0.409,2.0,AL ARI
0.663,1.558,2.0,AL UMI 0.663,1.558,2.0,Polaris
4.954,-0.459,2.0,SI SGR 4.954,-0.459,2.0,SI SGR
0.190,-0.314,2.0,BE CET 0.190,-0.314,2.0,BE CET
1.487,-0.034,2.0,ZE ORI 1.487,-0.034,2.0,ZE ORI
@ -400,54 +400,54 @@
1.945,0.485,3.8,JO GEM 1.945,0.485,3.8,JO GEM
5.104,0.903,3.8,JO2 CYG 5.104,0.903,3.8,JO2 CYG
5.295,0.816,3.8,31 CYG 5.295,0.816,3.8,31 CYG
0.827,0.783,4.8,KA PER 0.827,0.783,3.8,KA PER
2.579,1.030,4.8,YP UMA 2.579,1.030,3.8,YP UMA
2.705,0.346,4.8,GA2 LEO 2.705,0.346,3.8,GA2 LEO
4.079,0.184,4.8,DE SER 4.079,0.184,3.8,DE SER
4.079,0.184,4.8,DE SER 4.079,0.184,3.8,DE SER
4.623,0.803,4.8,JO HER 4.623,0.803,3.8,JO HER
1.478,-0.045,4.8,SI ORI 1.478,-0.045,3.8,SI ORI
1.533,-0.364,4.8,DE LEP 1.533,-0.364,3.8,DE LEP
2.732,-0.294,4.8,MY HYA 2.732,-0.294,3.8,MY HYA
1.202,-0.533,4.8,YP2 ERI 1.202,-0.533,3.8,YP2 ERI
2.438,0.642,4.8,38 LYN 2.438,0.642,3.8,38 LYN
2.740,-1.025,4.8,_ 2.740,-1.025,3.8,_
4.324,0.035,4.8,LA OPH 4.324,0.035,3.8,LA OPH
5.181,0.323,4.8,DE SGE 5.181,0.323,3.8,DE SGE
6.185,0.811,4.8,LA AND 6.185,0.811,3.8,LA AND
0.979,0.564,4.8,OK PER 0.979,0.564,3.8,OK PER
2.851,0.597,4.8,46 LMI 2.851,0.597,3.8,46 LMI
3.658,-0.735,4.8,PH CEN 3.658,-0.735,3.8,PH CEN
3.874,-1.380,4.8,AL APS 3.874,-1.380,3.8,AL APS
4.745,0.502,4.8,OK HER 4.745,0.502,3.8,OK HER
5.184,1.226,4.8,EP DRA 5.184,1.226,3.8,EP DRA
1.172,0.279,4.8,TH1 TAU 1.172,0.279,43.8,TH1 TAU
2.272,-0.814,4.8,_ 2.272,-0.814,3.8,_
2.335,-1.058,4.8,_ 2.335,-1.058,3.8,_
2.781,-0.842,4.8,_ 2.781,-0.842,3.8,_
3.017,1.210,4.8,LA DRA 3.017,1.210,3.8,LA DRA
4.113,0.459,4.8,GA CRB 4.113,0.459,3.8,GA CRB
4.816,0.380,4.8,109 HER 4.816,0.380,3.8,109 HER
5.854,-0.024,4.8,GA AQR 5.854,-0.024,3.8,GA AQR
0.978,-1.131,4.8,BE RET 0.978,-1.131,3.8,BE RET
1.515,-0.891,4.8,BE PIC 1.515,-0.891,3.8,BE PIC
1.667,-0.584,4.8,DE COL 1.667,-0.584,3.8,DE COL
1.897,-0.467,4.8,OM CMA 1.897,-0.467,3.8,OM CMA
2.682,-0.735,4.8,_ 2.682,-0.735,3.8,_
2.761,0.162,4.8,RH LEO 2.761,0.162,3.8,RH LEO
4.173,0.273,4.8,GA SER 4.173,0.273,3.8,GA SER
4.256,-1.112,4.8,DE TRA 4.256,-1.112,3.8,DE TRA
4.866,-0.144,4.8,AL SCT 4.866,-0.144,3.8,AL SCT
1.108,-0.738,4.9,AL HOR 1.108,-0.738,3.9,AL HOR
3.306,-0.847,4.9,TA CEN 3.306,-0.847,3.9,TA CEN
4.696,0.650,4.9,TH HER 4.696,0.650,3.9,TH HER
4.772,-0.368,4.9,MY SGR 4.772,-0.368,3.9,MY SGR
0.248,0.672,4.9,MY AND 0.248,0.672,3.9,MY AND
0.838,-0.506,4.9,AL FOR 0.838,-0.506,3.9,AL FOR
0.985,0.425,4.9,20 TAU 0.985,0.425,3.9,20 TAU
1.214,-0.250,4.9,53 ERI 1.214,-0.250,3.9,53 ERI
1.445,-0.619,4.9,EP COL 1.445,-0.619,3.9,EP COL
1.807,-0.422,4.9,OK1 CMA 1.807,-0.422,3.9,OK1 CMA
3.283,-1.259,3.9,GA MUS 3.283,-1.259,3.9,GA MUS
3.288,1.218,3.9,KA DRA 3.288,1.218,3.9,KA DRA
3.659,-0.782,3.9,YP1 CEN 3.659,-0.782,3.9,YP1 CEN

1 1.768 -0.292 -1.5 Sirius
47 1.670 -0.313 2.0 BE CMA
48 2.477 -0.151 2.0 AL HYA
49 0.555 0.409 2.0 AL ARI
50 0.663 1.558 2.0 AL UMI Polaris
51 4.954 -0.459 2.0 SI SGR
52 0.190 -0.314 2.0 BE CET
53 1.487 -0.034 2.0 ZE ORI
400 1.945 0.485 3.8 JO GEM
401 5.104 0.903 3.8 JO2 CYG
402 5.295 0.816 3.8 31 CYG
403 0.827 0.783 4.8 3.8 KA PER
404 2.579 1.030 4.8 3.8 YP UMA
405 2.705 0.346 4.8 3.8 GA2 LEO
406 4.079 0.184 4.8 3.8 DE SER
407 4.079 0.184 4.8 3.8 DE SER
408 4.623 0.803 4.8 3.8 JO HER
409 1.478 -0.045 4.8 3.8 SI ORI
410 1.533 -0.364 4.8 3.8 DE LEP
411 2.732 -0.294 4.8 3.8 MY HYA
412 1.202 -0.533 4.8 3.8 YP2 ERI
413 2.438 0.642 4.8 3.8 38 LYN
414 2.740 -1.025 4.8 3.8 _
415 4.324 0.035 4.8 3.8 LA OPH
416 5.181 0.323 4.8 3.8 DE SGE
417 6.185 0.811 4.8 3.8 LA AND
418 0.979 0.564 4.8 3.8 OK PER
419 2.851 0.597 4.8 3.8 46 LMI
420 3.658 -0.735 4.8 3.8 PH CEN
421 3.874 -1.380 4.8 3.8 AL APS
422 4.745 0.502 4.8 3.8 OK HER
423 5.184 1.226 4.8 3.8 EP DRA
424 1.172 0.279 4.8 43.8 TH1 TAU
425 2.272 -0.814 4.8 3.8 _
426 2.335 -1.058 4.8 3.8 _
427 2.781 -0.842 4.8 3.8 _
428 3.017 1.210 4.8 3.8 LA DRA
429 4.113 0.459 4.8 3.8 GA CRB
430 4.816 0.380 4.8 3.8 109 HER
431 5.854 -0.024 4.8 3.8 GA AQR
432 0.978 -1.131 4.8 3.8 BE RET
433 1.515 -0.891 4.8 3.8 BE PIC
434 1.667 -0.584 4.8 3.8 DE COL
435 1.897 -0.467 4.8 3.8 OM CMA
436 2.682 -0.735 4.8 3.8 _
437 2.761 0.162 4.8 3.8 RH LEO
438 4.173 0.273 4.8 3.8 GA SER
439 4.256 -1.112 4.8 3.8 DE TRA
440 4.866 -0.144 4.8 3.8 AL SCT
441 1.108 -0.738 4.9 3.9 AL HOR
442 3.306 -0.847 4.9 3.9 TA CEN
443 4.696 0.650 4.9 3.9 TH HER
444 4.772 -0.368 4.9 3.9 MY SGR
445 0.248 0.672 4.9 3.9 MY AND
446 0.838 -0.506 4.9 3.9 AL FOR
447 0.985 0.425 4.9 3.9 20 TAU
448 1.214 -0.250 4.9 3.9 53 ERI
449 1.445 -0.619 4.9 3.9 EP COL
450 1.807 -0.422 4.9 3.9 OK1 CMA
451 3.283 -1.259 3.9 GA MUS
452 3.288 1.218 3.9 KA DRA
453 3.659 -0.782 3.9 YP1 CEN