This file contains hidden or 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 'forma.hadoop.jobs.scatter) | |
;; put stuff in pail | |
(let [pail-path "/Users/robin/delete/tmp/newpail" | |
vcf-src [(thrift/DataChunk* "vcf" | |
(thrift/ModisPixelLocation* "500" 28 8 0 0) | |
25 | |
"00")] | |
gadm-src [(thrift/DataChunk* "gadm" | |
(thrift/ModisPixelLocation* "500" 28 8 0 0) |
This file contains hidden or 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
;; Map of lat/lon min and max values. | |
(def latlon-range {:lat-min -90 :lat-max 90 :lon-min -180 :lon-max 180}) | |
(defn latlon-valid? [lat lon] | |
"Returns true if lat and lon are valid, otherwise returns false." | |
(let [{:keys [lat-min lat-max lon-min lon-max]} latlon-range] | |
(and (<= lat lat-max) | |
(>= lat lat-min) | |
(<= lon lon-max) | |
(>= lon lon-min)))) |
This file contains hidden or 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 '[java.util UUID]) | |
(defn uuid-stream [] | |
(repeatedly #(str (UUID/randomUUID)))) | |
(defn domain-map [root-path n] | |
(let [name-seq (take n (uuid-stream))] | |
(->> (map (partial str root-path "/") name-seq) | |
(interleave name-seq) | |
(apply hash-map)))) |
This file contains hidden or 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
{ | |
"properties":{ | |
"areas":{ | |
"values":{ | |
"Spizocorys_personata:1.0":24352145855.3125, | |
"Hylocharis_chrysura:1.0":3110523285033.5, | |
"Caprimulgus_solala:1.0":0, | |
"Phylloscopus_chloronotus:1.0":379180718196.1875, | |
"Geothlypis_chiriquensis:1.0":0, | |
"Hylorchilus_sumichrasti:1.0":11687204311.5, |
This file contains hidden or 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
{ | |
"properties":{ | |
"areas":{ | |
"values":{ | |
"Hylocharis_chrysura:1.0":3114936261984.672, | |
"Molothrus_armenti:1.0":0, | |
"Phylloscopus_chloronotus:1.0":378906273745.875, | |
"Geothlypis_chiriquensis:1.0":0, | |
"Hylorchilus_sumichrasti:1.0":11688389637.148438, | |
"Anthracothorax_veraguensis:1.0":0, |
This file contains hidden or 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
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 |
This file contains hidden or 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
""" 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) |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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;} |