李旭分享 http://blog.sciencenet.cn/u/lixujeremy 代码与散打爱好者!

博文

WGRIB的命令参数

已有 9869 次阅读 2014-4-10 01:32 |个人分类:IPCC/DDC|系统分类:科研笔记|关键词:学者| wgrib

查看WGRIB命令参数的步骤:

1.      设置环境变量(EnvironmentVaraiables

右击我的电脑——高级系统设置——环境变量——在系统变量里有path选项——双击打开——在原有变量的基础上添加英文状态下的分号——然后将路径名(WGRIB路径)输入即可。(切记,不要删除原先的系统变量,只要用分号隔开,然后添加,最后也要加上分号。)

如果不事先设置这个步骤,可能导致出现“'wgrib' is not recognized as an internal or external command,operable program or batch file.”的错误。

2.      打开CMD

开始——运行——输入“cmd”后回车,出现CMD窗口。

3.      显示WGRIB命令参数

CMD窗口输入“wgrib”,回车,结果如图 1,红框内即为WGRIB的命令参数。

1

WGRIB命令参数的说明

本部分参考网址:here,部分内容有修正,并添加新的命令参数。

1.      Inventory/diagnosticoutput selections 详细目录或诊断的输出选择

-s                 short inventory 简短目录

-v                 verbose inventory 详细目录

-V                 diagnostic output <notinventory> 诊断输出

<none>        regular inventory 一般目录

实例:>wgrib F:StudyAreaStudyDATA情景数据温度A11_1PTO4X_R1_MM_TEMP2_1-1320.grb–v>F:StudyAreaStudyDATA情景数据温度a.txt

l  Options 相关选项

-PDS/-PDS10      print PDS in hex/decimal 十六进制或十进制输出PDS

-GDS/-GDS10      printGDS in hex/decimal 十六进制或十进制输出GDS

-verf               print forecast verification time 输出预测验证时间

-ncep_opn/-ncep_rean       default T62 NCEP grib table 默认的T62/NCEPGRIB数据表

-4yr               print year using 4 digits 输出4位有效数字的年份

-min              print minutes 输出度

-ncep_ens         ensemble info encoded in ncep formatNCEP格式编码的总体信息

实例:>wgrib F:StudyAreaStudyDATA情景数据温度A11_1PTO4X_R1_MM_TEMP2_1-1320.grb–4yr>F:StudyAreaStudyDATA情景数据温度a.txt

2.      Decoding GRIB selection GRIB格式解码选项

-d [recordnumber|all]       decode record number按编号输出数据

-p [byteposition]           decode record at byte position按二进制位置输出数据

-i                         decode controlled bystdin <inventory list>按输入流控制编码,一般转化Grib文件都要加

<none>                    no decoding 不输出

实例:>wgrib F:StudyAreaStudyDATA情景数据温度A11_1PTO4X_R1_MM_TEMP2_1-1320.grb–d>F:StudyAreaStudyDATA情景数据温度a.txt

l  Options 相关选项

-text/-ieee/-grib/-bin        conver to text/ieee/grib/bin 转化格式控制

-nh/-h                     output will have noheaders/headers 是否包含标题头

-H                         output will includePDS and GDS -bin/-ieee only输出是否包含PDSGDS

-append                   append to output file 在输出文件上添加而不是替换

-o [file]                    output file name, ‘dump’ isdefault 输出文件名

WGRIB.rar




https://m.sciencenet.cn/blog-1148346-783485.html

上一篇:“中国气象科学数据服务网”数据下载一般说明
下一篇:MODIS简介

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-16 02:40

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部