def orb_rot_meta(name):
  """Parse metadata from orbital rotation variable name

  Args:
    name (str): optimizable variable name
  Return:
    dict: metadata
  Example:
    >>> name = "spo-up_orb_rot_0000_0002"
    >>> orb_rot_meta(name)
    >>> {'prefix': 'spo-up', 'i': 0, 'j': 2}
  """
  useful = name.replace('orb_rot_', '')
  tokens = useful.split('_')
  i = int(tokens[-2])
  j = int(tokens[-1])
  suffix = '_%04d_%04d' % (i, j)
  prefix = useful.replace(suffix, '')
  meta = {'prefix': prefix, 'i': i, 'j': j}
  return meta