HEKRow#
- class sunpy.net.hek.HEKRow(table, index)[source]#
Bases:
RowHandles the response from the HEK. Each HEKRow object is a subclass of
Row. The column-row key-value pairs correspond to the HEK feature/event properties and their values, for that record from the HEK. Each HEKRow object also has extra properties that relate HEK concepts to VSO concepts.Attributes Summary
Methods Summary
get(key[, default])Return the value for key if key is in the columns, else default.
get_voevent([as_dict, base_url])Retrieves the VOEvent object associated with a given event and returns it as either a Python dictionary or an XML string.
Attributes Documentation
- vso_all#
- vso_instrument#
- vso_time#
Methods Documentation
- get(key, default=None)[source]#
Return the value for key if key is in the columns, else default.
- Parameters:
- Returns:
object– The value in thekeycolumn of the row if present,defaultotherwise.
Examples
>>> from astropy.table import Table >>> t = Table({"a": [2., 3., 5.], "b": [7., 11., 13.]}) >>> t[0].get("a") np.float64(2.0) >>> t[1].get("b", 0.) np.float64(11.0) >>> t[2].get("c", 0.) 0.0