Skip to content

Instantly share code, notes, and snippets.

View jklymak's full-sized avatar

Jody Klymak jklymak

View GitHub Profile
@jklymak
jklymak / ModelMaclane.ipynb
Created March 16, 2018 21:10
ModelMaclane.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / usesetp.py
Last active October 16, 2017 20:10
Use setp to modify more than one axis at once....
fig, ax = plt.subplots(3,3)
plt.setp(ax[:,1:], 'yticklabels', '')
plt.setp(ax[:-1,:], 'xticklabels', '')
@jklymak
jklymak / RdiToNetcdf.ipynb
Created September 9, 2017 20:14
RdiToNetcdf.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / IWRelationships.ipynb
Last active September 8, 2017 22:00
IWRelationships.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / promoteMIT.py
Created August 15, 2017 04:15
Promote mit variables to co-ordinates
def MITgcmPromoteCoords(ds):
ds = ds.assign_coords(Z=ds.Z, Zu=ds.Zu, Zl=ds.Zl, Zp1=ds.Zp1,
time=ds.time, timestart=ds.timestart,
timeend=ds.timeend, iter=ds.iter,
rA=ds.rA, rAw=ds.rAw, rAz=ds.rAz, rAs=ds.rAs,
dxG=ds.dxG,
dyG=ds.dyG, dxC=ds.dxC, dyC=ds.dyC, drC=ds.drC,
drF=ds.drF, PHrefC=ds.PHrefC, PHrefF=ds.PHrefF,
)
return ds
@jklymak
jklymak / Untitled.ipynb
Created August 11, 2017 19:47
JetCMYK.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / conrad
Created July 23, 2017 22:22
conrad build_option
#!/bin/bash
#
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_cray_archer,v 1.4 2016/03/13 18:30:34 dfer Exp $
# $Name: checkpoint66g $
# To be used with the suite of cray compilers (PrgEnv-cray).
# To get netcdf, add:
# module load cray-netcdf-hdf5parallel
# module load cray-mpich
@jklymak
jklymak / MVPTranslate.ipynb
Last active June 28, 2017 15:08
Make CF-compliant netcdf MVP files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / ColorbarYTicks.ipynb
Last active June 7, 2017 20:12
colorbar y ticks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jklymak
jklymak / markdown-to-email
Last active October 31, 2018 17:48 — forked from cleverdevil/markdown-to-email
markdown-to-emailA simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---