nccmp - 比较netcdf的文件内容 - 编译安装
1. 简介
Compares two NetCDF files in-place to find specific variables, dimensions and/or attributes that differ. Highly recommended for any test-driven environment and regression testing large datasets.
2. 安装环境说明
天河二号,完整安装。
3. 相关软件下载
Hdf5: http://www.hdfgroup.org/HDF5/release/obtainsrc.html#conf
Netcdf-4.3.3: http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.3.3.1.tar.gz
Nccmp-1.8.2: http://prdownloads.sourceforge.net/nccmp/nccmp-1.8.2.0.tar.gz
4. 软件编译安装
4.1)编译安装-hdf5
./configure –prefix= /HOME/nsfc2015_567/NSFC/netcdf_comp_test/hdf5_install
Make –j12
Make install
4.2)编译安装-netcdf-4.3.3
4.2.1)首先设置hdf5相关变量(netcdf4.3所需)
HDF=/HOME/nsfc2015_567/NSFC/netcdf_comp_test/hdf5_install
export CFLAGS="-I$HDF/include "
export LDFLAGS="-L$HDF/lib "
4.2.2)编译安装netcdf-4.3.3
./configure prefix=HOME/nsfc2015_567/NSFC/netcdf_comp_test/netcdf_4.3.3_install
Make –j12
Make install
4.3)编译安装-nccmp
4.3.1)设置NC(netcdf相关目录)以及相关变量
NC=HOME/nsfc2015_567/NSFC/netcdf_comp_test/netcdf_4.3.3_install
export CFLAGS="-I$HDF/include -I$NC/include"
export LDFLAGS="-L$HDF/lib -L$NC/lib"
4.3.2)编译安装nccmp:
./configure –prefix=/HOME/nsfc2015_567/NSFC/netcdf_comp_test/nccmp_install –with-netcdf=/HOME/nsfc2015_567/NSFC/netcdf_comp_test/netcdf-4.3.3.1/
注:/HOME/nsfc2015_567/NSFC/netcdf_comp_test/netcdf-4.3.3.1/目录不是netcdf安装目录,而是源码包直接解压的目录。
Make –j12
Make install
4.4)设置环境变量
##~/.bashrc
export LD_LIBRARY_PATH=/HOME/nsfc2015_567/NSFC/netcdf_comp_test/netcdf_4..3_install/lib:$LD_LIBRARY_PATH
export PATH=/HOME/nsfc2015_567/NSFC/netcdf_comp_test/nccmp_install/bin:$PATH
5. 测试(海浪波软件exp1案例)
nccmp -dF -v hs -r 0.01 pac_ncep_wav_20090102.nc ./test/pac_ncep_wav_20090102.nc
部分参数说明:
-d:表示比较变量的value(值)
-F:表示与fortran相关
-t:表示absolute difference
-v:指定比较变量,多个变量用逗号分隔开,如 -v windy,windx
-f:不要比较一次就退出(比较出所有的差异值)
-n:多线程比较,可用于加速,如-n 4
其他功能,请参照nccmp --help.
nccmp - 比较netcdf的文件内容 - 编译安装的更多相关文章
- 编译安装带ssl 模块指定版本Python
出现这个或者fatal error: openssl/名单.h: No such file or directory.都是没有安装libssl-dev- libssl-dev包含libraries ...
- blfs(systemd版本)学习笔记-编译安装配置dhcpcd
我的邮箱地址:zytrenren@163.com欢迎大家交流学习纠错! dhcpcd项目地址:http://www.linuxfromscratch.org/blfs/view/stable-syst ...
- blfs(systemv版本)学习笔记-编译安装配置dhcpcd
我的邮箱地址:zytrenren@163.com欢迎大家交流学习纠错! dhcpcd项目地址:http://www.linuxfromscratch.org/blfs/view/8.3/basicne ...
- ansible配合shell脚本批量编译安装python3.6.6
[root@node1:/etc]# tree /etc/ansible/ /etc/ansible/ ├── ansible.cfg ├── hosts ├── python.yml └── rol ...
- 在centos6中编译安装httpd-2.4/搭建LAMP
首先确保centos6安装平台安装一下环境: #yum groupinstall "Development Tools" "Server Platform Develo ...
- Nginx实践01-ngnix编译安装-测试
1.下载nginx安装包 下载地址:http://nginx.org/en/download.html(里面有nginx各个版本) 解压到指定目录: 解压出来的目录简单介绍: src:软件的所有源代码 ...
- 编译安装 nginx php swoole
安装之前先 准备环境 yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel 然后 ...
- Debian下编译安装驱动模块
在Linux下,我们常有需要自己来编译安装驱动模块的情况,例如要安装显卡驱动,要安装无线驱动,有的时候某个程序的安装使用与需要安装相应的驱动模块.Debian Linux下的生活本已十分简单,使用ap ...
- nginx源码编译安装(详解)
nginx编译安装 安装步骤: 官网下载合适的版本,建议选择稳定版本. 官网地址:https://nginx.org wget https://nginx.org/download/nginx-1.2 ...
随机推荐
- ssh org.springframework.beans.TypeMismatchException
这个问题我搜了一上午都木有解决 后来找到一个英文网站 It seems that some other bean (one that is not shown) has a property of t ...
- 游戏 标签gui.label
using UnityEngine; using System.Collections; public class Gui : MonoBehaviour { public string str; p ...
- ios 适应屏幕
标准做法:auto layout 其中:也可以用代码判断 1.如果不是hardcode的话,又怎么会不兼容呢.. 2.如果你全写320*480也是兼容吗 3.写320嘛的就是hardcode啊. ...
- CCSpriteBatchNode的优化性能
当将大量精灵加载到CCLayer时,如果直接利用[self addChild:sprite]去加载,每加载一个精灵,都必须open,draw,close, 而利用 CCSpriteBatchNode去 ...
- Android使用AsyncTask实现可以断点续传的DownloadManager功能
http://www.it165.net/pro/html/201211/4210.html 最近做项目卡壳了,要做个Android的应用市场,其他方面都还好说,唯独这个下载管理算是给我难住了,究其原 ...
- [转] - QPixmap全局变量载入多张图片失效问题
我想qt 中QPixmap这个类大家都很熟悉,它可以很简单的在标签上贴图:例如: QPixmap p; p.load("1.png"): label->setPixmap(p ...
- Java集合之Map接口
Map使用键值对来存储数据,将键映射到值对象,一个映射不能包含重复的键,每一个键最多只能映射到一个值.Map接口的具体实现类:HashMap,Hashtable,TreeMap,LinkedHashM ...
- HDU 1698 线段树 区间更新求和
一开始这条链子全都是1 #include<stdio.h> #include<string.h> #include<algorithm> #include<m ...
- MongoDB数据备份与恢复
测试环境:windows 一. 导出数据F:\DbSoft\soft\master\bin>mongoexport /h 127.0.0.1 /port 50000 /d testdb /c t ...
- Ubuntu安装Tcpdump
参考:ubuntu下安装Tcpdump并使用 请先安装libpcap等,可以参照上文链接. 安装: 网址:http://www.tcpdump.org/ 解压: tar -zxvf tcpdump-4 ...