home *** CD-ROM | disk | FTP | other *** search
- REM ***** STARS *****
- REM ***** James A. Ingram 7-Jan-81 *****
- REM ***** Typed from Creative Computing Mag. June/83 *****
- REM ***** Conversion to AmigaBASIC *****
- REM ***** by *****
- REM ***** Delton C. Brown *****
- REM ***** Houston, TX 77082 *****
- REM ***** 22-Jun-86 *****
- REM ***** Change values in 270: to reflect your latitude & longitude *****
- CLEAR
- CLS
- PRINT "****************************************";
- PRINT "****************************************"
- PRINT "** TABLE OF VISIBLE SKY OBJECTS";TAB(76)"**"
- PRINT "** This program checks through a master containing";
- PRINT " stars and other in- **"
- PRINT "** teresting objects in the night sky, and determining which";
- PRINT " ones are vis- ***"
- PRINT "** ible at a specific time and date. It then calculates the ";
- PRINT "compass bear- **"
- PRINT "** ing and altitude above the horizon for that time. The table ";
- PRINT "includes **"
- PRINT "** the name, magnitude, right ascension, declanation, bearing, an";
- PRINT "d alti- **"
- PRINT "** tude. Note that time must be entered in 24 hour format (2:00 pm=14:";
- PRINT "00) **"
- PRINT "** and that numbers less than 10 must be entered as 2 digits with a le";
- PRINT "ad- **"
- PRINT "** ing zero (05). **"
- PRINT "****************************************";
- PRINT "****************************************"
- PRINT
- 270 :
- lng=95.21
- lat=29.45
- gx=18
- n=91
- 280 :
- INPUT"Date (MM/DD) : ";dat$
- INPUT"Time in 24 hr. format (HH:MM) : ";tim$
- INPUT"Standard time (S) or Daylight (D) ";f$
- INPUT"Maximum magnitude (minimum btightness) for table";mg
- th=VAL(LEFT$(tim$,2))
- tm=VAL(RIGHT$(tim$,2))
- tz=th+tm/60
- IF f$="d" AND f$="D" THEN gx=gx+1
- gt=tz-gx
- IF gt<0 THEN gt=gt+24
- 345 :
- IF gt<24 THEN 360
- gt=gt-24
- GOTO 345
- 360 :
- tl=gt+lng/360*24
- 365 :
- IF tl<24 THEN 380
- tl=tl-24
- GOTO 365
- 380 :
- tl$=STR$(INT(tl))+":"+STR$(INT((tl-INT(tl))*60))
- gt$=STR$(INT(gt))+":"+STR$(INT((gt-INT(gt))*60))
- m=VAL(LEFT$(dat$,2))
- dy=VAL(RIGHT$(dat$,2))
- IF dy=22 AND m=9 THEN cd=0:GOTO 485
- IF dy>22 AND m=9 THEN cd=dy-22:GOTO 485
- IF m=10 THEN cd=8+dy:GOTO 485
- IF m<9 OR (m=9 AND dy<22)THEN m=m+12:GOTO 440
- IF m>10 THEN 440
- PRINT "Improper date. Please re-enter.";GOTO 280
- 440 :
- r=m-10
- cd=8
- FOR x=1 TO r
- READ d1
- cd=cd+d1
- NEXT x
- DATA 31,30,31,31,28,31,30,31,30,31,31,30
- RESTORE
- cd=cd+dy
- 485 :
- zlh=cd*24/365+tl
- IF zlh>24 THEN zlh=zlh-24
- zlh$=STR$(INT(zlh))+":"+STR$(INT((zlh-INT(zlh))*60))
- CLS
- PRINT TAB(20)"Celestial Object Availability Table"
- GOSUB 830
- PRINT :PRINT
- PRINT "Date "dat$;TAB(48)"Days from Sept. 22 = ";cd
- PRINT "Local zone time ";tim$;" (GMT = ";gt$;")";
- PRINT TAB(48)"Local star time ";tl$
- GOSUB 830
- PRINT "Latitude "lat;"Degrees North.";
- PRINT TAB(48)"Longitude ";lng;"Degrees East."
- PRINT "Objects brighter than magnitude";mg;
- PRINT TAB(48)"Zenith at ";zlh$;" hrs. R.A."
- GOSUB 830
- PRINT :PRINT :PRINT
- PRINT "Object";TAB(33)"Mag.";TAB(41)"R.A.";
- PRINT TAB(50)"Decl.";TAB(59)"Brng.";TAB(69)"Alt."
- PRINT "---------------------------------------";
- PRINT "---------------------------------------"
- PRINT
- GOSUB 830
- lat=lat*6.28318/360
- lat=3.14159/2-lat
- FOR j=1 TO n
- READ n$,br,ra$,d
- IF br>mg THEN 805
- ra=VAL(LEFT$(ra$,2))+VAL(RIGHT$(ra$,2))/60
- zra=(ra-zlh)*15
- IF zra>360 THEN zra=zra-360
- IF zra<0 THEN zra=zra+360
- alt=90-d
- zpi=zra*6.28318/360
- api=alt*6.28318/360
- x=SIN(api)*COS(zpi)
- y=SIN(api)*SIN(zpi)
- z=COS(api)
- x1=x*COS(lat)-z*SIN(lat)
- z1=x*SIN(lat)+z*COS(lat)
- x=x1:z=z1
- a=ATN(z/(SQR(x*x+y*y)))*360/6.28318
- IF a<0 THEN 805
- b=ATN(y/x)*360/6.28318
- IF x>0 AND dy>0 THEN b=180-b:GOTO 770
- IF x>0 AND dy<0 THEN b=180-b:GOTO 770
- IF x<0 AND y>0 THEN b=-b:GOTO 770
- IF x<0 AND y<0 THEN b=360-b:GOTO 770
- 770 :
- PRINT n$;TAB(33)br;TAB(40)ra$;TAB(49)d;
- PRINT USING" ###.#";b;
- PRINT USING" ###.#";a
- GOSUB 840
- 805 :
- NEXT j
- END
- 830 :
- FOR q=1 TO 500:NEXT q
- RETURN
- 840 :
- FOR q=1 TO 100:NEXT q
- RETURN
- 860 :
- DATA sirius (a-canis maj),-1.6,06.13,-16.7
- DATA canopus (a-carina),-.7,06.23,-52.7
- DATA arcturus (a-bootes),-.1,14.14,19.4
- DATA vega (a-lyra),0,18.36,38.8
- DATA capella (a-auriga),.1,05.14,46.1
- DATA rigel (b-orion),2,05.13,-8.3
- DATA procyon (a-canis min),4,07.37,5.4
- DATA betelgeuse (a-orion),.1,05.54,7.4
- DATA altair (a-aquila),.8,19.19,8.8
- DATA aldebaran (a-taurus),.9,04.34,16.5
- DATA antares (a-scopio),1,16.28,-26.3
- DATA spica (a-virgo),1,13.24,-11
- DATA fomalhaut (a-piscis aust),1.2,22.56,-29.7
- DATA pollux (b-gemini),1.2,07.13,28.1
- DATA deneb (a-cygnus),1.3,20.40,45.2
- DATA regulus (a-leo),1.1,10.7,12.1
- DATA castor (a-gemini),1.6,07.33,32
- DATA adhara (e-canis maj),1.6,06.57,-28.9
- DATA bellatrix (g-orion),1.6,05.24,6.1
- DATA shaula (l-scorpio),1.6,17.32,-37.1
- DATA elnath (b-taurus),1.7,05.24,28.6
- DATA alnilam (e-orion),1.7,05.35,-1.2
- DATA mirfak (a-perseus),1.8,03.22,49.8
- DATA dubhe (a-ursa maj),1.8,11.2,61.9
- DATA alioth (e-ursa maj),1.8,12.53,56.1
- DATA gamma velorum,1.8,08.9,-47.3
- DATA kaus australis (e-sagtrs),1.8,18.22,-34.4
- DATA alnitak (z-orion),1.8,05.39,-2
- DATA al nair (a-grus),1.8,22.6,-47.1
- DATA alkaid (n-ursa maj),1.9,13.46,49.5
- DATA alhena (g-gemini),1.9,06.36,16.4
- DATA wezen (d-canis maj),1.9,07.7,-26.4
- DATA theta scorpii,1.9,17.35,-43
- DATA menkalinan (b-auriga),1.9,05.57,45
- DATA mirzam (b-canis maj),2,06.21,-17.9
- DATA delta velorum,2,08.44,-54.6
- DATA polaris (a-ursa min),2,02.3,89.1
- DATA alphard (a-hydra),2,09.26,-8.5
- DATA hamal (a-aries),2,02.5,23.3
- DATA diphda (b-cetus),2,00.42,-18.2
- DATA menkent (th-centauri),2,14.5,-35.2
- DATA mirach (b-andromrda),2,01.8,35.5
- DATA nunki (s-saggtrs),2.1,18.53,-26.3
- DATA rasalhaque (a-ophiuc),2.1,17.34,12.6
- DATA alpheratz (a-androm),2.1,00.7,28.9
- DATA algol (b-perseus),2.1,03.6,40.8
- DATA kochab (b-ursa min),2.1,14.51,74.3
- DATA almach (g-androm),2.1,02.2,42.2
- DATA saiph (k-orion),2.1,05.54,7.4
- DATA schedar (a-cassiopeia),2.1,00.39,56.4
- DATA psi-pisces (dbl 30),5.5,01.4,21.2
- DATA g-androm. (or-bl 10),2,02.2,42.2
- DATA b-orion (rigel 9),0,05.13,-8.2
- DATA th-orion (trapez),5.5,05.34,-5.5
- DATA s-orion (tri. 11-41),4,05.37,-2.6
- DATA a-canis maj (sirius 10),-1.5,06.44,-16.7
- DATA a-gemini (castor 75),2,07.32,32
- DATA t-cancer (or-bl 31),4,8.45,29
- DATA g-leo (dbl 4.5),2.5,10.18,20.2
- DATA z-ursa maj (mizar 14),2.5,13.23,55.2
- DATA e-bootes (gd-bl 3),2.5,14.44,27.3
- DATA z-corona (dbl 6),5,15.39,36.8
- DATA nu-draco (dbl 62),5,17.32,55.2
- DATA e-lyra (dbl-dbl 2.7),5,18.44,39.7
- DATA b-cygni (albireo 34),3,19.30,27.8
- DATA g-delphin (yl-gr 10),1.5,20.15,16
- DATA ngc869 (perseus cl w),4.5,02.17,57
- DATA ngc884 (perseus cl e),4.5,02.21,57
- DATA ngc1528 (60 st. 25'),6.5,04.14,51.2
- DATA ngc2632 (m11 beehve),4,08.39,20.1
- DATA ngc6523 (m8 lagoon),5,18.2,-24.4
- DATA ngc6618 (m17 omega),7,18.19,-16.2
- DATA ngc6720 (m7 ring),9,18.53,33
- DATA ngc6853 (m27 dumbl),7.5,19.59,22.6
- DATA ngc5139 (omega glob),4,13.25,-47.4
- DATA ngc6205 (m13 herc),5.5,16.41,36.5
- DATA ngc6656 (m22 sagtr),6,18.35,-23.9
- DATA ngc1952 (m1 crab),8.5,05.33,22
- DATA orion neb (m12),4,05.33,-5
- DATA androm galaxy (m31),4.8,00.40,41
- DATA canes cluster (m3),6.3,13.40,29
- DATA whirlpool gal (m51),8.1,13.28,47
- DATA cygnus clust (m39),5.2,21.3,48
- DATA ophiuc clust (m10),6.7,16.55,-4
- DATA ophiuc clust (m12),6.6,16.45,-2
- DATA ophiuc clust (m14),5.7,17.35,-3
- DATA perseus sngl clstr (m34),5.5,02.39,43
- DATA aquarius clstr (m2),6.3,21.31,-1
- DATA gemini clstr (m35),5.3,06.6,24
- DATA canis maj oc (m41),4.6,06.45,-21
- DATA monoceros oc (m50),6.3,07.1,-8
-
-
-
-
-
-
-
-
-
-
-
-
-