This file contains 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 unittest | |
from eesetup import utils | |
class Test(unittest.TestCase): | |
def setUp(self): | |
pass | |
def test_geeAuth(self): | |
result = utils.geeAuth() |
This file contains 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 mapbox import Uploader | |
u = Uploader() # handles authentication | |
tileset = 'username.tileset_name' # name your tileset | |
url = u.stage(open('mosaic_final.tif')) # upload happens here | |
u.create(url, tileset, name=fname) # starts the tiling job |
This file contains 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
<iframe src="https://api.mapbox.com/styles/v1/robinkraft/cj8nn4lvp7yoq2ro1klhjltw8.html?title=true&access_token=pk.eyJ1Ijoicm9iaW5rcmFmdCIsImEiOiJQLUp2RU9NIn0.B20c6fiHx0NCgfSOE3HYbw#13.15/38.4816/-122.7019" width="640" height="480”> |
This file contains 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 os | |
import random | |
import glob | |
import shutil | |
def get_dc_paths(path): | |
"""Given a path filled with dog & cat files, make separate lists of both.""" | |
cats = [] | |
dogs = [] |
This file contains 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 os | |
import argparse | |
from bs4 import BeautifulSoup | |
import rasterio | |
SUFFIX = '_BGRN_Analytic' | |
BASEPATH = '/Users/robinkraft/gitlab/change/hackathon/robin/data/' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 os | |
from glob import glob | |
import shutil | |
import pandas as pd | |
def choose_subjects(df, count): | |
# group the frame by the subject in the image | |
subjects = df.groupby('subject') |
This file contains 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
/** this cartoCSS has been processed in order to be compatible with the new cartodb 2.0 */ | |
#gfw2_layerstyles_v4{ | |
polygon-fill:#FF6600; | |
polygon-opacity: 0.7; | |
line-width: 0.2; | |
line-opacity:0.6; | |
line-color: #ccc; | |
[zoom>3]{ | |
line-width: 0.3; |
This file contains 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
<html> | |
<head> | |
<title>D3 Axis Example</title> | |
<script src="http://d3js.org/d3.v3.js"></script> | |
</head> | |
<body> | |
<script> | |
var width = 700, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.