Skip to content

Instantly share code, notes, and snippets.

View zxdawn's full-sized avatar
🛰️
Operational

Xin Zhang zxdawn

🛰️
Operational
View GitHub Profile
@j08lue
j08lue / rasterio-reproject-ukcp22-geoloc-array.ipynb
Last active April 24, 2025 20:25
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.
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active May 29, 2025 19:18
Simplest example for finding and loading Sentinel-2 data using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@schaumb
schaumb / st_route.py
Last active July 24, 2024 15:59
Streamlit - Support custom HTTP requests
import functools
import gc
import weakref
from typing import Optional, Callable, Union
from weakref import WeakSet
from streamlit import config
from streamlit.runtime import Runtime
from streamlit.runtime.scriptrunner import get_script_run_ctx, add_script_run_ctx
from streamlit.web.server.server_util import make_url_path_regex
@benlansdell
benlansdell / filepicker.py
Last active December 5, 2024 10:26
FilePicker for streamlit
"""FilePicker for streamlit.
Still doesn't seem to be a good solution for a way to select files to process from the server Streamlit is running on.
Here's a pretty functional solution.
Usage:
```
import streamlit as st
@rsignell-usgs
rsignell-usgs / odc-landsat.ipynb
Created February 17, 2022 20:34
odc-landsat.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarcSkovMadsen
MarcSkovMadsen / HvplotInteractive.ipynb
Created November 1, 2021 19:42
HvplotInteractive.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osy
osy / README.md
Last active April 23, 2025 07:26
UTM on Apple M1 Guides

Thanks to the work of @agraf, @KhaosT, @imbushuo, and others, we have Virtualization.framework working on M1 Macs. These [changes][1] have been merged with QEMU v5.2.0 RC3 (will rebase once the final release is out) and integrated with UTM, a brand new QEMU frontend designed in SwiftUI for iOS 14 and macOS 11.

Screenshot

Downloads

@cjtu
cjtu / environment.yml
Last active May 26, 2025 09:14
OLS regression tutorial with statsmodels in Python
channels:
- conda-forge
dependencies:
- statsmodels
- numpy
- matplotlib
@Vini2
Vini2 / DBSCAN blog.ipynb
Created March 25, 2020 12:15
DBSCAN eps detection - blog article
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
methods to download himawari data from
http://himawari.diasjp.net/expert/original/bin/original-main.cgi
"""
import datetime
import glob
import json
import logging
import os