首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > ncw-c

ncw-c

  • 资源大小:3.44 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: fortran Wrapper netcdf ncw

资 源 简 介

A program can make thousands of calls to NetCDF functions, and it can be very frustrating to get a generic run-time error message about NetCDF stuff and being unable to identify what exactly went wrong. It is also frustrating to handle each possible error in the code. For this reason, in 95+% of my calls to NetCDF functions I use wrappers. They save a lot of time, first during development, and then during tracking run-time errors, and also make the code more readable. ncw provides C and Fortran wrappers to NetCDF functions, mainly for getting sensible error messages (that include the data file name). The main idea is to exclude checks inside your program code, making it shorter and more readable. The scheme is very simple. To call a wrapper for a given NetCDF function you 1. replace nc_ with ncw_ (or nf_ with nfw_ in the case of using Fortran), and 1. add the file name as the first argument. For exa

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.215273s