Skip to content

Instantly share code, notes, and snippets.

View ljstrnadiii's full-sized avatar

Leonard ljstrnadiii

  • Pachama, Inc.
  • Boulder, CO
View GitHub Profile
@ljstrnadiii
ljstrnadiii / reproject_resample.py
Last active November 2, 2024 06:08
Resample/Reproject Cogs w/ Dask + Rioxarray
import logging
import subprocess as sp
import tempfile
import threading
import geopandas as gpd
import numpy as np
import rioxarray
import xarray as xr
from rasterio.enums import Resampling
import xarray as xr
import rasterio
from rasterio.features import geometry_mask
def order_bounds(
minx: float,
miny: float,
maxx: float,
maxy: float,
class MySort {
public static <E extends Comparable<E>> void quickSort(MyNode<E> list) {
MyNode<E> last = list;
while (last.next !=null && list !=null) {
//System.out.println("yes");
last = last.next;
}
System.out.println(list);
sort(list, last);
}