爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
123
返回列表 发新帖
楼主: tiantianyixin

[作图] NCL批量读取NC数据

[复制链接]
发表于 2017-5-3 11:38:27 | 显示全部楼层
dataiyang 发表于 2013-11-4 19:15
files = systemfunc("ls /目录/clmrun.clm2.h0.*.nc")
f = addfiles(files,"r")
ListSetType (f,"join")
...

想问下  要如何调用list呢?
密码修改失败请联系微信:mofangbao
发表于 2018-3-30 11:45:26 | 显示全部楼层
Aggregating variable precip from file list variable f as specified would exceed maximum NCL variable size
这个怎么办?
fils = systemfunc("cd "+path+"; ls precip.*.nc ")
f=addfiles(fils,"r")
ListSetType(f,"cat")
T= f[:]->precip
printVarSummary(T)
密码修改失败请联系微信:mofangbao
发表于 2018-9-17 10:29:00 | 显示全部楼层
你好 我也遇到了同样的问题 请问你解决了吗?
密码修改失败请联系微信:mofangbao
发表于 2019-2-25 19:23:14 | 显示全部楼层
一水天下 发表于 2013-12-3 09:37
我用systemfunc后出现错误:sh: /cygdrive/f/monthly/air.mon.mean.nc: cannot execute binary file,请 ...

我也出现了这个错误,请问一下这个有解决吗?
密码修改失败请联系微信:mofangbao
发表于 2019-3-10 14:43:12 | 显示全部楼层
zyh1314 发表于 2018-3-30 11:45
Aggregating variable precip from file list variable f as specified would exceed maximum NCL variable ...

我也出现了相同的错误,请问亲,你解决了吗
密码修改失败请联系微信:mofangbao
发表于 2019-4-2 19:08:17 | 显示全部楼层
阿吉木柯 发表于 2014-3-10 17:18
不好意思打扰了,我解决问题了。

ls后面没有空格。囧.

你好,我想问一下为什么我输入了以后显示sh: ls/cygdrive/e/shuju/qiya/*.nc: No such file or directory
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-12-12 13:26:39 | 显示全部楼层
tiantianyixin 发表于 2013-11-4 19:15
那比如说读入了10个数据,怎么把这10个数据存放进一个变量呢?

请问您知道怎么存放了吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-12-18 11:03:23 | 显示全部楼层
andrewsoong 发表于 2013-11-4 19:05
这个很简单了~~~~
files = systemfunc("ls /目录/clmrun.clm2.h0.*.nc")
f = addfiles(files,"r")

ncl 6> files = systemfunc("ls " + "/home/data/" + "auxhist3_d02_2017-04-*-00-00")
fatal:Number of dimensions on right hand side do not match number of dimension in left hand side
请问为啥读取超过一个文件就报这个错呢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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