Skip to content

Commit

Permalink
Set the default zero height to the right shape in crefl
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Mar 18, 2016
1 parent 56b62ac commit f5a2d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/composites/crefl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def run_crefl(reflectance_bands, coefficients,
# Get digital elevation map data for our granule, set ocean fill value to 0
if avg_elevation is None:
LOG.debug("No average elevation information provided in CREFL")
height = 0.0
height = np.zeros(lon.shape, dtype=np.float)
else:
row = np.int32((90.0 - lat) * avg_elevation.shape[0] / 180.0)
col = np.int32((lon + 180.0) * avg_elevation.shape[1] / 360.0)
Expand Down

0 comments on commit f5a2d41

Please sign in to comment.