I've found two ways to install the GDAL Python bindings on Mac.
First, you can install the GDAL Framework via QGIS (or get it directly), and then do...
| # -*- coding: utf-8 -*- | |
| """ | |
| Mac OSXのmatplotlibで日本語フォント(Osaka)を使うサンプル | |
| python2.7(anaconda-2.1.0) | |
| cf. http://matplotlib.org/users/customizing.html | |
| """ | |
| # デフォルトの文字コードを変更する. | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf-8') |
| """ | |
| Original Author Ernesto P. Adorio, Ph.D | |
| Original Source: http://my-other-life-as-programmer.blogspot.com/2012/02/python-finding-nearest-matching-color.html | |
| Modifed By: JDiscar | |
| This class maps an RGB value to the nearest color name it can find. Code is modified to include | |
| ImageMagick names and WebColor names. | |
| 1. Modify the minimization criterion to use least sum of squares of the differences. | |
| 2. Provide error checking for input R, G, B values to be within the interval [0, 255]. |
| """Kernel K-means""" | |
| # Author: Mathieu Blondel <mathieu@mblondel.org> | |
| # License: BSD 3 clause | |
| import numpy as np | |
| from sklearn.base import BaseEstimator, ClusterMixin | |
| from sklearn.metrics.pairwise import pairwise_kernels | |
| from sklearn.utils import check_random_state |
| """ | |
| This module implements the Lowess function for nonparametric regression. | |
| Functions: | |
| lowess Fit a smooth nonparametric regression curve to a scatterplot. | |
| For more information, see | |
| William S. Cleveland: "Robust locally weighted regression and smoothing | |
| scatterplots", Journal of the American Statistical Association, December 1979, |