def _find_gkeys(self, keylist):
    'Finds and extracts the global keywords\n\n        The method finds the all predefined global keywords in\n        a keyword list. The list of global keywords is\n        returned. Their counterparts in the input keyword list\n        are deleted.\n\n        Parameters\n        ----------\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keys: list\n            global keywords\n        '
    gkeywords = ['INSTRUMENT', 'CAMERA', 'TELAREA', 'SCIENCE_EXT', 'ERRORS_EXT', 'DQ_EXT', 'OPTKEY1', 'OPTVAL1', 'FFNAME', 'DQMASK', 'DRZRESOLA', 'DRZSCALE', 'DRZLAMB0', 'DRZXINI', 'DRZROOT', 'EXPTIME', 'WEIGHT_EXT', 'DRZPFRAC', 'DRZPSCALE', 'DRZKERNEL', 'MODEL_EXT', 'VARIANCE_EXT', 'RDNOISE', 'PSFCOEFFS', 'PSFRANGE', 'IPIXFUNCTION', 'POBJSIZE', 'SMFACTOR']
    gkeys = []
    dindex = []
    iindex = 0
    for key in keylist:
        if (key.keyword in gkeywords):
            dindex.append(iindex)
            gkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
        iindex += 1
    dindex.sort()
    dindex.reverse()
    for index in dindex:
        del keylist[index]
    return gkeys
Finds and extracts the global keywords

The method finds the all predefined global keywords in
a keyword list. The list of global keywords is
returned. Their counterparts in the input keyword list
are deleted.

Parameters
----------
keylist: list
    list of keywords

Returns
-------
keys: list
    global keywords
def _find_gkeys(self, keylist):
    'Finds and extracts the global keywords\n\n        The method finds the all predefined global keywords in\n        a keyword list. The list of global keywords is\n        returned. Their counterparts in the input keyword list\n        are deleted.\n\n        Parameters\n        ----------\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keys: list\n            global keywords\n        '
    gkeywords = ['INSTRUMENT', 'CAMERA', 'TELAREA', 'SCIENCE_EXT', 'ERRORS_EXT', 'DQ_EXT', 'OPTKEY1', 'OPTVAL1', 'FFNAME', 'DQMASK', 'DRZRESOLA', 'DRZSCALE', 'DRZLAMB0', 'DRZXINI', 'DRZROOT', 'EXPTIME', 'WEIGHT_EXT', 'DRZPFRAC', 'DRZPSCALE', 'DRZKERNEL', 'MODEL_EXT', 'VARIANCE_EXT', 'RDNOISE', 'PSFCOEFFS', 'PSFRANGE', 'IPIXFUNCTION', 'POBJSIZE', 'SMFACTOR']
    gkeys = []
    dindex = []
    iindex = 0
    for key in keylist:
        if (key.keyword in gkeywords):
            dindex.append(iindex)
            gkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
        iindex += 1
    dindex.sort()
    dindex.reverse()
    for index in dindex:
        del keylist[index]
    return gkeys