def find_all_wcs(header, relax=True, keysel=None, fix=True, translate_units=u'', _do_set=True):
 if isinstance(header, (six.text_type, six.binary_type)):
  header_string = header
 elif isinstance(header, fits.Header):
  header_string = header.tostring()
 else:
  raise TypeError(u'header must be a string or astropy.io.fits.Header object')
 keysel_flags = _parse_keysel(keysel)
 if isinstance(header_string, six.text_type):
  header_bytes = header_string.encode(u'ascii')
 else:
  header_bytes = header_string
 wcsprms = _wcs.find_all_wcs(header_bytes, relax, keysel_flags)
 result = []
 for wcsprm in wcsprms:
  subresult = WCS(fix=False, _do_set=False)
  subresult.wcs = wcsprm
  result.append(subresult)
  if fix:
   subresult.fix(translate_units)
  if _do_set:
   subresult.wcs.set()
 return result

def find_all_wcs ( header , relax = True , keysel = None , fix = True , translate_units = u'' , _do_set = True ) : if isinstance ( header , ( six . text_type , six . binary_type ) ) : header_string = header elif isinstance ( header , fits . Header ) : header_string = header . tostring ( ) else : raise TypeError ( u'header must be a string or astropy.io.fits.Header object' ) keysel_flags = _parse_keysel ( keysel ) if isinstance ( header_string , six . text_type ) : header_bytes = header_string . encode ( u'ascii' ) else : header_bytes = header_string wcsprms = _wcs . find_all_wcs ( header_bytes , relax , keysel_flags ) result = [ ] for wcsprm in wcsprms : subresult = WCS ( fix = False , _do_set = False ) subresult . wcs = wcsprm result . append ( subresult ) if fix : subresult . fix ( translate_units ) if _do_set : subresult . wcs . set ( ) return result
find all the wcs transformations in the given header .