爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4383|回复: 7

如何将CRU CL v. 2.0版本 .dat数据写成.nc格式?

[复制链接]
发表于 2015-8-17 16:24:52 | 显示全部楼层 |阅读模式
GrADS
系统平台:
问题截图: -
问题概况: 请问各位谁有用过CRU CL v. 2.0 版本的数据啊,这个数据格式是.dat形式的,空间分辨率为10‘。如何将该数据转换成0.5°的nc格式啊?求高手指导啊。
我看过提问的智慧: 看过
自己思考时长(天): 5

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
密码修改失败请联系微信:mofangbao
发表于 2015-8-25 16:22:49 | 显示全部楼层
cdo -f nc import_binary xxx.ctl xxx.nc ,楼主应该仔细看看手册。
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2015-8-17 16:38:22 | 显示全部楼层
CRU有0.5的数据,为何不直接用?你现有的这个要插值,从10降到0.5,还能用吗?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-8-17 17:44:15 | 显示全部楼层
Figo 发表于 2015-8-17 16:38
CRU有0.5的数据,为何不直接用?你现有的这个要插值,从10降到0.5,还能用吗?

我需要风速和相对湿度这两个变量,其他版本的好像没有这两个变量啊。
密码修改失败请联系微信:mofangbao
发表于 2015-8-17 18:03:21 | 显示全部楼层
lixia851 发表于 2015-8-17 17:44
我需要风速和相对湿度这两个变量,其他版本的好像没有这两个变量啊。

用cdo可以转,你查查相关帖子
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-8-17 18:06:20 | 显示全部楼层
Figo 发表于 2015-8-17 18:03
用cdo可以转,你查查相关帖子

好的,我查查看。谢谢您哈。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-8-25 09:18:19 | 显示全部楼层
你好,你以前用过CRU CL v. 2.0的数据吗?我试着用cdo -f nc import_binary ifile.dat ofile.cn 命令转的时候老是出现错误。我的数据格式是这样的。
latitutde, longitude, 12 monthly values (Jan to December)
lat and lon are in degrees decimal
format='(2f9.3,12f7.1)'
Example (first line of tmp file):
  -59.083  -26.583    0.2    0.3    0.2   -1.9   -6.0   -9.8  -13.6   -9.2   -8.1   -5.3   -2.3   -1.1

运行的时候出现这样的错误
Open Error:  Unknown keyword in description file
  --> The invalid description file record is:
  --> 0.083    6.583   86.3   83.9   83.5   84.0   86.4   85.6   85.9   87.4   89.0   90.0   88.7   87.9
  The data file was not opened.

能向你请教一下这是什么原因吗?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-8-25 09:19:21 | 显示全部楼层
Figo 发表于 2015-8-17 18:03
用cdo可以转,你查查相关帖子

你好,你以前用过CRU CL v. 2.0的数据吗?我试着用cdo -f nc import_binary ifile.dat ofile.cn 命令转的时候老是出现错误。我的数据格式是这样的。
latitutde, longitude, 12 monthly values (Jan to December)
lat and lon are in degrees decimal
format='(2f9.3,12f7.1)'
Example (first line of tmp file):
  -59.083  -26.583    0.2    0.3    0.2   -1.9   -6.0   -9.8  -13.6   -9.2   -8.1   -5.3   -2.3   -1.1

运行的时候出现这样的错误
Open Error:  Unknown keyword in description file
  --> The invalid description file record is:
  --> 0.083    6.583   86.3   83.9   83.5   84.0   86.4   85.6   85.9   87.4   89.0   90.0   88.7   87.9
  The data file was not opened.

能向你请教一下这是什么原因吗?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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