Skip to content

Instantly share code, notes, and snippets.

View eightysteele's full-sized avatar

Aaron Steele eightysteele

View GitHub Profile
@eightysteele
eightysteele / gist:1408088
Created November 30, 2011 04:59
Install pyhdf on Ubuntu Oneric
wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf-0.8.3.tar.gz
tar zxvf pyhdf-0.8.3.tar.gz
cd pyhdf-0.8.3
sudo apt-get install libhdf4-dev
sudo apt-get install python2.6-dev
cd pyhdf
sudo apt-get install swig
swig -python hdfext.i
cd ..
export INCLUDE_DIRS=/usr/include/hdf
""" MODULE images2gif
Provides a function (writeGif) to write animated gif from a series
of PIL images or numpy arrays.
This code is provided as is, and is free to use for all.
Almar Klein (June 2009)
- based on gifmaker (in the scripts folder of the source distribution of PIL)
Latin,PolygonCount
Abeillia abeillei,6
Abroscopus schisticeps,4
Abroscopus superciliaris,1
Acanthidops bairdii,6
Acanthiza chrysorrhoa,1
Acanthiza inornata,1
Acanthiza iredalei,1
Acanthiza katherina,1
Acanthiza reguloides,1
geography.sql.in.c
legacy_compatibility_layer.sql.in.c
legacy.sql.in.c
long_xact.sql.in.c
lwgeom_sqlmm.c
postgis_drop_before.sql.in.c
postgis_drop.sql.in.c
postgis.sql.in.c
postgis_upgrade_20_minor.sql.in
sqlmm.sql.in.c
https://eighty.cartodb.com/tiles/mol_cody/3/6/3.png?style=#mol_cody{polygon-fill:#99CC00; polygon-opacity:.5; line-opacity:1; line-color:#FFFFFF; line-width:0;}
{
"_id":"0-12736",
"_rev":"1-b5615b9a2648d5518be35c9e2d47c42a",
"b":[
[
"-180",
"-16.1333333"
],
[
"-179.9912754",
{
"url": "http://www.cellmapper.net/api/v2/json.php?action=getTowers&data[MCC]=202&data[MNC]=1&data[LAC]=1002"
"action":"getTowers",
"data":[
{
"base":"33",
"visible":1,
"latitude":37.945139540016,
"longitude":23.658307831007
},
@eightysteele
eightysteele / and_it_works.json
Created November 10, 2011 17:42
MOL search JSON response for 'Camelus'
{
"layers":{
"0":{
"name":"Perdix concolor",
"source":"aaron",
"type":"ecoregion"
},
"1":{
"name":"Perdix hodgsoniae",
"source":"cody",
import subprocess
import shlex
import glob
command = "gdal_translate -of GTiff %s %s.tif"
for bil in glob.glob('*.bil'):
subprocess.call(shlex.split(command % (bil, bil)))
SELECT rid, band, (stats).* FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats FROM bioclim10_29 CROSS JOIN generate_series(1,3) As band WHERE rid=2) As foo;