Skip to content

Commit

Permalink
modified raster method
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Bierbower authored and Will Bierbower committed Mar 16, 2015
1 parent 2618f95 commit a660b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The Raster Class
raster.uri # equals '/path/to/geotiff'
raster.get_band(1) # returns 2d numpy array
raster.get_bands() # returns 3d numpy array
raster.get_nodata_val() # returns nodata value
raster.get_nodata() # returns nodata value
raster.shape() # returns 2-tuple (rows, cols)
The TestRaster Class
Expand All @@ -77,7 +77,7 @@ The TestRaster Class
# same functions as Raster class
raster.get_band(1) # returns 2d numpy array
raster.get_bands() # returns 3d numpy array
raster.get_nodata_val() # returns nodata value
raster.get_nodata() # returns nodata value
raster.shape() # returns 2-tuple (rows, cols)
del test_raster # cleans up temporary file on object deletion or program exit
Expand Down
2 changes: 1 addition & 1 deletion fauxgeo/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_bands(self):
self._close_dataset()
return a

def get_nodata_val(self, band_num):
def get_nodata(self, band_num):
nodata_val = None
self._open_dataset()

Expand Down

0 comments on commit a660b75

Please sign in to comment.