...
- Import the branch locations into PCRaster. This is done with the PCRaster general adaptor export, which produces branch0000.000 file.
- Copy the X and Y locations from the Branches.xml and make an new irregular grid (XXX_branch_grid) in Grids.xml
- Make a new location ID for XXX_branch_grid.
- Make XXX_interpolate_grid_to_branch_grid file. This file converts the locationid from XXX_merged to the XXX_branch_grid. And back to the XXX_merged grid, making use of inverse distance interpolation technique. Adapt the search radius to grid size. (= smaller than half a grid cell)
- Make general adaptor run file: XXX_PCR_generate_branch_file. This file exports the branch0000.000 file.
- Make stream flow direction map.
...