getJP2Header#

hvpy.getJP2Header(id, callback=None)[source]#

Get the XML header embedded in a JPEG2000 image. Includes the FITS header as well as a section of Helioviewer-specific metadata.

Parameters:
  • id (int) – Unique JP2 image identifier.

  • callback (Optional[str]) – Wrap the response object in a function call of your choosing. Default is None (no wrapping), optional.

Return type:

Union[bytes, str, Dict[str, Any]]

References

Examples

>>> from hvpy import getJP2Header
>>> getJP2Header(id=7654321, callback="xml_header")
'xml_header(\'<?xml version="1.0" encoding="utf-8"?><meta><fits>...')'