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
var degrees2meters = function(lon,lat) { | |
var x = lon * 20037508.34 / 180; | |
var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180); | |
y = y * 20037508.34 / 180; | |
return [x, y] | |
} | |
lon= -77.035974 | |
lat = 38.898717 |
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
require "formula" | |
#be sure to have the repo homebrew-dupes and homebrew-science | |
#if not add it with: brew tap Homebrew/homebrew-dupes && brew tap Homebrew/homebrew-science | |
#after installing brew-pip you have to run pip install all the dependencies listed in the python section | |
class Bob < Formula | |
homepage "http://www.idiap.ch/software/bob/docs/releases/last/sphinx/html/index.html" | |
url "http://www.idiap.ch/software/bob/packages/bob-1.2.2.tar.gz" | |
sha1 "c557712996ae8a6a1e161026f539d1f1fd108fb0" |