Changes between Version 85 and Version 86 of Other/Summer/2025/mlCoexist


Ignore:
Timestamp:
Jul 16, 2025, 7:50:11 PM (12 days ago)
Author:
aw1086
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Other/Summer/2025/mlCoexist

    v85 v86  
    6363- In progress to generate all graphs for fc1, 2, 3 for both a) transition-band and b) out-of-band scenarios
    6464[[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 them into np 2D arrays:
    66 {{{#!python
     65- Code used for generating spectrograms and converting into np 2D arrays:
     66{{{#!python 
    6767def plot_spect(dataset, title,min_value,max_value,normalized=False, save=None):
    6868    if normalized:
     
    7171        global_maximum = 1
    7272
    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)
    7475
    7576    fig = plt.figure(figsize=(12, 8))
     
    8990    plt.tight_layout()
    9091
     92    #save the RGB values of the plot as a Numpy array
    9193    fig.canvas.draw()
    9294    img_rgba = np.frombuffer(fig.canvas.tostring_argb(), dtype=np.uint8)