Example #1
0

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [1553.3, 1554.1])  # add custom ctn if needed 
manual_ctn = auto.find_continuum_polyfit(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1.5e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1543.9, 1544.8, 1547.4, 1549, 1550, 1551])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.5e-14)
    auto.plt.show

Example #3
0

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [1543, 1544, 1545.5, 1548.5, 1549.5, 1551.4])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
Example #4
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(wl, [
    1544.3, 1544.4, 1545.7, 1546.8, 1547.5, 1549.5, 1550.5, 1551, 1553.3,
    1553.8
])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-14)
    auto.plt.show
Example #5
0
# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl,
    [1543, 1544.1, 1547.3, 1547.7, 1548, 1549, 1550.5, 1551.5, 1552.2, 1552.8
     ])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.3e-14)
    auto.plt.show
Example #6
0
# In[5]:


wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(wl, [1546.7, 1548.8, 1549.2, 1551])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1.2e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
Example #7
0
# In[5]:


wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(wl, [1547.5, 1549.6, 1550.4, 1551.4])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 3e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
Example #8
0
os.getcwd()

# In[241]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[246]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1546.6, 1549, 1550.2, 1551.2])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[248]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-13)
    auto.plt.show

Example #9
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [1547.2, 1548.4, 1550.2, 1551.5, 1553.2, 1553.9
                             ])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1.2e-14)
    auto.plt.show

Example #10
0

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [1547.7, 1548.5, 1550.5, 1550.8])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2.2e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
Example #11
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1548, 1551.5, 1552.3, 1553.9])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2.2e-14)
    auto.plt.show

Example #12
0

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[6]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [1547.1, 1548.5, 1549.6, 1551])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.6e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
Example #13
0
# In[18]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[30]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1548, 1549, 1550.5, 1551.5, 1552.5, 1553, 1553.5, 1555
         ])  # add custom ctn if needed
manual_ctn = auto.find_continuum_polyfit(name, wl, fl, fe, ctn, ctn_flag)

# In[31]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.6e-14)
    auto.plt.show
Example #14
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547.4, 1548.2, 1550, 1552.2])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-14)
    auto.plt.show

Example #15
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547, 1549, 1549.5, 1551.4])  # add custom ctn if needed
manual_ctn = auto.find_continuum_polyfit(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2e-14)
    auto.plt.show

Example #16
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547.5, 1549, 1550, 1551.2])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1.1e-14)
    auto.plt.show

Example #17
0
# In[27]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[56]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl,
    [1546.5, 1547, 1547.5, 1549.4, 1550.4, 1552.8])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[57]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.8e-14)
    auto.plt.show
Example #18
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1548, 1549.3, 1550.5, 1553])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.5e-14)
    auto.plt.show

Example #19
0
# In[18]:


wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')


# In[53]:


#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(wl, [1545.2, 1546.3, 1547.5, 1548])  # add custom ctn if needed 
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)


# In[54]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name + '/full.spec')
    auto.plt.plot(spec[:,0], spec[:,1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2e-14)
    auto.plt.show
    
check_larger_continuum(name, wl, manual_ctn)
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[16]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1543, 1544.8, 1546, 1547, 1547, 1551])  # add custom ctn if needed
manual_ctn = auto.find_continuum_polyfit(name, wl, fl, fe, ctn, ctn_flag)

# In[17]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.3e-14)
    auto.plt.show

Example #21
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(
    wl, [1546.5, 1547.4, 1547.8, 1548.9, 1549.5, 1550, 1550.5, 1551.5
         ])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.7e-14)
    auto.plt.show
Example #22
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl,
                        [1546, 1551, 1553, 1555])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1.2e-14)
    auto.plt.show

Example #23
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(
    wl, [1544.5, 1545, 1547.5, 1548.5, 1550, 1552.5, 1553, 1555
         ])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-14)
    auto.plt.show
Example #24
0
# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547.5, 1548.73, 1550, 1551, 1552.3, 1553, 1553.95, 1555
         ])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 0.4e-14)
    auto.plt.show
Example #25
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(wl, [])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 15e-14)
    auto.plt.show

Example #26
0
os.getcwd()

# In[53]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[66]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547.5, 1549.5, 1550.2, 1552])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[67]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2.6e-14)
    auto.plt.show

Example #27
0
os.getcwd()

# In[102]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[105]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1546, 1546.7, 1548, 1551.2])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[106]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 2e-14)
    auto.plt.show

Example #28
0
os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1546, 1548.5, 1550.3, 1551])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 3.5e-14)
    auto.plt.show

Example #29
0
os.getcwd()

# In[178]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[180]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))

ctn_flag = auto.mask_wl(
    wl, [1547, 1548.8, 1550, 1551.3])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[181]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    #auto.plt.ylim(0, 2e-14)
    auto.plt.show

os.getcwd()

# In[5]:

wl1, f1, gamma1, elem, state = (1548.187, 0.19, 0.00324, 'C', 'IV')
wl2, f2, gamma2, elem, state = (1550.772, 0.0952, 0.00325, 'C', 'IV')

path = '/Users/ryanlindley/Research/CIV/' + name + '/CIV.bin3.linespec'
wl, fl, fe, ctn = auto.np.loadtxt(path).transpose()
lsf = auto.np.loadtxt('/Users/ryanlindley/Research/CIV.old_setup/CIV.lsf')

# In[6]:

#new_ctn = auto.find_continuum(name, wl, fl, fe, ctn, [True]*len(wl))
ctn_flag = auto.mask_wl(
    wl,
    [1546.7, 1547.4, 1547.8, 1549, 1550, 1551.8])  # add custom ctn if needed
manual_ctn = auto.find_continuum(name, wl, fl, fe, ctn, ctn_flag)

# In[7]:


def check_larger_continuum(name, wl, ctn):
    spec = auto.np.loadtxt('/Users/ryanlindley/Research/CIV/' + name +
                           '/full.spec')
    auto.plt.plot(spec[:, 0], spec[:, 1])
    auto.plt.plot(wl, ctn)
    auto.plt.xlim(1542, 1556)
    auto.plt.ylim(0, 1e-14)
    auto.plt.show