This file has been truncated, but you can view the full file.
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{ | |
"metadata": { | |
"name": "numpy_tricks" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function v = loadpivlabtxt(fname) | |
%LOADPIVLABTXT Load a vector field exported in text format | |
% V = LOADPIVLABTXT(FILENAME) loads a vector field FILENAME saved in text | |
% format (TXT or DAT) into the structure V. Accepted file formats are: | |
% .TXT, exported from DaVis (LaVision) | |
% .DAT, from VidPIV (Oxford Laser) | |
% | |
% The fields of the structure V are the same as for LOADVEC, except the | |
% field V.Attributes, which contains the first line of the text file | |
% FILENAME. |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:ae12cadbe088aa2df4c44761da5172223e468a824bc68e52b427b2314b428942" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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
/* Change code font */ | |
.CodeMirror pre{ | |
font-family: 'Source Code Pro', Consolas, monocco, monospace; | |
} | |
/* Change input prompt size */ | |
div.input{ | |
/*width: 105ex;*/ | |
} |
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 sys, os, glob | |
sys.path.append(os.path.abspath(r'D:\OpenPIV\OpenPIV-0.11')) | |
import openpiv.tools | |
import openpiv.process | |
import openpiv.scaling | |
import openpiv.preprocess | |
import numpy as np | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 matplotlib.image as mpimg | |
import matplotlib.pyplot as plt | |
def loadFigImage(path): | |
im = mpimg.imread(path) | |
h,w = im.shape[0], im.shape[1] | |
dpi = 80 | |
fig = plt.figure(figsize=(w/dpi, h/dpi), dpi=dpi) | |
ax = plt.Axes(fig, [0, 0, 1, 1]) | |
ax.set_xlim(0, w) |