Skip to content

Commit

Permalink
add description
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Mar 20, 2019
1 parent a4825dd commit 09161f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crayfish/processing/saga_flow_to_grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def processAlgorithm(self, parameters, context, feedback):
x_block = QgsRasterBlock(Qgis.Float32, width, height)
y_block = QgsRasterBlock(Qgis.Float32, width, height)
diag = 1. / sqrt(2)

# resulting raster has no NODATA value set, which
# is not treated correctly in MDAL 0.2.0. See
# see https://github.com/lutraconsulting/MDAL/issues/104
# therefore set some small value to overcome the issue
dir_map = {
0: (1e-7, 1),
1: (diag, diag),
Expand Down

0 comments on commit 09161f6

Please sign in to comment.