This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configparser | |
from warnings import warn | |
from pathlib import Path | |
from collections import OrderedDict | |
from pprint import pprint | |
from datetime import timedelta | |
import subprocess | |
import git | |
from humanfriendly import format_timespan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import nbformat | |
from nbconvert.preprocessors import ExecutePreprocessor, CellExecutionError | |
def execute_notebook(input_notebook_file, output_notebook_file='output.ipynb', | |
run_path='./', timeout=600, kernel_name='', **kwargs): | |
""" | |
Executes a single jupyter notebook, and writes the results out into a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from netCDF4 import Dataset | |
import numpy as np | |
import scipy.interpolate | |
import scipy.io | |
import matplotlib.pyplot as plt | |
import math | |
def extract_region(var, regions, ir, yguards=True): | |
""" | |
Extract the data from an N-dimensional (with N=2 or N=4) variable corresponding to a given region |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer