def execute(self, parameters, messages):
        """The source code of the tool."""        
        #We need to account for lat, lon dimensions being described differently
        #Workaround: Didn't want to have to open up file more than once, however, having dificulties with global variables
        #Getting the netCDF DataSource Path from the netCDF raster layer
        netCDFSource = NetCDFFile.getNetCDFPathfromLayer(parameters[0].value)
        
        #Making sure that the datasource is a netCDF file.
        if NetCDFFile.isNetCDF(netCDFSource):
            netCDFFile = NetCDFFile(netCDFSource)
            
            #Get Input Parameters
            variableName = parameters[1].value
            rowDim = parameters[2].value   
            inpnt = parameters[3].value
            
            #Output Parameters
            outTableView = parameters[4].value; 
            
            #Create Table from selected point
            netCDFFile.makeNetCDFTable(inpnt,variableName,rowDim,outTableView);
        
            tableViewSource = str(outTableView);
        
            #------Create Graph from Table---------------------------------------------#

            #Graph Template is located within the Layers Directory
            graph_grf = os.path.join(os.path.dirname(__file__),
                            '..', 'Layer', 'NetCDFPlot.grf') 
        
            outGraph = parameters[5].value;
            
            latValue = netCDFFile.getLatValue()
            lonValue = netCDFFile.getLonValue()
            
        
            title = "NetCDF Graph: " + variableName + "/" + rowDim + " at (" + str(latValue)[:7] + "," + str(lonValue)[:7] + ")"

            arcpy.MakeGraph_management(graph_grf, "SERIES=area:vertical DATA=" + tableViewSource + \
                                   " X=" + rowDim + " Y=" + variableName + " SORT=DESC;" + \
                                   "GRAPH=general TITLE=" + title + ";LEGEND=general;" + \
                                   "AXIS=left TITLE=" + variableName + ";" + \
                                   "AXIS=right;AXIS=bottom TITLE=" + rowDim + ";AXIS=top", outGraph)
        
            arcpy.AddMessage("Process Completed")