Skip to content

Instantly share code, notes, and snippets.

View alexgleith's full-sized avatar

Alex Leith alexgleith

View GitHub Profile
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active April 10, 2024 18:38
Simplest example for finding and loading Sentinel-2 data using Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / esri_mess.ipynb
Created June 26, 2021 04:40
Find all the possible ESRI Land Cover scene and put them in a big list.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / africa_geobox_20.ipynb
Created September 29, 2020 05:58
Africa geobox
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / s2.stac.odc.json
Last active May 12, 2020 04:58
A simple Sentinel-2 stac yaml json thing
{
"$schema": "https://schemas.opendatacube.org/dataset",
"id": "5490a901-6fbe-576d-b4b6-00f14c3788a3",
"crs": "epsg:32630",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
1190221.0,
@alexgleith
alexgleith / alex_oak.json
Last active March 5, 2020 06:08
The location of my tree. CC BY 4.0.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / wms_cfg.py
Created August 6, 2019 23:44
WMS config for the Open Data Cube OWS app
import re
# Static config for the wms metadata.
# pylint: skip-file
response_cfg = {
"Access-Control-Allow-Origin": "*", # CORS header
}