Skip to content

Instantly share code, notes, and snippets.

View selipot's full-sized avatar
😄
trying

Shane Elipot selipot

😄
trying
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@selipot
selipot / test_wavelet_xarray.py
Created September 22, 2023 14:34
Using clouddrift.wavelet functions with xarray objects
# %%
import clouddrift
from clouddrift.wavelet import morse_wavelet, morse_wavelet_transform, wavelet_transform
import xarray as xr
import numpy as np
# %%
dat = xr.DataArray(data = np.random.random((1440,10,20))+1j*np.random.random((1440,10,20)),
coords={"time":np.arange(0,1440),
"x":np.arange(0,10),
@selipot
selipot / bsub_parcels_mpi_global.job
Created January 26, 2023 20:41
parcels code for mpi run
#!/bin/bash
#BSUB -J test
#BSUB -P msldrift
#BSUB -o %J.out
#BSUB -e %J.err
#BSUB -q normal
#BSUB -n 2
#BSUB -R 'span[hosts=1]'
#BSUB -W 180:00
#BSUB -q normal
name: congenial-environment
channels:
- conda-forge
dependencies:
- numpy
- matplotlib
- scipy
- pandas
- xarray
- xrft