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.
 
 
 
 
 
 

35 lines
823 B

  1. 10 REM EXTINCTION ANGLE
  2. 12 REM
  3. 14 R=180/3.14159265
  4. 16 INPUT "STAR'S MAG";M
  5. 18 INPUT "LIM MAG AT ZEN";M0
  6. 20 INPUT "EXT COEFF, K";K
  7. 22 REM FIND BACKGROUND
  8. 24 K0=0.0126: K1=M0+K
  9. 26 IF K1<4.21 THEN K0=0.00000126
  10. 28 C=-9.80
  11. 30 IF M0+K<4.21 THEN C=-8.35
  12. 32 X0=(M0+16.57+K+2.5*C)/(-5.0)
  13. 34 B0=(10^X0-1)^2/K0-K*118/0.2
  14. 36 REM FIND DESIRED AIRMASS
  15. 38 B=B0+236*(K/0.20)
  16. 40 K0=0.0126
  17. 42 IF B>1650 THEN K0=0.00000126
  18. 44 C=-9.80
  19. 46 IF B>1650 THEN C=-8.35
  20. 48 I=C+2*LOG(1+SQR(K0*B))/LOG(10)
  21. 50 A=(M+16.57+2.5*I)/(-K)
  22. 52 REM FIND EXT ANGLE
  23. 54 Z=90.1/R: D=0.1/R
  24. 56 Z=Z-D
  25. 58 X=COS(Z)+0.025*EXP(-11*COS(Z))
  26. 60 IF (1/X)>A THEN 56
  27. 62 Z=Z*R
  28. 64 PRINT "EXT ANGLE: ";Z
  29. 66 END
  30. 68 REM ******************************
  31. 70 REM FROM ASTRONOMICAL COMPUTING,
  32. 72 REM SKY & TELESCOPE, APRIL, 1987,
  33. 74 REM PAGE 426
  34. 76 REM ******************************