Skip to content

Instantly share code, notes, and snippets.

View peterm790's full-sized avatar

Peter Marsh peterm790

View GitHub Profile
import xarray as xr
import intake
import numpy as np
from pathlib import Path
import dask
import pandas as pd
import sys
import fsspec
def shuffle_completely(ds, b, resample_dim="z"):
@peterm790
peterm790 / working_with_percentile_data.ipynb
Last active May 4, 2023 09:18
working_with_percentile_data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / csag_dask_batch.ipynb
Last active April 25, 2023 09:19
csag_dask_batch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / percentiles.ipynb
Created April 24, 2023 08:56
percentiles.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / MODIS.ipynb
Created April 17, 2023 12:42
MODIS Harmonised CSAG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / meteosat.ipynb
Created April 17, 2023 12:37
meteosat harmonised CSAG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / dekad.ipynb
Created April 14, 2023 09:52
dekad.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / open_MODIS_L2_rioxarray_nomod.ipynb
Created March 9, 2023 12:30
open_MODIS_L2_rioxarray_no_modification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / open_MODIS_L2_rioxarray.ipynb
Created March 9, 2023 12:28
open_MODIS_L2_rioxarray.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterm790
peterm790 / download_script_MYD11_L2.sh
Created February 21, 2023 16:22
download_script_MYD11_L2.sh
#!/bin/bash
GREP_OPTIONS=''
cookiejar=$(mktemp cookies.XXXXXXXXXX)
netrc=$(mktemp netrc.XXXXXXXXXX)
chmod 0600 "$cookiejar" "$netrc"
function finish {
rm -rf "$cookiejar" "$netrc"
}