maglimit
[1]:
!pip install maglimit
Requirement already satisfied: maglimit in /Users/pratik/Github/maglimit (0.0.2)
[2]:
import maglimit.limiting_mag as ml
[3]:
telescope = ml.Telescope(aperture = 100, fstop = 4.5)
[4]:
focal_length = telescope.focal_length()
focal_length
[4]:
$450 \; \mathrm{mm}$
[5]:
limiting_magnitude = telescope.lim_mag()
limiting_magnitude
[5]:
12.0
[14]:
magnification = telescope.magnification(f_eyepiece=25)
magnification
[14]:
18
[6]:
ml.is_object_observable(obj = 'M31', lm = limiting_magnitude)
Limiting magnitude of scope is 12.0 and magnitude of M31 is 4.36
[6]:
True
[7]:
ml.is_object_observable(obj = 'NGC 244', lm = limiting_magnitude)
Limiting magnitude of scope is 12.0 and magnitude of NGC 244 is 13.83
[7]:
False
[8]:
ml.smallest_scope("NGC 244", fs = 4.5)
#fs is the desired f stop ratio
# Returns a tuple (object magnitude, minimum aperture in mm, minimum focal length in mm)
[8]:
(13.83, 232.27, 1045.22)