-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto.py
More file actions
29 lines (23 loc) · 653 Bytes
/
auto.py
File metadata and controls
29 lines (23 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.ndimage as scipy
filename =f"/home/rodrigogavioli/PEEC2025/Simulations/Wrot/Alpha0.2/dflux_inc_70.0_8.npy"
filename1 =f"/home/rodrigogavioli/PEEC2025/Simulations/Wrot/Alpha0.2/dflux_inc_70.0_7.npy"
arquivo = np.load(filename)
arquivo1 = np.load(filename)
s = arquivo[:,1]
s1 = arquivo1[:,1]
smooth = scipy.uniform_filter1d(s, size=500)
smooth1 = scipy.uniform_filter1d(s1, size=500)
s = s - smooth
s1 = s1 - smooth1
arquivo[:,1] = s
arquivo1[:,1] = s
s = arquivo[:,1]
t = arquivo[:,0]
s1 = arquivo1[:,1]
t1 = arquivo1[:,0]
plt.plot(t1,s1)
plt.plot(t,s)
plt.show()