首页 | 本学科首页   官方微博 | 高级检索  
     

NetCDF格式在Windows及Linux平台下的读写
引用本文:李继祥,于立,陈龙泉,姚仁太,郝宏伟,范丹,吕明华. NetCDF格式在Windows及Linux平台下的读写[J]. 安徽农业科学, 2014, 0(33): 11942-11945
作者姓名:李继祥  于立  陈龙泉  姚仁太  郝宏伟  范丹  吕明华
作者单位:1. 中国辐射防护研究院大气边界层风洞实验室,山西太原,030006
2. 太原卫星发射中心,山西太原030006;兰州大学大气科学学院,甘肃兰州730000
摘    要:
使用Linux平台的NetCDF3.6.1源代码程序包,利用hdf提供的Windows平台NetCDF的库,分别编写Windows平台和Linux平台下读写NetCDF的C语言程序及Fortran语言程序.在Windows平台只需要netcdf.dll、libcurl.dll、zlib1.dll和netcdf.lib这4个文件就可以用C和Fortran读写NetCDF格式文件,在Linux平台下只需要libnetcdf.a这1个文件就可以用C和Fortran读写,在不安装NetCDF软件包的情况下就可以使用,并且程序语言均很简单,读写起来很方便,还对比了Windows和Linux平台下C和Fortran的读写精度及速度.该研究对使用NetCDF格式数据的人员有指导和参考价值.

关 键 词:NetCDF格式  Windows平台  Linux平台  读写速度与精度

Read and Write NetCDF Format Files on Windows and Linux Platform
Affiliation:LI Ji-xiang,YU Li,CHEN Long-quan(Atmospheric Boundary Layer Wind Tunnel Laboratory of China Institute for Radiation Protection, Taiyuan, Shanxi 030006;Taiyuan Satellite Launch Center, Taiyuan, Shanxi 030006;College of Atmospheric Sciences,Lanzhou University, Lanzhou, Gansu 730000)
Abstract:
Based on the NetCDF3.6.1 source code package on Linux platform,with NetCDF library on Windows platform provided by HDF,we compiled programs to read and write NetCDF files in C language and Fortran language on Windows platform and Linux platform.On Windows platform we only need netcdf.dll,libcurl.dll,zlib1.dll and netcdf.lib to read and write netcdf format files in C and Fortran languages,and we only need libnetcdf.a file to do that on Linux platform,in the case of not installing NetCDF package and the program is very simple,it is convenient to read and write,at last we compared the Windows and Linux platforms read and write speed and accuracy of C and Fortran languages.This paper has certainguidance and reference value on the use of NetCDF format data.
Keywords:NetCDF format  Windows platform  Linux platform  Read and write speed and accuracy
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号