This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from influxdb import InfluxDBClient | |
| class InfluxCred(): | |
| def __init__(self, host, port, username, password, deployment, database): | |
| if not host: | |
| print("Get Influx creds from Jamie or Guilherme. Exiting!!") | |
| sys.exit() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Cities to use: https://saxon.harris.uchicago.edu/~jsaxon/parks.pdf | |
| url="https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_36_place_500k.zip" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| N = 12 | |
| ["#{0:02X}{1:02X}{2:02X}".format(*[int(v*255) for v in plt.get_cmap("viridis")(n/(N-1))][:3]) for n in range(N)] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from shapely.geometry import Point | |
| def fix_ak_hi(X): | |
| ak_mask = X.centroid.apply(lambda x: x.coords[0][1] > 1e6) | |
| X.loc[ak_mask, X.geometry.name] = X.loc[ak_mask].geometry\ | |
| .rotate(0.63, (-3000000, 2500000), use_radians = True)\ | |
| .scale(0.38, 0.38, 0.38, (0, 0, 0))\ | |
| .translate(-1.5e5, -3.15e6) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.