Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QLFlareFlag product and fix attr description #125

Merged
merged 10 commits into from
Jun 17, 2024

Conversation

samaloney
Copy link
Member

@samaloney samaloney commented Jun 3, 2024

Closes #52 fix description for attr and add basic product.

  • Check the CFL coordinates
    From FSW Flare Message Generation STIX-TN-0109-FHNW
    image

  • Add tests

from stixpy.product import Product

ff = Product('/Users/sm/sunpy/data/solo_L1_stix-ql-flareflag_20240501_V02U.fits')

ff
QLFlareFlag
       <sunpy.time.timerange.TimeRange object at 0x13afc9350>
    Start: 2024-05-01 00:00:01
    End:   2024-05-02 00:00:01
    Center:2024-05-01 12:00:01
    Duration:1.0 days or
           24.0 hours or
           1440.0 minutes or
           86400.0 seconds
ff.data
<QTable length=21600>
control_index           time          timedel loc_z loc_y thermal_index non_thermal_index location_status flare_progress
                                         cs
    uint8               Time           uint32 int16 int16    int16[1]        int16[1]         int16[1]        int64
------------- ----------------------- ------- ----- ----- ------------- ----------------- --------------- --------------
            0 2024-05-01T00:00:03.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:07.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:11.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:15.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:19.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:23.331     400    -4    26             3                 0               1              1
            0 2024-05-01T00:00:27.331     400    -4    26             3                 0               1              1
          ...                     ...     ...   ...   ...           ...               ...             ...            ...
           17 2024-05-01T23:59:31.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:35.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:39.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:43.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:47.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:51.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:55.331     400     0     0             0                 0               0              0
           17 2024-05-01T23:59:59.331     400     0     0             0                 0               0              0

At the moment this isn't that useful unless you know what the coordinate frame of the location and meaning of the index so. The plan would be to the the location in a STIXImaging SkyCoord and and ENUM for the indices base on TMTC ICD.

I've added properties which map the value to the relevant text from the table below and others.

image

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 85.93750% with 9 lines in your changes missing coverage. Please review.

Project coverage is 73.98%. Comparing base (310037e) to head (eb2ffb5).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
stixpy/product/sources/quicklook.py 85.48% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   73.60%   73.98%   +0.37%     
==========================================
  Files          32       32              
  Lines        1940     1999      +59     
==========================================
+ Hits         1428     1479      +51     
- Misses        512      520       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samaloney samaloney force-pushed the feat-fido-cfl branch 2 times, most recently from 1ae8f72 to 356a7d3 Compare June 4, 2024 14:59
@samaloney samaloney merged commit ba0ef1c into TCDSolar:main Jun 17, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CFL to the QL that can be found with Fido
1 participant