Skip to content

Instantly share code, notes, and snippets.

View soxofaan's full-sized avatar

Stefaan Lippens soxofaan

View GitHub Profile
@soxofaan
soxofaan / migrate-udps.ipynb
Created May 4, 2026 17:07
How to copy UDPs from one openEO backend to another
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / merge-cubes-discontinuous-dates.ipynb
Created July 31, 2023 16:53
openEO `merge_cubes` with discontinuous date ranges
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / sdiff.py
Last active December 19, 2024 17:03
Python implementation of side-by-side diff
# Code licensed MIT 2023 Stefaan Lippens
import difflib
import itertools
from typing import List, Tuple, Iterator
class Sdiffer:
def __init__(self, max_width:int = 80):
# Two columns with a gutter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / forum452.ipynb
Created September 9, 2022 15:45
openEO forum 452 use case
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / example03.ipynb
Created September 1, 2022 10:14
openEO Platform forum 412 example 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / README.md
Last active June 2, 2022 12:03
Flask view decorator for injecting Cache-Control headers

POC decorator for flask fiew functions to inject Cache-Control headers in a response.

Instructions to run example

Set up env, for example:

python -m venv venv
. venv/bin/activate

pip install flask

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@soxofaan
soxofaan / sdiff.txt
Created February 3, 2022 15:30
EP-4150 default vs stitched
$ sdiff -t tile0000-remake.tiff.txt tile0000-remake-stitch.tiff.txt
Driver: GTiff/GeoTIFF Driver: GTiff/GeoTIFF
Files: tile0000-remake.tiff | Files: tile0000-remake-stitch.tiff
Size is 1827, 1024 | Size is 1827, 880
Coordinate System is: Coordinate System is:
PROJCRS["WGS 84 / UTM zone 31N", PROJCRS["WGS 84 / UTM zone 31N",
BASEGEOGCRS["WGS 84", BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984", DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563, ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]], LENGTHUNIT["metre",1]]],