刘广达, 江月松. MODTRAN软件集成环境开发[J]. 应用光学, 2007, 28(3): 317-320.
引用本文: 刘广达, 江月松. MODTRAN软件集成环境开发[J]. 应用光学, 2007, 28(3): 317-320.
LIU Guang-da, JIANG Yue-song. Graphic integration interface design for MODTRAN[J]. Journal of Applied Optics, 2007, 28(3): 317-320.
Citation: LIU Guang-da, JIANG Yue-song. Graphic integration interface design for MODTRAN[J]. Journal of Applied Optics, 2007, 28(3): 317-320.

MODTRAN软件集成环境开发

Graphic integration interface design for MODTRAN

  • 摘要: MODTRAN是目前流行的红外辐射传输计算模型。应用FORTRAN语言编写的MODTRAN源代码,集成MODRAN计算软件,设计了MODTRAN软件图形界面。针对FORTRAN语言计算效率高而图形功能弱,Visual Basic (VB) 计算效率低而图形功能强的特点,用VB 和FORTRAN 2种语言混合编程,实现FORTRAN 计算程序资源的再利用。将FORTRAN 程序转化为动态链接库函数,通过函数参数传递使VB程序和FORTRAN动态链接库函数之间交换数据,将FORTRAN的计算结果在VB窗体上显示并进行作图处理,从而实现MODTRAN计算程序的图形界面及计算结果的可视化。设计出MODTRAN的汉化使用界面,有利于MODTRAN在国内推广应用。

     

    Abstract: MODTRAN is a popular calculation model for atmosphere infrared radiation transmission. The graphic interface for MODTRAN based on the code compiled with FORTRAN is designed for project applications. Since calculation efficiency of FORTRAN language is high, but its graphic function is weak, while the calculation efficiency of Visual Basic (VB) is low, but its graphic function is powerful, their advantages are utilized adequately, and the concept of reusing the resources of FORTRAN calculation program is realized. The method is to change the FORTRAN program into the dynamic link library (DLL) functions, exchange data between VB program and FORTRAN program by transferring function parameters, then shows the calculation results of FORTRAN DLL functions on VB form and draw the graphs. Thus the graph interface of MODTRAN calculation program is added and the results of calculation are visualized. Therefore, the Chinese graphic interface for MODTRAN was designed for the users in China.

     

/

返回文章
返回