- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
""" | |
Convert a wikipage in Google wiki format to reStructuredText | |
Version 1.0.2 | |
19 March 2014 | |
Derek Hohls, Meraka, CSIR | |
Handles | |
======= | |
* internal comments (#name - no space) | |
* bold / italics text |
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 ubuntu | |
MAINTAINER Derek Hohls <[email protected]> | |
# make sure the package repository is up to date | |
RUN apt-get update | |
# general | |
RUN apt-get install -y gcc patch wget curl nano | |
# Install Subversion 1.8 and Apache |
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
""" | |
Create a view for a 52N SOS, so that it can be accessed as a WFS from, | |
for example, QGIS or GeoServer | |
Version: 0.1 | |
Author: Derek Hohls, Meraka, CSIR | |
""" | |
import psycopg2 as psy |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ows:ServiceProvider xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<ows:ProviderName>Meraka</ows:ProviderName> | |
<ows:ProviderSite xlink:href="http://www.meraka.org" /> | |
<ows:ServiceContact> | |
<ows:IndividualName>TBA</ows:IndividualName> | |
<ows:PositionName>TBA</ows:PositionName> | |
<ows:ContactInfo> | |
<ows:Phone> | |
<ows:Voice>+27 12 8412911</ows:Voice> |
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
# GeoNode / GeoServer install for Docker | |
# Save file as Dockerbuild; run sudo | |
# VERSION 0.0.1 | |
# TEST = 'foo' | |
FROM ubuntu | |
MAINTAINER Derek Hohls <[email protected]> | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list |
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
<profile> | |
<id>52n-start</id> | |
<repositories> | |
<repository> | |
<id>n52-releases</id> | |
<name>52n Releases</name> | |
<url>http://52north.org/maven/repo/releases</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> |
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
# GeoNode / GeoServer install for Docker | |
# Save file as Dockerbuild; sudo docker build -t ubuntu/testgeo3 . | |
# VERSION 1.0.0 | |
FROM ubuntu | |
MAINTAINER Derek Hohls <[email protected]> | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update |
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 gdal | |
import netCDF4 | |
import sys | |
import matplotlib.pyplot as plt | |
def plot(file_path, title=""): | |
gdal_data = gdal.Open(file_path) | |
arr = gdal_data.ReadAsArray() | |
#print "shapes", arr.shape, arr.dtype |