Skip to content

Instantly share code, notes, and snippets.

@dylanlee
dylanlee / query-stac.py
Created May 5, 2025 13:34
Script demonstrating formatting Benchmark STAC queries in a consistent way across collections for use in the auto-eval pipeline
#!/usr/bin/env python3
import argparse
import json
import logging
import re
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timezone, timedelta
from pathlib import Path
from typing import Any, Callable, Dict, List, Pattern, Tuple
@dylanlee
dylanlee / roadsurface.py
Created September 18, 2023 17:13
Visualize Johson Highway surface
import laspy
from sklearn.cluster import OPTICS
import numpy as np
from scipy.spatial import KDTree
import pyvista as pv
import geopandas as gpd
import pandas as pd
from shapely.geometry import box
from shapely.geometry import Point
import matplotlib.pyplot as plt