Skip to content

Instantly share code, notes, and snippets.

View dbuscombe-usgs's full-sized avatar
🎯
Focusing

Daniel Buscombe dbuscombe-usgs

🎯
Focusing
View GitHub Profile
sudo yum install fftw.x86_64 fftw-devel.x86_64
sudo yum install openmotif-clients.x86_64 openmotif.x86_64 openmotif-demos.x86_64
sudo yum groupinstall "X Software Development"
sudo yum install perl-Parallel-ForkManager.noarch
sudo mkdir /usr/local/GMT
sudo sh install_gmt.sh GMT[45]param.txt
export NETCDFHOME=/home/me/Downloads/netcdf-3.6.3
export PATH=/usr/local/GMT/bin:$PATH
cd ~/Downloads
tar xvzf MB-System.tar.gz
sudo nano /etc/crontab
#and copy the following
@hourly ~/./backup_history.sh
FILE *INFILE, *OUTFILE, *DFILE = stderr, *TFILE;
//to read:
FILE *INFILE, *OUTFILE, *TFILE, *DFILE;
//and in main() add the following lines
FILE *DFILE;
DFILE = stderr;
order = tree.get_cluster_elements()
slist=imlist[order]
#If i'm only interested in images of the river bend, you can see at a glance that I can remove the final cluster of 4 images, and then take the last 2 sub-clusters (comprising 10 images) so this gives me those images:
a=4
slist=slist[:len(order)-a]
a=10
slist=slist[-a:]
draw_dendrogram(tree,imlist,filename='horseshoe.png')