GET /api/v1/getJP2Header/


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

    Request Parameters:

    Parameter	Required	Type	Example	Description
    id	Required	number	7654321	Unique JP2 image identifier.
    callback	Optional	string		Wrap the response object in a function call of your choosing.

    Example (A):

    string (XML)

    Example Request:

    http://helioviewer.org/api/v1/getJP2Header/?id=7654321

def getjp2header(Id):
    '''
    GET /api/v1/getJP2Header/


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

    Request Parameters:

    Parameter	Required	Type	Example	Description
    id	Required	number	7654321	Unique JP2 image identifier.
    callback	Optional	string		Wrap the response object in a function call of your choosing.

    Example (A):

    string (XML)

    Example Request:

    http://helioviewer.org/api/v1/getJP2Header/?id=7654321
    '''
    base_url = 'http://helioviewer.org/api/v1/getJP2Header/?'

    if not isinstance(Id, int):
        raise ValueError("The Id argument should be an int, ignoring it")
    else:
        base_url += "id=" + str(Id)

    return dispatch_http_get(base_url)