Changes

Jump to navigation Jump to search
[[File:houstonk.png]] [[File:houstonp.png]]
== Step By Step Use==
1. The input filepath should be a tab delimited text file with "vc_circles.py" contains the entries as follows: yearmain script, "master_circles", startup locations <br>which takes in the followingThe location information should be formatted as such: [(lat1 a. "textfile",lon1)which is the filepath of the text data to read in. It must have fields "lattitude',(lat2"longitude",lon2)"city","datefirstinv" b."n", which is the number of points to include in each circle c."iterations", the number of iterations to try and find a local optimum.Large numbers will slow the run time. d.)] "basefn", the base file path of where to store the circles and points for each city,year pair <br>The file is located an example:"EC:\McNair\Softwareusers\\Name\CodeBase\New Implement of Enclosing Circle (Constrained K Means, Smallest Circle)Documents"<br> 1. Open up the function will add on the city,year to this base file "googleplotter.py" name and save it to this file directory <br> 2e. where it says with open("C:\....outputfn") replace , the filepath in full file path of where to output the parentheses with your filepath enclosed in quotes. 3. Replace the city name in area of the "circles" function with the appropriate for a given city name,year <br> 42. Press ctrl+s to save To plot the file 5. open up circles,points for a given year onto google maps, use the command line 6. type: python function "googleplotter.py" 7a. your resulting text file and html google plots will be outputted to: E:\McNair\Software\CodeBase\New Implement of Enclosing Circle (Constrained K Means, Smallest Circle)This function takes in the filename used in 1d
== Benefits ==
146

edits

Navigation menu