Commit fd6b6888 authored by Nicolas Nunez Barreto's avatar Nicolas Nunez Barreto

me falto este

parent 439b1be1
...@@ -18,9 +18,8 @@ ALL_FILES_SP = """000001503-SingleLine.h5 ...@@ -18,9 +18,8 @@ ALL_FILES_SP = """000001503-SingleLine.h5
000001510-SingleLine.h5 000001510-SingleLine.h5
000001511-SingleLine.h5 000001511-SingleLine.h5
000001512-SingleLine.h5 000001512-SingleLine.h5
000001513-SingleLine.h5""" 000001513-SingleLine.h5
000001514-SingleLine.h5""" #este tiene amplitud 0.08 que es muy poquito
#000001514-SingleLine.h5 #este tiene amplitud 0.08 que es muy poquito
BINW = 20e-9 BINW = 20e-9
T0 = 1.15e-6 T0 = 1.15e-6
...@@ -32,17 +31,17 @@ def expo(T, tau, N0, C): ...@@ -32,17 +31,17 @@ def expo(T, tau, N0, C):
def pow_from_amp(amp): def pow_from_amp(amp):
"""Paso de amplitud urukul a potencia medida por Nico""" """Paso de amplitud urukul a potencia medida por Nico"""
# Forma altamente ineficiente de hacer esto, pero me salio asi # Forma altamente ineficiente de hacer esto, pero me salio asi
amplitudes_UV = np.array([0.10, 0.12, 0.14, 0.16, 0.18, 0.20, 0.22, 0.24, 0.26, 0.28, 0.30]) amplitudes_UV = np.flip(np.array([0.08, 0.10, 0.12, 0.14, 0.16, 0.18, 0.20, 0.22, 0.24, 0.26, 0.28, 0.30]))
assert amp in amplitudes_UV assert amp in amplitudes_UV
potencias_UV = np.array([5, 11, 20, 32, 47, 67, 86, 105, 120, 134, 144]) potencias_UV = np.flip(np.array([4, 10, 19, 32, 49, 71, 96, 125, 155, 183, 208, 229]))
return potencias_UV[np.where(amplitudes_UV == amp)][0] return potencias_UV[np.where(amplitudes_UV == amp)][0]
amplitudes_UV = np.flip(np.array([0.08, 0.10, 0.12, 0.14, 0.16, 0.18, 0.20, 0.22, 0.24, 0.26, 0.28, 0.30])) """
potencias_UV = np.flip(np.array([4, 10, 19, 32, 49, 71, 96, 125, 155, 183, 208, 229]))
plt.plot(amplitudes_UV, potencias_UV, 'ko-', lw=0.2) plt.plot(amplitudes_UV, potencias_UV, 'ko-', lw=0.2)
plt.xlabel("Amplitud Urukul") plt.xlabel("Amplitud Urukul")
plt.ylabel("Potencia /uW") plt.ylabel("Potencia /uW")
plt.grid() plt.grid()
"""
#%% #%%
## Mostrar corte de los histos: ## Mostrar corte de los histos:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment