You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many programs which produce flow direction rasters, and almost every one seems to use a different convention. There are reasons why some of these programs would be used in preference to others.
It is particularly strange to me that crayfish supports converting from PCRaster and SAGA, but not from GRASS, which is more reliably available in QGIS.
I found that a simple edit to dir_map = {} meant I could convert from GRASS output instead of PCRaster output:
There are also input cells containing -2, -4, -6 and -8, where there is edge contamination. I'm not sure if they should be treated the same as 2, 4, 6 and 8, or ignored.
Since it is essentially only a list of numbers that needs to change to support different conventions, rather than having separate tools for converting inputs with different conventions to grib, you could have a single tool which allows to specify the convention.
As a workaround, users could run some other tool (perhaps even just generating a VRT) to reclassify their input to match PCRaster or SAGA convention, but this isn't very accessible - users have to know what's going on and find out the convention that the different programs use.
The text was updated successfully, but these errors were encountered:
As a workaround, users could run some other tool (perhaps even just generating a VRT) to reclassify their input to match PCRaster or SAGA convention, but this isn't very accessible - users have to know what's going on and find out the convention that the different programs use.
Of course, a user might actually have other reasons to convert from one flow direction format to another (e.g. to compare the output of different programs, or apply the same style to the output from different programs), so perhaps a separate tool to convert flow direction formats would be more useful.
There are many programs which produce flow direction rasters, and almost every one seems to use a different convention. There are reasons why some of these programs would be used in preference to others.
It is particularly strange to me that crayfish supports converting from PCRaster and SAGA, but not from GRASS, which is more reliably available in QGIS.
I found that a simple edit to
dir_map = {}
meant I could convert from GRASS output instead of PCRaster output:There are also input cells containing -2, -4, -6 and -8, where there is edge contamination. I'm not sure if they should be treated the same as 2, 4, 6 and 8, or ignored.
Since it is essentially only a list of numbers that needs to change to support different conventions, rather than having separate tools for converting inputs with different conventions to grib, you could have a single tool which allows to specify the convention.
As a workaround, users could run some other tool (perhaps even just generating a VRT) to reclassify their input to match PCRaster or SAGA convention, but this isn't very accessible - users have to know what's going on and find out the convention that the different programs use.
The text was updated successfully, but these errors were encountered: