- 积分
- 38928
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-5-13
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 一大碗年糕 于 2022-12-12 22:32 编辑
晚上提取wrfout的一个变量的时候突然遇到报错,困扰了好久,restart内核之后相同代码现在又突然自己好了,奇怪了先记录下,不知道有没有人碰到过类似的问题?
Output exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-7-a82cf04319b8> in <module>
34 for t in np.arange(xr.open_dataset(fname).Time.values.shape[0]):
35 wrfout = xr.open_dataset(fname).sel(Time=t)
---> 36 qu, qv, wrf_ivt = calculate_ivt(wrfout)
37 ivt4km_l[idx] = wrf_ivt
38 qu4km_l[idx] = qu
<ipython-input-4-e4ed2ada174a> in calculate_ivt(data)
59 vwind = data.V
60 # full pressure in hpa (base state pressure + perturbation pressure)
---> 61 pressure = (data.P +data.PB ) / 100 主要是这个P提取的问题导致
62 qvapor = data.QVAPOR # + data.QCLOUD to include cloud water
63
~/miniconda3/envs/python3.8/lib/python3.8/site-packages/xarray/core/_typed_ops.py in __add__(self, other)
204
205 def __add__(self, other):
--> 206 return self._binary_op(other, operator.add)
207
208 def __sub__(self, other):
~/miniconda3/envs/python3.8/lib/python3.8/site-packages/xarray/core/dataarray.py in _binary_op(self, other, f, reflexive)
3086
...
src/netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Variable._get()
src/netCDF4/_netCDF4.pyx in netCDF4._netCDF4._ensure_nc_success()
RuntimeError: NetCDF: HDF error
|
|