Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 iris | |
import iris.unit | |
import cf_units | |
tunit = iris.unit.Unit('hours since 1970-01-01 00:00:00', calendar='360_day') | |
tcoord = iris.coords.DimCoord(1, standard_name='time', units=tunit) | |
print 'iris.unit.Unit: {}'.format(repr(tcoord)) | |
tunit = cf_units.Unit('hours since 1970-01-01 00:00:00', calendar='360_day') |
This file contains hidden or 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
# THE FOLLOWING SCRIPT IS TO BE PLACED AND RUN IN THE CLONE OF | |
# THE IRIS REPOSITORY - https://github.com/SciTools/iris | |
# | |
# The script is for installing iris to make developments in iris. | |
# To install iris as simply a user of iris see: | |
# https://gist.github.com/cpelley/5a89f44cf9288308be3f | |
# | |
# Assumes user is working with conda, if not please change | |
# 'ENVIRONMENT_PATH' to point to the directory of your choosen | |
# python interpreter. |
This file contains hidden or 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
# THE FOLLOWING SCRIPT IS TO BE PLACED AND RUN IN THE DOWNLOADED | |
# IRIS SOURCE DIRECTORY - https://github.com/SciTools/iris | |
# | |
# The script is for simply installing iris. For iris development | |
# see: https://gist.github.com/cpelley/35020289a28253116a82 | |
# | |
# Assumes user is working with conda, if not please change | |
# 'ENVIRONMENT_PATH' to point to the directory of your choosen | |
# python interpreter. | |
set -e |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#!/bin/sh | |
# Add the following to the [helpers] section of ~/.subversion/config | |
# merge-tool-cmd = /path/to/svn_merge_vimdiff.sh | |
BASE=${1} | |
THEIRS=${2} | |
MINE=${3} | |
MERGED=${4} | |
WCPATH=${5} |
This file contains hidden or 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
#!/bin/sh | |
# Configure your favorite diff program here. | |
DIFF="/usr/bin/vimdiff" | |
# Subversion provides the paths we need as the sixth and seventh | |
# parameters. | |
LEFT=${6} | |
RIGHT=${7} | |
# Call "svn diff --force" to end up here with binary files. |
This file contains hidden or 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:05f4a43c46ca589337d846930f349fcde8b87fa125b344c972943419fd6f2999" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#!/bin/sh | |
# Function to verify user want to run the commant. | |
# | |
# Add this file to your PATH to make available and ensure that it has | |
# executable privileges. | |
# | |
# Example usage: | |
# confirm && <command> | |
# http://stackoverflow.com/questions/3231804/in-bash-how-to-add-are-you-sure-y-n-to-any-command-or-alias |