Skip to content

Instantly share code, notes, and snippets.

View scottyhq's full-sized avatar

Scott Henderson scottyhq

View GitHub Profile
@scottyhq
scottyhq / pixel-function-test.ipynb
Created August 20, 2019 21:20
test merging overlapping images with gdal python pixel function
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / merge-conflict-rebase.md
Created August 10, 2020 18:25
GitHub PR Merge Conflict Resolution with Rebase

How to rebase a pull request to fix merge conflicts

It's quite common to open up a pull request on GitHub and be confronted with the message This branch has conflicts that must be resolved. This situation arises when you create a feature branch on an older commit from the master branch. Maybe you forgot to run git pull master before git checkout -b geocoding_vignette or maybe a collaborator changed some of the same files on GitHub while you've been working on new things. There are many ways to fix this. One is using the Web Editor build into GitHub and fixing conflicts by hand. This works great if there are not too many conflicts.

Another technique is to rebase your pull request onto the master branch (Move your additional commits on top of the most recent master commit). This is conceptually clean, but sometimes confusing in practice to do cleanly. This example walks through the process where you want to do a rebase, and resolve conflicts by overwriting whatever is on the master branch with change

@scottyhq
scottyhq / 8615.ipynb
Created January 19, 2024 04:12
xarray mosaic discussion
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / 500mSWE.ipynb
Created November 28, 2023 17:31
xarray tidy 500m SWE datacube
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / s3fs-zarr-issue.ipynb
Created November 6, 2023 22:48
to_zarr troubleshooting from xarray
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / HLS-NDVI.ipynb
Created February 16, 2023 21:05
harmonized landsat sentinel1 ndvi
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / topsApp-rendered.ipynb
Created August 16, 2023 19:19
rendered topsApp notebook
Sorry, this is too big to display.
@scottyhq
scottyhq / kerchunk-ATL06.ipynb
Created July 28, 2023 00:43
icesat2 atl06 kerchunk
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / sliderule-3dcrs-miniexample.ipynb
Created August 10, 2023 22:01
icesat2 hackweek 2023 geopandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scottyhq
scottyhq / geopandas-3Dtransforms.ipynb
Created June 29, 2023 23:57
pyproj and geopandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.