Skip to content

Commit

Permalink
update the nodata clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Tina committed Jan 11, 2016
1 parent 08d1ad1 commit a40c0e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terrain/terrain_mult.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def terrain(temp_tile, tile_extents_nobuffer):
reclassified_array = terrain_class2mz_orig(data)

# if the value is 0, it is nodata
# reclassified_array[reclassified_array == 0] = np.nan
reclassified_array[reclassified_array == 0] = np.nan

# assign nodata area as average multiplier value
# assign nodata area as water with multiplier value 1
mask = np.isnan(reclassified_array)
reclassified_array[mask] = 0.931
reclassified_array[mask] = 1.0

# convoulution of the original terrain multipler into different directions
log.info('Moving average for each direction ...')
Expand Down

0 comments on commit a40c0e6

Please sign in to comment.