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
import numpy as np | |
opn = { | |
"+": np.add, | |
"-": np.subtract, | |
"*": np.multiply, | |
"/": np.divide, | |
"^": np.power, | |
"==": np.equal, | |
"!=": np.not_equal, |
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 dash | |
import dash_leaflet as dl | |
from dash import Dash, html, Output, Input | |
import dash_bootstrap_components as dbc | |
from dash.exceptions import PreventUpdate | |
purple_dot = {"iconUrl": 'https://storage.googleapis.com/terrakio_webapps/purple_dot.png', "iconSize": [40, 40]} | |
red_triangle = {"iconUrl": 'https://storage.googleapis.com/terrakio_webapps/red_triangle.png', "iconSize": [40, 40]} | |
hires_url = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}" |
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
[ | |
{ | |
"species" : "cat", | |
"foods": ["tuna", "mice"] | |
}, | |
{ | |
"species" : "dog", | |
"foods": ["bones", "carrots"] | |
}, | |
{ |
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
from collections import OrderedDict | |
# >>> import cache_dict | |
# >>> c = cache_dict.CacheDict(cache_len=2) | |
# >>> c[1] = 1 | |
# >>> c[2] = 2 | |
# >>> c[3] = 3 | |
# >>> c | |
# CacheDict([(2, 2), (3, 3)]) | |
# >>> c[2] |
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
import rasterio as rio | |
from rasterio import features | |
from affine import Affine | |
import pandas as pd | |
import numpy as np | |
import geopandas as gpd | |
import numexpr as ne | |
# Input Albers tile | |
x = 20.0 |
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.