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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>COPC 3DEP Example</title> | |
<meta | |
name="viewport" | |
content="initial-scale=1,maximum-scale=1,user-scalable=no" | |
/> | |
<link |
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 fontforge | |
import json | |
from shapely.geometry import MultiPolygon, shape | |
from shapely.affinity import translate | |
font_file = "path/to/font.sfd" # path to sfd font file, created in FontForge GUI | |
geo_file = "path/to/features.geojson" # path to geographic features file | |
font = fontforge.open(font_file) |
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 bpy | |
import morecantile | |
import os | |
import requests | |
url = "https://elevation-tiles-prod.s3.amazonaws.com/v2/geotiff" | |
def get_tile(x, y, z): | |
src_path = f"{url}/{z}/{x}/{y}.tif" | |
dst_path = f'/tmp/{z}_{x}_{y}.tif' |
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 bpy | |
import json | |
from shapely.geometry import shape | |
with open("/path/to/sorted_countries.geojson", "r") as f: | |
fc = json.load(f) | |
buffer = 0.1 | |
cur_zero = 0 | |
total_frames = 1400 |
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 bpy | |
import datetime | |
import json | |
import numpy as np | |
import requests | |
import rasterio | |
from PIL import Image | |
from pyproj import CRS, Transformer | |
url = "https://earth-search.aws.element84.com/v0/search" |
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 bpy | |
import math | |
import pandas as pd | |
df = pd.read_csv( | |
bpy.path.abspath("//HadCRUT.4.6.0.0.monthly_ns_avg.txt"), | |
delim_whitespace=True, | |
header=None | |
) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>glTF Playground</title> | |
<meta | |
name="viewport" | |
content="initial-scale=1,maximum-scale=1,user-scalable=no" | |
/> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v2.3.0/mapbox-gl.js"></script> |