Skip to content

Instantly share code, notes, and snippets.

View AndrewILWilliams's full-sized avatar

Andrew Williams AndrewILWilliams

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.
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.
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
# 22/04/2019: Script to plot animation of
# balls falling and bouncing under gravity (in 1-D, for now)
# Set up the plotting area
fig, ax = plt.subplots()
ax.set(xlim=(0, 10), ylim=(0, 10))
"""
=================================================================
March 2020 --- Andrew Williams
=================================================================
Dictionaries to aid the loading in of variables for
ICON-LAM simulations.
Contains conversions from standard name-->long name
and long name --> standard name.
import climt
import sympl
from datetime import timedelta
import os
os.system("rm 2_yr_spinup_eqpolediff_T42_37vlvl_3damped.nc")
### -----------------------
# 10th Dec 2019
# Script to initialise a simple dry gcm from rest and spin up for one year,
import climt
import sympl
import numpy as np
from datetime import timedelta
import os
os.system("rm 1_yr_spinup_nodamping_T42_30vlvl.nc")
### -----------------------
# 9th Dec 2019