Skip to content

Commit

Permalink
clean up natcap#1005
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed Aug 18, 2023
1 parent 518cc11 commit 36345dd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/natcap/invest/ndr/ndr.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@
'modified_load_p_path': 'modified_load_p.tif',
'ndr_n_path': 'ndr_n.tif',
'ndr_p_path': 'ndr_p.tif',
'aligned_runoff_proxy_nodata_path': 'aligned_runoff_proxy_nodata.tif',
'masked_runoff_proxy_path': 'masked_runoff_proxy.tif',
'runoff_proxy_index_path': 'runoff_proxy_index.tif',
's_accumulation_path': 's_accumulation.tif',
Expand Down Expand Up @@ -1015,22 +1014,6 @@ def _validate_inputs(nutrients_to_process, lucode_to_parameters):
LOGGER.info(r' (_") (_/(__)_) (__) (__) ')


def _assign_nodata(raster_path, target_path):
"""Create a copy of a raster with default nodata value assigned to band 1.
Args:
raster_path (str): path of the raster to copy
target_path (str): path to write out the copy
Returns:
None
"""
source = gdal.OpenEx(raster_path, gdal.OF_RASTER)
driver = gdal.GetDriverByName('GTIFF')
target = driver.CreateCopy(target_path, source)
target.GetRasterBand(1).SetNoDataValue(_TARGET_NODATA)
source, target = None, None

def _slope_proportion_and_threshold(slope_path, target_threshold_slope_path):
"""Rescale slope to proportion and threshold to between 0.005 and 1.0.
Expand Down

0 comments on commit 36345dd

Please sign in to comment.