vso_attribute_parse

sunpy.net.hek2vso.vso_attribute_parse(phrase)[source]

Parses VSO attributes from a HEK result.

This is a simple function to parse HEK query result and generate a list containing VSO relevant attributes.

Parameters

phrase (sunpy.net.hek.hek.HEKRow.) – The single HEK result to be parsed for VSO attribute data.

Examples

>>> from sunpy.net import attrs as a
>>> from sunpy.net.hek import hek, HEKClient
>>> from sunpy.net.hek2vso import hek2vso, H2VClient
>>> h = HEKClient()  
>>> h2v = H2VClient()  
>>> q = h.search(a.Time('2011/08/09 07:23:56', '2011/08/09 12:40:29'), a.hek.EventType('FL'))  
>>> len(q)  
19
>>> hek2vso.vso_attribute_parse(q[9])  
[<sunpy.net.attrs.Time(2011-08-09 07:22:38.000, 2011-08-09 08:32:02.000)>, <sunpy.net.attrs.Source(SDO: The Solar Dynamics Observatory.) object at ...>, <sunpy.net.attrs.Instrument(AIA: Atmospheric Imaging Assembly) object at ...>, <sunpy.net.attrs.Wavelength(210.99999999999997, 210.99999999999997, 'Angstrom')>]