Skip to content

Instantly share code, notes, and snippets.

View peterm790's full-sized avatar

Peter Marsh peterm790

View GitHub Profile
@peterm790
peterm790 / Create_micromamba_eny.md
Last active July 13, 2025 10:44
Create mamba env. Ubuntu

Create geolocate_env with micromamba (Linux, no sudo)

1. Install MicroMamba (no sudo)

Download the latest Linux micromamba binary:

mkdir -p ~/micromamba/bin
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C ~/micromamba/bin --strip-components=1 bin/micromamba
@peterm790
peterm790 / geolocate_env.md
Created June 18, 2025 16:01
create geolocate_env

Create Geolocate env with micromamba

1. Install Homebrew (if not already installed)

Open Terminal and run:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@peterm790
peterm790 / geolocate_minimal_with_notes.ipynb
Created May 7, 2025 11:24
geolocate_minimal_with_notes.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / pull_and_interp_CMIP6.ipynb
Created March 27, 2025 13:29
pull_and_interp_CMIP6.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / Geolocate_SAWS_Synoptic_Chart.ipynb
Last active March 12, 2025 08:26
Geolocate_SAWS_Synoptic_Chart.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / transformer.ipynb
Created February 25, 2025 08:31
Transformer Model for Dimension Reduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / som.ipynb
Created February 24, 2025 06:15
Simple SOM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / wrf_to_viewer.ipynb
Created December 25, 2024 16:38
wrf_to_viewer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / generate_weather_map_input.py
Created October 7, 2024 16:52
Generate Weather Map Input
# This modal cronjob runs everyday at 930am to generate inputs for www.petesforecast.com . All time steps are run in parallel.
import fsspec
import s3fs
import xarray as xr
import rioxarray
import numpy as np
import io
@peterm790
peterm790 / CPT_synthetic_cohort.ipynb
Created August 6, 2024 14:28
CPT_synthetic_cohort
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.