摘要
为将多变量、多垂直层次和多时间层次的Micaps格点数据文件转换为GrADS格式文件,应用面向对象程序设计中类的封装性、继承性和多态性原理,根据Micaps格式的4类和11类格点数据文件的存储特征和GrADS二进制文件写入数据规则,并考虑到在不同数据环境和用户需求下对Micaps数据文件的选取存在多样性,将繁琐的转换步骤合理分解,利用Delphi设计了一组具有继承关系的类,在Windows下编程实现了数据转换功能。程序可提供对Micaps数据文件的多样化选择,并可自动生成CTL文件,操作简便、界面友好、运行可靠,其功能易于维护和扩充。
In order to transform Micaps Grid files which including a number of variables, vertical levels and temporal levels into GRADS Files, according to storage rules of the fourth and eleventh kind Micaps Grid file and GRADS binary file, applying Object-Oriented Programming principles such as class encapsulation, inheritance and polymorphism, this paper designs a set of classes which have inheritance relations to implement data transformation. Decomposing various procedures of data transformation reasonably, a program designed using the set of classes can accomplish the diverse selection of Micaps Grid files under different user's needs and creates the GRADS CTL file automatically. Having a friendly interface, the program runs under Windows system reliably and simply. It's function can maintain and expand easily.
出处
《成都信息工程学院学报》
2012年第5期490-494,共5页
Journal of Chengdu University of Information Technology
基金
昆明市科技局(昆科计字08S080002号)对本文的资助