View Cargo.lock
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 file is automatically @generated by Cargo. | |
# It is not intended for manual editing. | |
version = 3 | |
[[package]] | |
name = "adler" | |
version = "1.0.2" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" |
View index.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="icon" type="image/x-icon" href="./favicon.png"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="default"> | |
<meta name="theme-color" content="#0072b5"> | |
<meta name="name" content="Pyscript/Panel DeckGL Demo"> |
View convert.py
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 geopandas as gpd | |
import pandas as pd | |
import pygeos | |
import pyogrio | |
# https://ookla-open-data.s3.us-west-2.amazonaws.com/parquet/performance/type=mobile/year=2019/quarter=1/2019-01-01_performance_mobile_tiles.parquet | |
df = pd.read_parquet("2019-01-01_performance_mobile_tiles.parquet") | |
centroids = pygeos.centroid(pygeos.from_wkt(df["tile"])) |
View parquet_metadata_exploration.py
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 json | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
import pandas as pd | |
import numpy as np | |
def main(): | |
# Create random point data within bbox | |
size = 1_000_000 |
View osm-liberty.json
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
{ | |
"version": 8, | |
"name": "OSM Liberty", | |
"metadata": { | |
"maputnik:license": "https://github.com/nst-guide/osm-liberty-topo/blob/gh-pages/LICENSE.md", | |
"maputnik:renderer": "mbgljs" | |
}, | |
"sources": { | |
"openmaptiles": { | |
"type": "vector", |
View pydantic.py
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 typing import Generic, TypeVar | |
import numpy as np | |
from pydantic.fields import ModelField | |
JSON_ENCODERS = { | |
np.ndarray: lambda arr: arr.tolist() | |
} | |
DType = TypeVar('DType') |
View orucase.py
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 requests | |
import re | |
# Airport ninja | |
# product_id = '163194625' | |
# n_pages = 63 | |
# B2 | |
product_id = '3776320176181' | |
n_pages = 17 |
View demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sentinel-2-l2a-mosaic-120-2019-12-7-01K.json
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
{ | |
"type": "Feature", | |
"stac_version": "1.0.0-beta.2", | |
"id": "sentinel-2-l2a-mosaic-120-2019-12-7-01K", | |
"properties": { | |
"start_datetime": "2019-12-07T00:00:00", | |
"end_datetime": "2019-12-17T00:00:00", | |
"platform": "sentinel-2", | |
"gsd": 120, | |
"datetime": null |
View pyproject.toml
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
[tool.poetry] | |
name = "tmp" | |
version = "0.1.0" | |
description = "" | |
authors = ["Kyle Barron"] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
pyarrow = "^2.0.0" |
NewerOlder