Difference between revisions of "Recent Flare List (2021)"

From EOVSA Wiki
Jump to: navigation, search
(List of EOVSA Flares with Spectrogram Data)
Line 1: Line 1:
 +
== Code to read spectrogram file ==
 +
<pre>
 +
def rd_datfile(file):
 +
    ''' Read EOVSA binary data file
 +
    '''
 +
    import struct
 +
    import numpy as np
 +
    def dims(file):
 +
        f = open(file,'rb')
 +
        tmp = f.read(80000)
 +
        f.close()
 +
        tdat = struct.unpack('10000d',tmp[:80000])
 +
        nt = np.where(np.array(tdat) < 2400000.)[0]
 +
        nf = np.where(np.array(tdat) < 1.1)[0]
 +
        return nt[0], nf[0]-nt[0]
 +
    nt, nf = dims(file)
 +
    f = open(file,'rb')
 +
    tmp = f.read(nt*8)
 +
    times = struct.unpack(str(nt)+'d',tmp)
 +
    tmp = f.read(nf*8)
 +
    fghz = struct.unpack(str(nf)+'d',tmp)
 +
    tmp = f.read()
 +
    f.close()
 +
    data = np.array(struct.unpack(str(nt*nf)+'f',tmp)).reshape(nf,nt)
 +
    return {'time':times, 'fghz':fghz, 'data':data}
 +
</pre>
 +
 
== List of EOVSA Flares with Spectrogram Data ==
 
== List of EOVSA Flares with Spectrogram Data ==
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 13:01, 15 June 2021

Code to read spectrogram file

def rd_datfile(file):
    ''' Read EOVSA binary data file
    '''
    import struct
    import numpy as np
    def dims(file):
        f = open(file,'rb')
        tmp = f.read(80000)
        f.close()
        tdat = struct.unpack('10000d',tmp[:80000])
        nt = np.where(np.array(tdat) < 2400000.)[0]
        nf = np.where(np.array(tdat) < 1.1)[0]
        return nt[0], nf[0]-nt[0]
    nt, nf = dims(file)
    f = open(file,'rb')
    tmp = f.read(nt*8)
    times = struct.unpack(str(nt)+'d',tmp)
    tmp = f.read(nf*8)
    fghz = struct.unpack(str(nf)+'d',tmp)
    tmp = f.read()
    f.close()
    data = np.array(struct.unpack(str(nt*nf)+'f',tmp)).reshape(nf,nt)
    return {'time':times, 'fghz':fghz, 'data':data}

List of EOVSA Flares with Spectrogram Data

Date Time (UT) GOES Class Spectrogram STIX Coverage
2021-01-19 17:50 C1.0 No
2021-02-18 18:04 A8.0 Yes
2021-04-17 16:46 B9.0 Yes
2021-04-19 23:36 M1.0 No
2021-05-05 22:30 B5.0 Yes
2021-05-07 19:00 M4.0 Yes
2021-05-07 19:00 M4.0 Yes
2021-05-08 18:30 C9.0 Yes
2021-05-09 13:55 C4.0 Yes
2021-05-17 19:05 B5.0 Yes
2021-05-21 19:25 C5.0 Yes
2021-05-22 16:10 C1.0 Yes
2021-05-22 17:10 M1.0
EOVSA20210522 M1flare.png
data
Yes
2021-05-22 21:30 M1.4 Yes
2021-05-22 23:11 C7.0 Yes
2021-05-23 17:00 C2.0 Yes
2021-05-27 22:00 C1.0 No
2021-05-27 23:10 C7.0 No
2021-05-28 22:30 C9.0 No