Generate Thematic Maps from Heliophysics Event Knowledgebase
The below script will allow you to generate thematic maps from the valuable Heliophysics Event Knowledgebase (HEK). I have written it to take a SUVI thematic map as input and output only Spatial Possibilistic Clustering Algorithm (SPoCA) coronal hole and bright region patches in HEK but would be willing to help assist others to modify the script as needed.
Expert labeled map
SPoCA map from HEK
The script can be found below and bundled with smachy, my solar image segmentation toolkit.
"""
Given a thematic map from SUVI this script queries HEK and creates a similar SPoCA thematic map with only
coronal holes and active regions.
"""
""" process the script arguments """
=
=
return
""" query hek client for features around the time of the image """
=
= -
= +
=
return
""" determines pixels for coronal hole feature """
=
=
=
=
=
, = ,
, =
, return ,
# process the arguments
=
# open the suvi thematic map
= .
= .
=
=
# query hek for that time
=
=
# separate the coronal holes and active regions from SPoCA for drawing
=
=
# draw the coronal holes
=
, =
=
# draw the active regions
=
, =
=
# save to a file