parameters: (filePath)
docstring: Function to read the projection type from an ISIS label file
docstring_summary: Function to read the projection type from an ISIS label file
docstring_tokens: Function to read the projection type from an ISIS label file
function: def getProjectionFromIsisLabel(filePath):
      '''Function to read the projection type from an ISIS label file'''
  
      if not os.path.exists(filePath):
          raise Exception('Error, missing label file path!')
      
      f = open(filePath, 'r')
      for line in f:
          if ('MAP_PROJECTION_TYPE          =' in line) or ('ProjectionName     =' in line):
              line = line.replace('"','') # Strip quotes
              projType = asp_string_utils.getLineAfterText(line, '=').strip()
              f.close()
              return projType
      f.close()
      raise Exception('Unable to find projection type in file ' + filePath)
function_tokens: def getProjectionFromIsisLabel ( filePath ) : if not os . path . exists ( filePath ) : raise Exception ( 'Error, missing label file path!' ) f = open ( filePath , 'r' ) for line in f : if ( 'MAP_PROJECTION_TYPE          =' in line ) or ( 'ProjectionName     =' in line ) : line = line . replace ( '"' , '' ) # Strip quotes projType = asp_string_utils . getLineAfterText ( line , '=' ) . strip ( ) f . close ( ) return projType f . close ( ) raise Exception ( 'Unable to find projection type in file ' + filePath )