第四节-输入输出.pdfVIP

  • 37
  • 0
  • 约1.59万字
  • 约 26页
  • 2017-06-03 发布于湖北
  • 举报
第一章 前言及简介 第二章 NCL变量及基本语法 第三章 数据处理 第四章 文件输入输出 第五章 绘图 I/O 格式 • 支持的格式 [ 不需知道文件的结构] − netCDF-3/4 [network Common Data Form] − HDF4/H5 [Hierarchical Data Format (Scientific Data Set only) ] − HDF-EOS [Earth Observing System; HDF4 and HDF5] − GRIB-1/2 [Grid in Binary; WMO standard; NCEP, ECMWF] − CCMHT [CCM History Tape; COS blocked only; ccm2nc] − Shapefile [ESRI: geospatial vector data format GIS] − 6.1.0  near complete netCDF4, HDF5 • Binary − sequential [F: open(_,form=unformatted, access=sequential)] − flat/direct [F: open(_,form=unformatted,access=direct,recl=_)] [C: write] • ASCII − 行列形式排列的数据 − ‘complicated’ ascii 格式: 用NCL string ( ‘str_*’) functions − fortran or C to read; call from NCL ncl_filedump /Document/Tools/ncl_filedump.shtml • ncl_filedump [-c] [-v var1[,…]] [–h] file_name − 配合options使用的命令 − 对任何支持的数据内容可提供文字的描述信息 − 其作用类似于Unidata’s ncdump -h − file_name 在命令行中必须有一个后缀 − .nc .grb .hdf .hdfeos .he5 .h5 .ccm .shp − 后缀仅起着识别作用, 其他情况下不必如此 • ncl_filedump file_name.[grb/nc/hdf/hdfeos] - 结果可输出至文件中或通过Unix 的重定向/通道 ncl_filedump foo.grb foo.txt [传至文档] ncl_filedump foo.hdf | less [传至屏幕] ncl_convert2nc /Document/Tools/  ncl_convert2nc gribFile(s) OPTIONS 命令 将GRIB/HDF/SHAPE 文档转换至netCDF 输出的文档名和出入一致,当以.nc为后缀名  ncl_convert2nc –h 提供使用的选项信息  ncl_convert2nc foo.grb 生成foo.nc  ncl_convert2nc foo.hdf –L –nc4c –cl 1 -L (文件 2GB); -nc4c (netCDF4); -cl 1 (compression lvl 1) setfileoption /Document/Functions/Built_in/setfileoption.shtml  可以指定“文件-格式-specific”的选项  netCDF, GRIB 和Binary options [ 目前支持] 比如 写入netCDF setfileoption

文档评论(0)

1亿VIP精品文档

相关文档