Skip to content

Instantly share code, notes, and snippets.

View chrisb13's full-sized avatar

Christopher Bull chrisb13

View GitHub Profile
@chrisb13
chrisb13 / ncocdo_snippets.sh
Created January 28, 2017 03:13
List of handy one-liners for NCO and CDO
snippet cdo
###########################################################################
# CDO #
###########################################################################
#extract a time
cdo seltimestep,1,2,5 cordex24_CURLFX-FLUXFCE_3h_20040101_20041231_grid_U_2D.nc test.nc
#do simple arithmatic
cdo expr,'sum=qsr+qns-qt' cordex24_CURLFX-FLUXFCE_3h_19980101_19981231_grid_T_2D.nc ofile.nc
@chrisb13
chrisb13 / combine.py
Created July 26, 2016 04:10 — forked from glombard/combine.py
Merging 4 images into one with Python and PIL/Pillow
# Combine multiple images into one.
#
# To install the Pillow module on Mac OS X:
#
# $ xcode-select --install
# $ brew install libtiff libjpeg webp little-cms2
# $ pip install Pillow
#
from __future__ import print_function