ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.6 KiB

  1. 1 REM STEREOGRAPHIC SKY PROJECTION
  2. 2 P=3.14159265: R1=P/180
  3. 3 INPUT "RADIUS ";K
  4. 4 INPUT "LAT, LONG ";B,L
  5. 5 REM W LONG NEG, E LONG POSITIVE
  6. 6 B=B*R1: L=L*R1
  7. 7 INPUT "LST (H,M,S) ";A$,A2,A3
  8. 8 GOSUB 72: T=A*15*R1-L
  9. 10 INPUT "OBJECT NAME ";B$
  10. 12 INPUT "RA (H,M,S) ";A$,A2,A3
  11. 14 GOSUB 72: R=A*15*R1
  12. 16 INPUT "DEC (D,M,S) ";A$,A2,A3
  13. 17 GOSUB 72: D=A*R1
  14. 18 PRINT: PRINT B$
  15. 19 GOSUB 32: GOSUB 100
  16. 20 PRINT: PRINT "STARS"
  17. 21 N=8: REM NUMBER OF STARS
  18. 22 FOR I=1 TO N
  19. 23 READ R,D
  20. 24 R=R*15*R1: D=D*R1
  21. 25 GOSUB 32: GOSUB 100
  22. 26 NEXT I
  23. 29 END
  24. 30 REM ALTITUDE AND AZIMUTH
  25. 32 T5=T-R+L: REM LOCAL HR ANGLE
  26. 34 S1=SIN(B)*SIN(D)
  27. 36 S1=S1+COS(B)*COS(D)*COS(T5)
  28. 38 C1=1-S1*S1
  29. 40 IF C1>0 THEN C1=SQR(C1)
  30. 42 IF C1<=0 THEN 46
  31. 44 H=ATN(S1/C1): GOTO 48
  32. 46 H=SGN(S1)*P/2
  33. 48 C2=COS(B)*SIN(D)
  34. 50 C2=C2-SIN(B)*COS(D)*COS(T5)
  35. 52 S2=-COS(D)*SIN(T5)
  36. 54 IF C2=0 THEN A=SGN(S2)*P/2
  37. 56 IF C2=0 THEN 62
  38. 58 A=ATN(S2/C2)
  39. 60 IF C2<0 THEN A=A+P
  40. 62 IF A<0 THEN A=A+2*P
  41. 70 RETURN
  42. 72 REM SEXAGESIMAL TO DECIMAL
  43. 76 S=1: A1=ABS(VAL(A$))
  44. 78 IF LEFT$(A$,1)="-" THEN S=-1
  45. 80 A=S*(A1+A2/60+A3/3600)
  46. 82 RETURN
  47. 100 REM STEREOGRAPHIC PROJECTION
  48. 105 REM H=ALTITUDE, A=AZIMUTH
  49. 110 Q=P/4-H/2
  50. 115 X=K*SIN(Q)/COS(Q)*SIN(2*P-A)
  51. 120 Y=K*SIN(Q)/COS(Q)*COS(2*P-A)
  52. 125 PRINT " X= ";INT(X*1000)/1000;
  53. 126 PRINT " Y= ";INT(Y*1000)/1000
  54. 130 RETURN
  55. 200 REM STAR DATA FOR TAURUS
  56. 205 REM RA, DEC
  57. 210 DATA 5.58, 21.0, 5.38, 28.5
  58. 215 DATA 4.55, 16.3, 4.43, 15.9
  59. 220 DATA 4.43, 19.0, 4.38, 18.0
  60. 225 DATA 4.33, 17.5, 4.29, 15.5
  61. 230 REM ************************
  62. 235 REM FROM SKY & TELESCOPE,
  63. 240 REM OCTOBER, 1987, P. 408
  64. 245 REM ************************