DOI: 10.57760/sciencedb.16102
title: Source code for NMH-CS 3.0
title: Source code for NMH-CS 3.0

description: NMH-CS v3.0 is a hydrological model based on Noah-MP but coded using the CSharp (C#) language. This model was crafted by creating a framework and accurately translating the original Noah-MP LSM code from WRF-Hydro 3.0, coupled with a Muskingum method-based river routing model(Liu et al., 2023). CSharp, recognized for its modern and object-oriented approach, is widely used for software development across various platforms, particularly on the Windows operating system. NMH-CS offers several advantages over the original Noah-MP and WRF-Hydro. Unlike the original version that requires compiling for each computer and predominantly relies on Unix-like systems, NMH-CS can seamlessly run on Windows systems supporting the Microsoft Dotnet Framework. The executable files, once compiled, can be easily packaged and distributed to other Windows computers, providing convenience for users less familiar with Unix-like operations. The utilization of the CSharp language facilitates advanced software programs for code visualization and analysis, enhancing user convenience for code reading and modification. The model's design aligns with the input datasets and settings in the 'namelist' file, ensuring compatibility with WRF-Hydro 3.0. Both the translated Noah-MP LSM simulation and the river routing simulation in NMH-CS support parallel execution on common personal computers.NMH-CS v3.0是一个基于Noah-MP的生态水文模型，但使用C#语言编码。该模型是通过创建一个框架并准确翻译WRF-Hydro 3.0中的原始Noah-MP LSM代码，再加上基于Muskingum方法的并行化河网汇流模型而构建的。C#以其现代和面向对象的方法而闻名，广泛用于跨各种平台的软件开发，特别是在Windows操作系统上。NMH-CS比最初的Noah-MP和WRF-Hydro具有多个优势。与需要为每台计算机编译并且主要依赖类Unix系统的原始版本不同，NMH-CS可以在支持Microsoft Dotnet Framework的Windows系统上无缝运行。可执行文件一旦编译，就可以很轻松地打包复制到其他Windows计算机，为不太熟悉类Unix操作的用户提供便利。C#语言具有SharpDevelop或Visual Studio这样的代码分析工具，提高了用户阅读和修改代码的便利性。该模型的设计确保了“namelist”文件设置、输入驱动数据集保持一致，确保与WRF-Hydro 3.0尽可能地兼容。翻译后的Noah-MP LSM模拟和河网汇流模拟都支持在普通个人计算机上的多核化并行执行。
description: NMH-CS v3.0 is a hydrological model based on Noah-MP but coded using the CSharp (C#) language. This model was crafted by creating a framework and accurately translating the original Noah-MP LSM code from WRF-Hydro 3.0, coupled with a Muskingum method-based river routing model(Liu et al., 2023). CSharp, recognized for its modern and object-oriented approach, is widely used for software development across various platforms, particularly on the Windows operating system. NMH-CS offers several advantages over the original Noah-MP and WRF-Hydro. Unlike the original version that requires compiling for each computer and predominantly relies on Unix-like systems, NMH-CS can seamlessly run on Windows systems supporting the Microsoft Dotnet Framework. The executable files, once compiled, can be easily packaged and distributed to other Windows computers, providing convenience for users less familiar with Unix-like operations. The utilization of the CSharp language facilitates advanced software programs for code visualization and analysis, enhancing user convenience for code reading and modification. The model's design aligns with the input datasets and settings in the 'namelist' file, ensuring compatibility with WRF-Hydro 3.0. Both the translated Noah-MP LSM simulation and the river routing simulation in NMH-CS support parallel execution on common personal computers.NMH-CS v3.0是一个基于Noah-MP的生态水文模型，但使用C#语言编码。该模型是通过创建一个框架并准确翻译WRF-Hydro 3.0中的原始Noah-MP LSM代码，再加上基于Muskingum方法的并行化河网汇流模型而构建的。C#以其现代和面向对象的方法而闻名，广泛用于跨各种平台的软件开发，特别是在Windows操作系统上。NMH-CS比最初的Noah-MP和WRF-Hydro具有多个优势。与需要为每台计算机编译并且主要依赖类Unix系统的原始版本不同，NMH-CS可以在支持Microsoft Dotnet Framework的Windows系统上无缝运行。可执行文件一旦编译，就可以很轻松地打包复制到其他Windows计算机，为不太熟悉类Unix操作的用户提供便利。C#语言具有SharpDevelop或Visual Studio这样的代码分析工具，提高了用户阅读和修改代码的便利性。该模型的设计确保了“namelist”文件设置、输入驱动数据集保持一致，确保与WRF-Hydro 3.0尽可能地兼容。翻译后的Noah-MP LSM模拟和河网汇流模拟都支持在普通个人计算机上的多核化并行执行。