Homework #9
MHC 250/Seminar 4:
Shaping the Future of New York City
Spring 2017
Topics: Voronoi Diagrams; Commuting Costs
Deadline: Wednesday, 19 April 2017, Friday, 21 April 2017, 11:59pm
New York City Open Data
We will use data from
OpenData NYC.
Download the files in CSV format:
The Data2go project has collected an impressive array of data about New York City. We will use their data that has been aggregated by community districts.
- Data2go: At their website, click on the "Download" menu. Fill out the short form (for email, use one with a CUNY domain) and download all indicators from the first menu (the only option is .xslx file). After downloading, use your favorite spreadsheet program to export the CD sheet as a CSV file.
Assignment
- The city follows the urban design principles for planning the future of the city of New York (see presentation and bulleted principles on webpage). Choose a public space in your favorite neighborhood. Include an image of the space as it is now. Using the principles discussed above, illustrate how you would redesign the space to improve the livability and urban experience in that space. Justify your changes in terms of the principles above or the readings for this week.
- #1: Submit a .pdf file that includes the image of the space as it is now and a detailed description of your proposed changes.
- Make a Voronoi diagram of the NYC subway stations (see Homework 7 for data and Classwork 9) expected for April 2019 (i.e. no L train east of the East River).
- #2: Submit your program as a .py file.
- #3: Submit your map as either a zipped .html or as a screenshot (.png or .jpg) file.
- Make a Voronoi diagram of at least 500 trash cans in the city (see Homework 5 for data and Classwork 9). Note that the running time of the Voronoi algorithm will make it difficult to compute this on the data set of all the trash cans in the city, so, we are restricting to 500-- you may choose them however you wish.
- #4: Submit your program as a .py file.
- #5: Submit your map as either a zipped .html or as a screenshot (.png or .jpg) file.
- Make a choropleth map of New York City Community Districts, shaded by average life expendency.
- #6: Submit your program as a .py file.
- #7: Submit your map as either a zipped .html or as a screenshot (.png or .jpg) file.
Hint: You may want to modify the program cd.py which relies on the city's geoJSON map of community district boundaries and community district populations. As with the openNYC data, you will need to add extra rows for open space/parks since the geoJSON includes them, but almost all community district data files do not. The sample program includes some useful functions for aligning data from different sources.
The output of the sample program, cd.py, of population across community districts:
Submitting Homework
To submit your homework, log on to the Blackboard system, and go to "Homework". For each part of the homework, there is a separate input box. You may submit the homework as many times as you would like before the deadline.