爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: lxlxllx89

一款极其强大的气象软件——Climate Data Operators (CDO)

  [复制链接]

新浪微博达人勋

发表于 2013-12-30 12:19:03 | 显示全部楼层
楼主各位好!我想请教nc格式4维数据(经纬度)的提取问题,我不是气象专业的,尽管楼主的解答非常细致,但看了您和大家的讨论我还是很吃力!呵呵,请请教楼主能否写个关于“4维nc格式提取数据”具体的操作步骤(cdo 用到的提取数据命令),万分感谢!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 12:22:23 | 显示全部楼层
补充:我用到的是CMIP5模式数据,每个数据都比较大,达到4个多G了,4维如下:经度维、纬度维、时间维、高度维。好期待楼主的回复!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-30 13:49:48 | 显示全部楼层

提取的命令在手册32页,全部提取命令都有,并且每条命令都有例子,请认真阅读。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 16:06:17 | 显示全部楼层
本帖最后由 yangzi 于 2013-12-30 16:22 编辑
lxlxllx89 发表于 2013-12-30 13:49
提取的命令在手册32页,全部提取命令都有,并且每条命令都有例子,请认真阅读。

出现这样的错误:
C:\cdo-1.6.2-win32>cdo splitlevel ifile.nc t
Assertion failed: pxp->bf_offset <= offset && offset < pxp->bf_offset + (off_t)
pxp->bf_extent, file posixio.c, line 325

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
请帮忙看是什么问题呢?查看数据发现时间维上的数据只有1天,其它时间数据全都缺失。谢谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 16:23:57 | 显示全部楼层
lxlxllx89 发表于 2013-12-30 13:49
提取的命令在手册32页,全部提取命令都有,并且每条命令都有例子,请认真阅读。

C:\cdo-1.6.2-win32>cdo seldate,2005-12-31 ifile.nc c.nc
Assertion failed: offset >= 0, file posixio.c, line 414

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\cdo-1.6.2-win32>cdo selday,2000,ifile.nc c.nc

Error (cdo selday) : Too few streams specified! Operator needs 1 input and 1 out
put streams.

C:\cdo-1.6.2-win32>cdo selday,2000 ifile.nc c.nc
Assertion failed: offset >= 0, file posixio.c, line 414

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

还有类似的错误提示
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-30 16:51:14 | 显示全部楼层
yangzi 发表于 2013-12-30 16:23
C:\cdo-1.6.2-win32>cdo seldate,2005-12-31 ifile.nc c.nc
Assertion failed: offset >= 0, file posix ...

你先把你原始数据 ncdump -h的结果贴上来
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 16:57:30 | 显示全部楼层
楼主,我把数据发给你可以么,你给看下具体是用什么命令?谢谢,谢谢!

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 18:56:27 | 显示全部楼层
c:\11.bmp
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 20:33:07 | 显示全部楼层
lxlxllx89 发表于 2013-12-30 16:51
你先把你原始数据 ncdump -h的结果贴上来

大神,方便留个联系方式吗?这样交流太慢了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-30 21:49:23 | 显示全部楼层
楼主您好!让您见笑了,ncdump我不会用。我把我数据给您描述一下:
(1)数据文件名为:hur_day_BNU-ESM_historical_r1i1p1_19500101-20051231.nc
(2)数据有4个纬度(time、plev、lat、lon)
(3)变量为hur(相对湿度)
(4)数据类型:float
(5)数据大小:20440(天数time)×8(高度场plev)×64(纬度格数)×128(经度格数)。

数据要求:提取经纬度范围在70-105°E、20-50°N之间, 850pa高度场上的1950年1月1日-2005年12月31日的hur数据。最好转化后的结果为txt格式的!
希望您能帮我写个具体操作语句,多谢了!方便的话加我qq:120298209
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表