Skip to content

Instantly share code, notes, and snippets.

View j08lue's full-sized avatar

Jonas j08lue

View GitHub Profile
@j08lue
j08lue / goes16-rioxarray-reprojection.ipynb
Created October 24, 2024 23:38
Reprojecting GOES16 data for conversion to COG with rioxarray
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / rasterio-reproject-ukcp22-geoloc-array.ipynb
Last active September 5, 2024 20:08
Reprojecting UKCP 2.2km dataset from rotated pole to regular lat/lon grid using Rasterio 1.4 with src_geoloc_array
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / rotated-pole-to-regular-lat-lon-xesmf-with-cleanup.ipynb
Created September 4, 2024 21:02
Reprojecting UKCP 2.2km dataset from rotated pole to regular lat/lon grid using Xarray and xESMF and produce a tidy target NetCDF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / rotated-pole-to-regular-lat-lon-xesmf.ipynb
Last active September 4, 2024 10:39
Reprojecting UKCP 2.2km dataset from rotated pole to regular lat/lon grid using Xarray and XESMF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / osc-hazard-output-explore-xarray-zarr.ipynb
Created August 27, 2024 12:38
Read and plot os-climate hazard model output with custom Zarr store and vanilla Xarray Zarr engine
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.
@j08lue
j08lue / fiona-transform-crs-issue.ipynb
Last active May 29, 2018 20:30
Fiona issue with transform_geom and rasterio CRS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / xr-decode-times-roundoff.ipynb
Created January 25, 2018 12:48
xarray 0.10.0 time decoding round-off error
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / llc-windows.ipynb
Created October 26, 2017 05:58
LLC fmin example fails on Windows
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@j08lue
j08lue / rasterio_reproject.py
Created October 5, 2017 12:21
rasterio reproject array to array and write to disk
dst_crs = ...
nbands, height, width = data.shape
dst_transform, width, height = rasterio.warp.calculate_default_transform(
src_crs=src_crs,
dst_crs=dst_crs,
width=width, height=height,
resolution=resolution,
**bounds)