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.
 
 
 
 
 
 

75 lines
4.0 KiB

  1. 100 REM LIMITING MAGNITUDE OF A TELESCOPE
  2. 110 REM
  3. 120 INPUT "SCOPE APERTURE ";D : REM IN INCHES
  4. 130 INPUT "POWER ";MG : REM SCOPE'S MAGNIFICATION
  5. 140 INPUT "LIM MAG AT ZENITH ";MZ : REM FOR NAKED-EYE
  6. 150 INPUT "OBSERVER'S AGE ";AG : REM IN YEARS
  7. 160 INPUT "TELESCOPE TYPE (1-3) ";TT : REM 1=REFR, 2=REFL, 3=SCT
  8. 170 INPUT "CLEANLINESS (1-9) ";CL : REM 1=FILTHY, 9=CLEAN
  9. 180 INPUT "COLOR INDEX OF STAR ";CI : REM B-V MAGNITUDE
  10. 190 INPUT "ZENITH DISTANCE ";Z : REM IN DEGREES
  11. 200 INPUT "EXTINCTION COEFF ";KV : REM IN V-BAND
  12. 210 INPUT "SEEING DISK RADIUS ";SE : REM IN ARC-SECONDS
  13. 220 INPUT "EXPERIENCE (1-9) ";EX : REM 1=NOVICE, 9=VERY EXPER.
  14. 230 D=D*25.4 : REM CONVERT TO MM
  15. 240 IF TT=1 THEN DS=0 : REM NO OBSTRUCTION
  16. 250 IF TT=2 THEN DS=0.15*D : REM NEWT SECONDARY DIAM
  17. 260 IF TT=3 THEN DS=0.35*D : REM TYPICAL DIAM OF SCHMIDT-
  18. 270 REM CASS SECONDARY
  19. 280 Z=Z/57.296 : REM CONVERT TO RADIANS
  20. 290 CC=1.58E-10 : REM NIGHT-VISION CONSTANT
  21. 300 KK=0.0126 : REM NIGHT-VISION CONSTANT
  22. 310 K=1.2*KV : REM CORRECT KV TO 5100 A
  23. 320 X=1.0/COS(Z) : REM AIR MASS
  24. 330 IF TT=1 THEN FL=0.99^4 : REM 4 COATED SURFACES
  25. 340 IF TT=2 THEN FL=0.88^2 : REM 2 ALUMINIZED MIRRORS
  26. 350 IF TT=3 THEN FL=(0.99*0.88)^2 : REM CORRECTOR & 2 MIRRORS
  27. 360 FD=1.0-(DS/D)^2 : REM ALLOW FOR OBSTRUCTION
  28. 370 FO=0.99^4 : REM EYEPIECE (4 COATED
  29. 375 REM AIR-GLASS SURFACES)
  30. 380 DE=7*EXP(-0.5*(AG/100)^2) : REM DIAM EYE PUPIL IN MM
  31. 390 DP=D/MG : REM DIAM OF EXIT PUPIL
  32. 400 TH=2*SE*MG : REM APPARENT DIAMETER OF
  33. 410 REM SEEING DISK (ARC-SEC)
  34. 420 REM CORRECTIONS
  35. 430 FB=SQR(2) : REM BINOCULAR VISION
  36. 440 FE=10^(0.4*K*X) : REM ATMOSPHERIC EXTINCTION
  37. 450 FT=1/(FL*FD*FO-0.01*(9-CL)) : REM TOTAL TRANSMISSION
  38. 460 REM OF TELESCOPE
  39. 470 FPX=1.0 : REM LIGHT OUTSIDE PUPIL
  40. 480 IF DE<DP THEN FPX=(DP/DE)^2
  41. 490 FA=(DE/D)^2 : REM LIGHT-COLLECTING AREA
  42. 500 FM=MG^2 : REM SPREAD OF SKY PHOTONS
  43. 510 FR=1.0 : REM POINT SOURCE CAN
  44. 520 IF TH>900 THEN FR=SQR(TH/900) : REM APPEAR EXTENDED
  45. 530 FC=10^(0.4*(CI/2-1)) : REM COLOR OF STAR
  46. 540 FS=1.0 : REM OBSERVER'S SENSITIVITY
  47. 550 REM
  48. 560 REM CALCULATE SKY BRIGHTNESS
  49. 570 REM
  50. 580 IF MZ>=(7-K) THEN 620 : REM
  51. 590 XX=0.2*(8.68-K-MZ) : REM FS ASSUMED = 1
  52. 600 BS=39.7*(10^XX-1)^2 : REM SKY BRIGHTNESS FOR MZ
  53. 610 GOTO 650
  54. 620 BS=54 : REM BEST POSS. SKY BRIGHT-
  55. 630 FS=10^(0.4*(7-K-MZ)) : REM NESS & GOOD EYESIGHT
  56. 640 REM
  57. 650 BS=BS*(Z*Z*0.5+1) : REM ZENITH HAS DARKEST SKY
  58. 660 B=BS/(FB*FT*FPX*FA*FM*FC) : REM BACKGROUND BRIGHTNESS
  59. 670 REM IN TELESCOPE
  60. 690 REM CALCULATE LIMITING MAGNITUDE
  61. 700 REM
  62. 710 I=CC*(1+SQR(KK*B))^2 : REM Hecht (JOSA,v37,p59,1947)
  63. 720 IS=I*FB*FE*FT*FPX*FA*FR*FC*FS : REM FOR NO SCOPE, NO AIR
  64. 730 M=-16.57-2.5*LOG(IS)/LOG(10) : REM INTENSITY TO V MAG
  65. 740 M=M+(EX-6)*0.16 : REM EMPIRICAL EXPERIENCE
  66. 750 REM CORRECTION
  67. 760 PRINT "VISUAL LIMITING MAGNITUDE = ";M
  68. 770 END
  69. 800 REM
  70. 810 REM This program by Bradley Schaefer calculates the
  71. 820 REM limiting stellar magnitude an observer can expect
  72. 830 REM to see with various types and sizes of telescopes,
  73. 840 REM and under various conditions. It is fully discussed
  74. 850 REM in SKY & TELESCOPE magazine, November, 1989, page 522.