Changes between Version 85 and Version 86 of Other/Summer/2025/mlCoexist
- Timestamp:
- Jul 16, 2025, 7:50:11 PM (12 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Other/Summer/2025/mlCoexist
v85 v86 63 63 - In progress to generate all graphs for fc1, 2, 3 for both a) transition-band and b) out-of-band scenarios 64 64 [[Image(https://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2025/mlCoexist/Frequency%20Band.png, 60%)]] 65 - Code used for generating spectrograms and converting theminto np 2D arrays:66 {{{#!python 65 - Code used for generating spectrograms and converting into np 2D arrays: 66 {{{#!python 67 67 def plot_spect(dataset, title,min_value,max_value,normalized=False, save=None): 68 68 if normalized: … … 71 71 global_maximum = 1 72 72 73 y_res = 20 * np.log10(np.abs(dataset) / global_maximum) 73 #normalize received power and convert into dB scale) 74 y_res = 20 * np.log10(np.abs(dataset) / global_maximum) 74 75 75 76 fig = plt.figure(figsize=(12, 8)) … … 89 90 plt.tight_layout() 90 91 92 #save the RGB values of the plot as a Numpy array 91 93 fig.canvas.draw() 92 94 img_rgba = np.frombuffer(fig.canvas.tostring_argb(), dtype=np.uint8)