Skip to content

Instantly share code, notes, and snippets.

View julia-neme's full-sized avatar
👽

Julia Neme julia-neme

👽
View GitHub Profile
@julia-neme
julia-neme / gist:40ab63b9be1996b259a89aed577c5695
Created August 31, 2020 00:01
Largest closed contour + mask of the interior
def get_largest_clcontour(cset):
"""
This function iterates over all contours in a plt.contour() instance to find the largest closed one. Found in:
https://stackoverflow.com/questions/38249949/finding-largest-closed-3d-contour-plot
Parameters:
-----------
cset: plt.contour() instance with the defined levels over which this function will iterate.
@julia-neme
julia-neme / mask_consistencies.ipynb
Created June 18, 2022 02:48
Checking mask, kmt and topog
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@julia-neme
julia-neme / Stress-decomposition.ipynb
Created August 4, 2022 08:14
Wind and sea ice stress curls
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cmocean
import cosima_cookbook.distributed as ccd
import dask.distributed as dsk
import glob
import matplotlib.gridspec as gs
import matplotlib.pyplot as plt
import numpy as np
import xarray as xr
import warnings # ignore these warnings
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.