Skip to content

Commit

Permalink
removing PIL-dependent method until it becomes more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
wbierbower committed Jul 6, 2015
1 parent 2f11510 commit b62b093
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fauxgeo/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import numpy as np
from shapely.geometry import Polygon
import shapely
import PIL
# import PIL
import pygeoprocessing as pygeo

from fauxgeo.vector import Vector
Expand Down Expand Up @@ -356,12 +356,12 @@ def _repr_png_(self):
def save_raster(self, uri):
shutil.copyfile(self.uri, uri)

def get_grayscale_image(self):
ma = self.get_band(1)
a_min = ma.min()
a_max = ma.max() - a_min
new_ma = (ma - a_min) * (255/a_max)
return PIL.Image.fromarray(new_ma)
# def get_grayscale_image(self):
# ma = self.get_band(1)
# a_min = ma.min()
# a_max = ma.max() - a_min
# new_ma = (ma - a_min) * (255/a_max)
# return PIL.Image.fromarray(new_ma)

def get_heatmap_image(self):
raise NotImplementedError
Expand Down

0 comments on commit b62b093

Please sign in to comment.