This small program fixes r.topmodel input files to work around a bug in r.topmodel.
cc -o fix_rtopmodel fix_rtopmodel.c- Install Visual Studio Community Edition. Select these two components:
- MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
- Windows 11 SDK (10.0.26100.0)
- Start Developer Command Prompt for VS 2022
- Compile
cl /Fe:fix_rtopmodel.exe fix_rtopmodel.c