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
def read_zmapplusgrid(inputfile,dtype=np.float64): | |
"""Read ZmapPlus grids | |
Format is explained here http://lists.osgeo.org/pipermail/gdal-dev/2011-June/029173.html""" | |
# read header, read until second '@', record header lines and content | |
infile = open(inputfile,'r') | |
comments=[] | |
head=[] | |
a=0 # count '@'s | |
headers=0 # cound header+comment lines |
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
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 -n [number] -m [message] -u [username] -p [password]"; | |
echo ""; | |
echo "[number] = SMS number to send message to"; | |
echo "[message] = Text of message you want to send"; | |
echo "[username] = Username assocated with aql account"; | |
echo "[password] = Password assocated with aql account"; | |
echo " Both the username and password options are optional and"; |
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
# KISS Install and use pyenv on CentOS 6.5 (final) | |
# pyenv => https://github.com/yyuu/pyenv | |
cd ~ | |
git clone git://github.com/yyuu/pyenv.git .pyenv | |
echo '# pyenv config' >> ~/.bash_profile | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile |