Skip to content

Commit

Permalink
Merge pull request #172 from jbouffard/relcassify-docs
Browse files Browse the repository at this point in the history
Fixed Formatting in Reclassify Methods
  • Loading branch information
echeipesh committed May 5, 2017
2 parents 53e44db + 7d91474 commit 557c3a0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions geopyspark/geotrellis/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def tile_to_layout(self, layer_metadata, resample_method=NEARESTNEIGHBOR):
srdd = self.srdd.tileToLayout(json.dumps(layer_metadata), resample_method)
return TiledRasterRDD(self.geopysc, self.rdd_type, srdd)

def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO, replace_nodata_with=None):
def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO,
replace_nodata_with=None):
"""Changes the cell values of a raster based on how the data is broken up.
Args:
Expand All @@ -256,9 +257,9 @@ def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO,
``float``.
boundary_strategy (str, optional): How the cells should be classified along the breaks.
If unspecified, then ``LESSTHANOREQUALTO`` will be used.
replace_nodata_with (data_type, optional): When remapping values, nodata values must be
treated separately. If nodata values are intended to be replaced during the
reclassify, this variable should be set to the intended value. If unspecified,
replace_nodata_with (data_type, optional): When remapping values, nodata values must be
treated separately. If nodata values are intended to be replaced during the
reclassify, this variable should be set to the intended value. If unspecified,
nodata values will be preserved.
NOTE:
Expand Down Expand Up @@ -658,7 +659,8 @@ def cost_distance(self, geometries, max_distance):

return TiledRasterRDD(self.geopysc, self.rdd_type, srdd)

def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO, replace_nodata_with=None):
def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO,
replace_nodata_with=None):
"""Changes the cell values of a raster based on how the data is broken up.
Args:
Expand All @@ -668,9 +670,9 @@ def reclassify(self, value_map, data_type, boundary_strategy=LESSTHANOREQUALTO,
``float``.
boundary_strategy (str, optional): How the cells should be classified along the breaks.
If unspecified, then ``LESSTHANOREQUALTO`` will be used.
replace_nodata_with (data_type, optional): When remapping values, nodata values must be
treated separately. If nodata values are intended to be replaced during the
reclassify, this variable should be set to the intended value. If unspecified,
replace_nodata_with (data_type, optional): When remapping values, nodata values must be
treated separately. If nodata values are intended to be replaced during the
reclassify, this variable should be set to the intended value. If unspecified,
nodata values will be preserved.
NOTE:
Expand Down

0 comments on commit 557c3a0

Please sign in to comment.