#### Uniquely Pittsburgh

This project evolved from birds and the national aviary to things that make Pittsburgh, well, Pittsburgh. This city has a lot of unique features, the language, the sandwiches, the chairs that reserve parking spots, the bridges, the neighborhoods…the list goes on. However, only some of these features were captured in datasets. We focused on several for now, the bridges, the neighborhoods, the stairs, the steep hills, the fish frys, and the outlier…retaining walls.

Using this data in an abstract way we layered geometric cutouts of the neighborhoods in frost acrylic, showing which neighborhoods had the most of these unique features. Visitors to the airport are able to interact with the map and toggle each of the features on and off…giving them the opportunity to see what neighborhood has what.

##### Code:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
//PImage map; int maxFrameCount = 100; float t; int col; int alpha1 = 0; int alpha2 = 0; int alpha3 = 0; int alpha4 = 0; int alpha5 = 0; int xshift = 600; // change this number to shift all x, -1000 or 0 int yshift = 100; // change this number to shift all y, -400 or 0 int xzoom = 20; // change this number to zoom all x, 70 or 20 int yzoom = 20; // change this number to zoom all y, 70 or 20 Table stepstable; FloatList stepxlist; FloatList stepylist; FloatList steplenlist; float steplatitude; float steplongitude; float stepx; float stepy; float steplen; Table wallstable; FloatList wallxlist; FloatList wallylist; FloatList wallheilist; float walllatitude; float walllongitude; float wallx; float wally; float wallhei; Table bridgestable; FloatList bridgexlist; FloatList bridgeylist; FloatList bridgeyrlist; float bridgelatitude; float bridgelongitude; float bridgex; float bridgey; float bridgeyr; Table fishtable; FloatList fishxlist; FloatList fishylist; float fishlatitude; float fishlongitude; float fishx; float fishy; Table hillstable; FloatList hillxlist; FloatList hillylist; FloatList hillgradelist; float hilllatitude; float hilllongitude; float hillx; float hilly; float hillgrade; //------COUNTING KEY PRESSED------ int countSteps = 0; int countWalls = 0; int countBridges = 0; int countFish = 0; int countHills = 0; // ------------------------------- void setup() { //map = loadImage("map.jpg"); size(1920, 1040); frameRate(30); colorMode(RGB); ellipseMode(CENTER); rectMode(CENTER); stepstable = loadTable("Steps.csv", "header"); stepxlist = new FloatList(); stepylist = new FloatList(); for (TableRow row: stepstable.rows()) { steplongitude = Float.parseFloat(row.getString("longitude")); stepx = (steplongitude - (-80.082019))/(2.0*PI); while (stepx < 0) {stepx++;} while (stepx > 1) {stepx--;} stepx = (stepx*1000)*xzoom + xshift; stepxlist.append(stepx); steplatitude = Float.parseFloat(row.getString("latitude")); stepy = ((float)((5.0/4.0) * Math.log(Math.tan((QUARTER_PI + (2.0/5.0) * (double)steplatitude)))))/TWO_PI; stepy = ((1 - (stepy+0.5))*1000-263)*yzoom + yshift; stepylist.append(stepy); } steplenlist = new FloatList(); for (TableRow row: stepstable.rows()) { steplen = (float)row.getInt("length"); steplen = steplen * 0.1; steplenlist.append(steplen); } wallstable = loadTable("Walls.csv", "header"); wallxlist = new FloatList(); wallylist = new FloatList(); for (TableRow row: wallstable.rows()) { walllongitude = Float.parseFloat(row.getString("longitude")); wallx = (walllongitude - (-80.082019))/(2.0*PI); while (wallx < 0) {wallx++;} while (wallx > 1) {wallx--;} wallx = (wallx*1000)*xzoom + xshift; wallxlist.append(wallx); walllatitude = Float.parseFloat(row.getString("latitude")); wally = ((float)((5.0/4.0) * Math.log(Math.tan((QUARTER_PI + (2.0/5.0) * (double)walllatitude)))))/TWO_PI; wally = ((1 - (wally+0.5))*1000-263)*yzoom + yshift; wallylist.append(wally); } wallheilist = new FloatList(); for (TableRow row: wallstable.rows()) { wallhei = (float)row.getInt("height"); wallheilist.append(wallhei); } bridgestable = loadTable("Bridges.csv", "header"); bridgexlist = new FloatList(); bridgeylist = new FloatList(); for (TableRow row: bridgestable.rows()) { bridgelongitude = Float.parseFloat(row.getString("longitude")); bridgex = (bridgelongitude - (-80.082019))/(2.0*PI); while (bridgex < 0) {bridgex++;} while (bridgex > 1) {bridgex--;} bridgex = (bridgex*1000)*xzoom + xshift; bridgexlist.append(bridgex); bridgelatitude = Float.parseFloat(row.getString("latitude")); bridgey = ((float)((5.0/4.0) * Math.log(Math.tan((QUARTER_PI + (2.0/5.0) * (double)bridgelatitude)))))/TWO_PI; bridgey = ((1 - (bridgey+0.5))*1000-263)*yzoom + yshift; bridgeylist.append(bridgey); } bridgeyrlist = new FloatList(); for (TableRow row: bridgestable.rows()) { bridgeyr = (float)row.getInt("built"); bridgeyrlist.append(bridgeyr); } fishtable = loadTable("Fishfry.csv", "header"); fishxlist = new FloatList(); fishylist = new FloatList(); for (TableRow row: fishtable.rows()) { fishlongitude = Float.parseFloat(row.getString("longitude")); fishx = (fishlongitude - (-80.082019))/(2.0*PI); while (fishx < 0) {fishx++;} while (fishx > 1) {fishx--;} fishx = (fishx*1000)*xzoom + xshift; fishxlist.append(fishx); fishlatitude = Float.parseFloat(row.getString("latitude")); fishy = ((float)((5.0/4.0) * Math.log(Math.tan((QUARTER_PI + (2.0/5.0) * (double)fishlatitude)))))/TWO_PI; fishy = ((1 - (fishy+0.5))*1000-263)*yzoom + yshift; fishylist.append(fishy); } hillstable = loadTable("Hills.csv", "header"); hillxlist = new FloatList(); hillylist = new FloatList(); for (TableRow row: hillstable.rows()) { hilllongitude = Float.parseFloat(row.getString("longitude")); hillx = (hilllongitude - (-80.082019))/(2.0*PI); while (hillx < 0) {hillx++;} while (hillx > 1) {hillx--;} hillx = (hillx*1000)*xzoom + xshift; hillxlist.append(hillx); hilllatitude = Float.parseFloat(row.getString("latitude")); hilly = ((float)((5.0/4.0) * Math.log(Math.tan((QUARTER_PI + (2.0/5.0) * (double)hilllatitude)))))/TWO_PI; hilly = ((1 - (hilly+0.5))*1000-263)*yzoom + yshift; hillylist.append(hilly); } hillgradelist = new FloatList(); for (TableRow row: hillstable.rows()) { hillgrade = row.getFloat("grade"); hillgradelist.append(hillgrade); } } void draw() { background(0); t = (float)frameCount/maxFrameCount * TWO_PI; Step steps = new Step(); steps.draw(); Wall walls = new Wall(); walls.draw(); Bridge bridges = new Bridge(); bridges.draw(); Fishfry fishfry = new Fishfry(); fishfry.draw(); Hill hills = new Hill(); hills.draw(); //image(map, 0, -40, width/1.15, height/1.15); //filter(BLUR,2); } void keyPressed() { if (key == CODED) { if (keyCode == RIGHT) { // STEPS countSteps++; if (countSteps%2==0) { // EVEN ----- TURNS OFF alpha1 = 0; } else if (countSteps%2 != 0) { // ODD ----- TURNS ON alpha1 = 50; } } if (keyCode == UP) { // WALLS countWalls++; if (countWalls%2==0) { // EVEN ----- TURNS OFF alpha2 = 0; } else if (countWalls%2 != 0) { // ODD ----- TURNS ON alpha2 = 100; } } if (keyCode == LEFT) { // BRIDGES countBridges++; if (countBridges%2==0) { // EVEN ----- TURNS OFF alpha3 = 0; } else if (countBridges%2 != 0) { // ODD ----- TURNS ON alpha3 = 200; } } if (keyCode == DOWN) { // FISH FRY countFish++; if (countFish%2==0) { // EVEN ----- TURNS OFF alpha4 = 0; } else if (countFish%2 != 0) { // ODD ----- TURNS ON alpha4 = 200; } } } if (key == ' ') { // HILLS countHills++; if (countHills%2==0) { // EVEN ----- TURNS OFF alpha5 = 0; } else if (countHills%2 != 0) { // ODD ----- TURNS ON alpha5 = 100; } } } class Step{ void draw(){ for (int i = 0; i < stepxlist.size(); i=i+1){ noStroke(); fill(50,10,150,alpha1); float size = map(sin(t),-1,1,steplenlist.get(i),steplenlist.get(i)+20); ellipse(stepxlist.get(i),stepylist.get(i), size,size); } } } class Wall{ void draw(){ for (int i = 0; i < wallxlist.size(); i=i+1){ col = (int)(map(sin(t),-1,1,wallheilist.get(i),pow((wallheilist.get(i)),2.5))); noStroke(); fill(25,col+50,150,alpha2); ellipse(wallxlist.get(i),wallylist.get(i), 15,15); } } } class Bridge{ void draw(){ for (int i = 0; i < bridgexlist.size(); i=i+1){ float x1 = bridgexlist.get(i); float y1 = bridgeylist.get(i); float offset = map(bridgeyrlist.get(i),1886, 2017, 0,2*PI); float w1 = map(cos(-t+offset),-1,1,1,30); float h1 = 5; fill(255,255,0,alpha3); rect(x1,y1,w1,h1); } } } class Fishfry{ void draw(){ for (int i = 0; i < fishxlist.size(); i=i+1){ fill(148,0,211, alpha4); rect(fishxlist.get(i),fishylist.get(i),10,10); } } } class Hill{ void draw(){ for (int i = 0; i < hillxlist.size(); i=i+1){ fill(214,160,234, alpha5); float factor = map(hillgradelist.get(i), 9.52, 37.0, 0, 1); float stop = map(sin(t),-1,1,0,factor*HALF_PI); arc(hillxlist.get(i),hillylist.get(i),50,50,(-stop),0); } } } |

##### Moving forward:

We would love to gather more data and begin to plot those as well as explore a more literal representation of the neighborhoods. Since we abstracted the data quite a bit, this might map in a more interesting way.