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
# Make sure g++ compiler is installed for hdf5 | |
sudo apt-get install g++ dpkg-dev | |
# Download HDF5 source unpack and cd to directory | |
wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.10.tar.gz | |
tar -xzvf hdf5-1.8.10.tar.gz | |
cd hdf5-1.8.10 | |
./configure --prefix=/usr/local --enable-shared --enable-hl | |
make -j 2 | |
sudo make install |
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
''' | |
Only slighted modified from code provided by Laura De Cicco (USGS). | |
Laura De Cicco, A. Crosby | |
http://nwisvaws02.er.usgs.gov/ogc-swie/wml2/uv/sos?request=GetObservation&featureID=01446500&offering=UNIT&observedProperty=00060&beginPosition=2013-02-15 | |
''' | |
from xml.dom import minidom, Node | |
import datetime |
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
from rtree import index | |
from random import random | |
from datetime import datetime | |
timer = datetime.now() | |
# Create 10,000,000 random numbers between 0 and 1 | |
rands = [random() for i in range(10000000)] | |
# Function required to bulk load the random points into the index |
NewerOlder