code: def _shtools_status_message(status):
      '''
      Determine error message to print when a SHTOOLS Fortran 95 routine exits
      improperly.
      '''
      if (status == 1):
          errmsg = 'Improper dimensions of input array.'
      elif (status == 2):
          errmsg = 'Improper bounds for input variable.'
      elif (status == 3):
          errmsg = 'Error allocating memory.'
      elif (status == 4):
          errmsg = 'File IO error.'
      else:
          errmsg = 'Unhandled Fortran 95 error.'
      return errmsf _shtools_status_message(status):
      '''
      Determine error message to print when a SHTOOLS Fortran 95 routine exits
      improperly.
      '''
      if (status == 1):
          errmsg = 'Improper dimensions of input array.'
      elif (status == 2):
          errmsg = 'Improper bounds for input variable.'
      elif (status == 3):
          errmsg = 'Error allocating memory.'
      elif (status == 4):
          errmsg = 'File IO error.'
      else:
          errmsg = 'Unhandled Fortran 95 error.'
      return errmsg
docs: Determine error message to print when a SHTOOLS Fortran 95 routine exits
      improperly.