Пример #1
0
N1, N2 = auto.make_features(p0, feat, wl, wl1, wl2, lsf, gamma1, gamma2)
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-275, -225, 80, 120])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[14]:

data = auto.np.c_[v_final, Nv_final, Nve_final]
Пример #2
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-30, 0, 225, 275
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [5, 40, 280, 300])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[14]:
Пример #3
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [50, 100])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-60, 0, 250, 350])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[14]:
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-130, -100, 450, 480
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-240, -160, 300, 400])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 500])

# In[14]:
Пример #5
0
N1, N2 = auto.make_features(p0, feat, wl, wl1, wl2, lsf, gamma1, gamma2)
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [150, 180, 210, 325])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[14]:

data = auto.np.c_[v_final, Nv_final, Nve_final]
Пример #6
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-200, -100, 60, 110
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [250, 400])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 500])

# In[14]:
Пример #7
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[197]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[201]:

strong_flag = auto.mask_v(
    wl, wl1, [-100, -50, -25, 0
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[202]:
Пример #8
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [160, 240])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [0, 75])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[14]:
Пример #9
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-350, -200
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-180, -120, 0, 50])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-400, 400])

# In[14]:
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [250, 275])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [125, 200])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[14]:
Пример #11
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-500, -400, -375, -275
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-200, -10, 10, 275])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-500, 400])

# In[14]:
Пример #12
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-300, 400])

print(p0)

# In[17]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-400, 400])

# In[18]:

strong_flag = auto.mask_v(
    wl, wl1, [-320, -250, 150, 215
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-250, -125])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-400, 400])

# In[14]:
Пример #13
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [-65, 30])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [40, 200, 260, 300])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[14]:
Пример #14
0
N1, N2 = auto.make_features(p0, feat, wl, wl1, wl2, lsf, gamma1, gamma2)
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-275, -200, -110, 50, 300, 425])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 500])

# In[14]:

data = auto.np.c_[v_final, Nv_final, Nve_final]
Пример #15
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[168]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[174]:

strong_flag = auto.mask_v(
    wl, wl1,
    [101, 150])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-300, -100, 25, 100])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[175]:
Пример #16
0

print(p0)


# In[12]:


N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1, gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])


# In[13]:


strong_flag = auto.mask_v(wl, wl1,[-225, -175]) # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-125, -50, 125, 175])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl, wl1, wl2, N1r, N2r, Ne1, Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final =  auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final, name, [-300, 300])


# In[14]:


data = auto.np.c_[v_final, Nv_final, Nve_final]
CIV_regions = [[-150, 75]]
Пример #17
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [225, 400])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-75, 50])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[14]:
Пример #18
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-275, -230
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-350, -300, -50, 10])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-500, 300])

# In[14]:
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1,
    [-50, 0])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-160, -140, 180, 200])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 300])

# In[14]:
Пример #20
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-220, -120, 175, 275
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [300, 500])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 500])

# In[14]:
Пример #21
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[469]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[471]:

strong_flag = auto.mask_v(
    wl, wl1,
    [0, 25])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-100, 0, 300, 400])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-300, 400])

# In[472]:
Пример #22
0
Ne1 = auto.nfle2Nev(fn, fne, f1, wl1)
Ne2 = auto.nfle2Nev(fn, fne, f2, wl2)
auto.plot_features(wl, wl1, wl2, N1, N2, Ne1, Ne2, [-500, 500])

print(p0)

# In[12]:

N1r, N2r = auto.add_residual(p0, N1, N2, feat, wl, wl1, wl2, f1, f2, gamma1,
                             gamma2, lsf, fn)
auto.plot_features(wl, wl1, wl2, N1r, N2r, Ne1, Ne2, [-500, 500])

# In[13]:

strong_flag = auto.mask_v(
    wl, wl1, [-100, -80, 50, 100
              ])  # add masking for any regions not to be used in combined data
weak_flag = auto.mask_v(wl, wl2, [-325, -275, 225, 300, 350, 400])
v1, v2, Nv1, Nv2, Nve1, Nve2 = auto.remove_regions(strong_flag, weak_flag, wl,
                                                   wl1, wl2, N1r, N2r, Ne1,
                                                   Ne2)

v_bins, Nv_bins, Nve_bins = auto.make_bins(v1, v2, Nv1, Nv2, Nve1, Nve2)

v_final, Nv_final, Nve_final = auto.final_data(v_bins, Nv_bins, Nve_bins)

auto.plot_final_data(wl, wl1, wl2, N1r, N2r, v_final, Nv_final, Nve_final,
                     name, [-400, 500])

# In[14]: