实现Data Compression所必须的安装包只有四个
另:非必装:curl 7.18.0 or later (for DAP remote access client support)
注意 :
注意 :
可以通过 nc-config --all 查看所安装的netcdf的状态
Part A:文档查阅
1、 Netcdf Official Site
2、 Netcdf Download Site
3、 Netcdf Documentation
4、 2011 Unidata NetCDF Workshop
5、 2012 Unidata NetCDF Workshop
6、 NetCDF Fortran 90 Interface Guide
7、 WELCOME to the HDF5 Home Page
Part B:安装参考
1、 Getting and Building netCDF
2、 在CentOS上安装netCDF4流程
3、 Linux下用Intel编译器编译安装NetCDF-Fortan库(4.2以后版本)
4、 netcdf安装 、zlib 、szip、hdf5、mpich2、curl系列软件安装
1:在网上找到各种版本的安装包(下面有附件)2:解压,然后打开解压后的文件夹 在这个目录下面打开终端
3:./configure --prefix=/home/t../software(这个路径就是你想把你的netcdf安装的位置)
4:sudo apt install netcdf-bin
5:输入密码
6:测试 在终端输入ncdump
ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-k] [-x] [-s] [-t|-i] [-g ...] [-w] file
[-c] Coordinate variable data and header information
[-h] Header information only, no data
[-v var1[,...]] Data for variable(s) <var1>,... only
[-b [c|f]] Brief annotations for C or Fortran indices in data
[-f [c|f]] Full annotations for C or Fortran indices in data
[-l len] Line length maximum in data section (default 80)
[-n name]Name for netCDF (default derived from file name)
[-p n[,n]] Display floating-point values with less precision
[-k] Output kind of netCDF file
[-s] Output special (virtual) attributes
[-t] Output time data as date-time strings
[-i] Output time data as date-time strings with ISO-8601 'T' separator
[-g grp1[,...]] Data and metadata for group(s) <grp1>,... only
[-w] With client-side caching of variables for DAP URLs
[-x] Output XML (NcML) instead of CDL
file Name of netCDF file (or URL if DAP access enabled)
netcdf library version 4.4.0 of Mar 29 2016 11:41:40 $
出现下列就说明成功了
fortran 用 gfortran和f90/f95,这些都有rpm或deb安装包但推荐使用pgf90或intel fortran,都有破解(前者)和免费(后者)可用
netcdf到官网下载后,三步安装:
configure --prefix=/path_to_install/
make
make install
path_to_install是你的安装路径,比如 /usr/local/netcdf (此路径需要获取root权限)
然后在$HOME/.bashrc下设置环境变量(以路径/usr/local/netcdf 为例):
export PATH=$PATH:/usr/local/netcdf/bin
export NETCDF=/usr/local/netcdf
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)