In [1]:
%matplotlib inline
%config InlineBackend.figure_format = "retina"

from __future__ import print_function
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
import warnings
warnings.filterwarnings('ignore')

import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams

In [2]:
rcParams["savefig.dpi"] = 200
rcParams["figure.dpi"] = 200
rcParams["font.size"] = 20
rcParams["figure.figsize"] = [8, 5]
rcParams["font.family"] = "sans-serif"
rcParams["font.sans-serif"] = ["Computer Modern Sans Serif"]
rcParams["text.usetex"] = True

Using the Object-Oriented Interface


In [3]:
import coronagraph as cg
print(cg.__version__)


0.0.3

In [4]:
noise = cg.CoronagraphNoise(THERMAL=True)

In [5]:
lamhr, Ahr, fstar = cg.get_earth_reflect_spectrum()

In [6]:
noise.run_count_rates(Ahr, lamhr, fstar)

In [7]:
noise.make_fake_data(texp = 10)

In [8]:
fig, ax = noise.plot_spectrum()



In [9]:
fig, ax = noise.plot_SNR()



In [10]:
fig, ax = noise.plot_time_to_wantsnr()