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的文件内容 - 编译安装的更多相关文章

  1. 编译安装带ssl 模块指定版本Python

      出现这个或者fatal error: openssl/名单.h: No such file or directory.都是没有安装libssl-dev- libssl-dev包含libraries ...

  2. blfs(systemd版本)学习笔记-编译安装配置dhcpcd

    我的邮箱地址:zytrenren@163.com欢迎大家交流学习纠错! dhcpcd项目地址:http://www.linuxfromscratch.org/blfs/view/stable-syst ...

  3. blfs(systemv版本)学习笔记-编译安装配置dhcpcd

    我的邮箱地址:zytrenren@163.com欢迎大家交流学习纠错! dhcpcd项目地址:http://www.linuxfromscratch.org/blfs/view/8.3/basicne ...

  4. ansible配合shell脚本批量编译安装python3.6.6

    [root@node1:/etc]# tree /etc/ansible/ /etc/ansible/ ├── ansible.cfg ├── hosts ├── python.yml └── rol ...

  5. 在centos6中编译安装httpd-2.4/搭建LAMP

    首先确保centos6安装平台安装一下环境: #yum groupinstall "Development  Tools" "Server Platform Develo ...

  6. Nginx实践01-ngnix编译安装-测试

    1.下载nginx安装包 下载地址:http://nginx.org/en/download.html(里面有nginx各个版本) 解压到指定目录: 解压出来的目录简单介绍: src:软件的所有源代码 ...

  7. 编译安装 nginx php swoole

    安装之前先 准备环境 yum install gcc gcc-c++ automake pcre pcre-devel zlip zlib-devel openssl openssl-devel 然后 ...

  8. Debian下编译安装驱动模块

    在Linux下,我们常有需要自己来编译安装驱动模块的情况,例如要安装显卡驱动,要安装无线驱动,有的时候某个程序的安装使用与需要安装相应的驱动模块.Debian Linux下的生活本已十分简单,使用ap ...

  9. nginx源码编译安装(详解)

    nginx编译安装 安装步骤: 官网下载合适的版本,建议选择稳定版本. 官网地址:https://nginx.org wget https://nginx.org/download/nginx-1.2 ...

随机推荐

  1. BZOJ4294 : [PA2015]Fibonacci

    斐波那契数列模$10^m$的循环节为$6\times10^m$,于是从低位到高位dfs即可. #include<cstdio> #include<cstring> #defin ...

  2. Mybatis_mybatis常用jdbcType数据类型

    MyBatis 通过包含的jdbcType类型 BIT         FLOAT      CHAR           TIMESTAMP       OTHER       UNDEFINED ...

  3. asp.net 微信企业号办公系统-流程设计--流程步骤设置-策略设置

    策略设置包括当前步骤的流转方式,处理人员,退回策略等设置. 流转类型:当前步骤后面有多个步骤时,此类型选择可以决定后续步骤的发送方式. 1.系统控制:由系统根据您在线上设置的流转条件来判断该发送到哪一 ...

  4. Xampp 添加 SSL

    我的 XAMPP 没有找到这句话 ,直接添加 extension=php_openssl.dll  大概988行另外,需要配置 httpd-ssl.conf 文件(*\xampp\apache\con ...

  5. Asp.Net:GridView 编辑、删除、自定义分页以后备用

    页面 GridView 绑定:在中,有 <asp:BoundField/>和 <asp:TemplateField><ItemTemplate>嵌套服务器控件 &l ...

  6. [ PHP+jQuery ] ajax 多级联动菜单的应用:电商网站的用户地址选择功能 ( 二 ) - 仿亚马逊下拉面板

    /** jQuery version: 1.8.3 Author: 小dee Date: 2014.11.8 */ 接上一篇博客. 实现带缓存的仿亚马逊下拉面板 效果图: 图1 初始 图2 点击省份 ...

  7. maven中GroupID 和ArtifactID怎么写

    groupId :the unique identifier of the organization or group that created the project artifactId :uni ...

  8. eclipse SDK更新管理器安装插件

    1.在Eclipse的主菜单,点击help,选择Install New Software 2.Work with: Indigo - http://download.eclipse.org/relea ...

  9. C++的函数名重载

    #include <iostream> using namespace std; int func(int c) { cout<<"int func(int c)&q ...

  10. General Questions:Front-end Developer Interview Questions

    What did you learn yesterday/this week? Learning Angular. What excites or interests you about coding ...