Skip to content

Instantly share code, notes, and snippets.

View Kirill888's full-sized avatar

Kirill Kouzoubov Kirill888

  • Canberra Australia
View GitHub Profile
@Kirill888
Kirill888 / 0_odc-stac-intro_Jan-2022.md
Last active January 21, 2022 05:19
odc-stac pangeo presentation Jan 2022

jupyter: jupytext: formats: ipynb,md text_representation: extension: .md format_name: markdown format_version: '1.3' jupytext_version: 1.13.5 kernelspec:

@Kirill888
Kirill888 / stac-geopandas-show.ipynb
Created November 16, 2021 01:35
STAC + GeoPandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kirill888
Kirill888 / af-grid.geojson
Created March 15, 2021 02:59
Africa Grid, EPSG:6933, 96km Squares
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kirill888
Kirill888 / au-grid.geojson
Created March 15, 2021 02:29
AU Grid, EPSG:3577, 96km Squares
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.
@Kirill888
Kirill888 / trigger-read-error-rio.ipynb
Created November 12, 2019 02:13
supporting code for bug report to mapbox/rasterio
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.
with rasterio.Env(GDAL_DISABLE_READDIR_ON_OPEN=True,
CPL_VSIL_CURL_ALLOWED_EXTENSIONS='tif',
VSI_CACHE=True,
region_name='us-west-2'):
with rasterio.open('s3://bucket/file.tif', 'r') as f:
im = f.read()
with rasterio.open('s3://bucket/file.tif', 'r') as f:
im = f.read()
-------------------------------------------------------------
Tile: 8_7#1
- blocks : 512x512@uint16
- nthreads: 1
-------------------------------------------------------------
3841b1595346c5529181962af8077098..4a0422bb
Files read : 1,278
Total data bytes : 493,405,576
(excluding headers)