Skip to content

Instantly share code, notes, and snippets.

View darkblue-b's full-sized avatar
👁️
.

Brian M Hamlin darkblue-b

👁️
.
View GitHub Profile

Reformatted Content:

GDAL (Geospatial Data Abstraction Library) AI Tool Policy vs. TorchGeo Projected Stance

The GDAL AI Tool Policy serves as a template and philosophical anchor for Adam Stewart's proposed policy in #torchgeo. This comparative analysis highlights areas where adaptation is necessary due to differences in project scale, community size, and technical domain.

Core Philosophical Alignment: Maintenance as the Scarce Resource

@darkblue-b
darkblue-b / py
Created April 20, 2026 16:48
caleb06
#!/usr/bin/env python3
"""Compute mean and stdev of Alpha Earth Foundation embeddings per census block.
Required input data
-------------------
1. Census block shapefiles:
- Go to https://www.census.gov/cgi-bin/geo/shapefiles/index.php
- Select year "2025" (or desired year) and layer type "Blocks (2020)"
- Choose a state (e.g. "Washington") and download the ZIP
- Unzip to get tl_2025_53_tabblock20.shp (and companion files)
Yes, absolutely! This could be rewritten in Rust, and it would likely offer significant performance benefits for this kind of heavy geospatial computation. Here's how the key components would translate:
Core Structure
```rust
use geo::{Geometry, Point, Polygon, LineString};
use geo_types::Coord;
use rayon::prelude::*; // For parallel processing
use std::collections::HashMap;
use std::sync::{Arc, Mutex};

Notes on

EARTH EMBEDDINGS AS PRODUCTS: TAXONOMY, ECOSYSTEM, AND STANDARDIZED ACCESS

Heng Fang† ∗  Adam J Stewart‡ ∗  Isaac Corley§ *  Xiao Xiang Zhu *  Hossein Azizpour†
† KTH Royal Institute of Technology, Stockholm, Sweden
‡ Chair of Data Science in Earth Observation, Technical University of Munich, Munich, Germany
§ Wherobots, San Antonio, USA

arXiv:2601.13134v1 19 Jan 2026 LINK

@darkblue-b
darkblue-b / pystac_landsat.ipynb
Created August 19, 2020 04:46
tryout Notebook for STAC-1.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<script type="text/vnd.graphviz" id="graphviz">
digraph G {
"browser" ->
"http_request" ->
"server" ->
"routes" ->
"controller" ->
"model" -> "controller"
"controller" -> "response"
#!/bin/sh
CITY="HOLLYWOOD_CA"
#34.10256/-118.36805
## W,S,E,N ?
## (south,west,north,east) from the Overpass wiki page
## BONN_DE
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darkblue-b
darkblue-b / draw_example0.ipynb
Last active August 29, 2015 14:20
networkx_draw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darkblue-b
darkblue-b / f0.adoc
Last active August 29, 2015 14:19
asciidoc test0

Search and Matching / Gene Sequences

Notes on implementation language environments, execution performance and machine considerations; based on the software technical supplement to "Uncovering disease-disease relationships through the incomplete interactome" Science Magazine Feb 2015

19Apr15 dbb v0.2

Observations

  • supplied python code ran quickly on all compute environments (~2 seconds)

  • non-trivial transform of a python networkx interactome requires 9GB of physical RAM