| 
 
	积分15749贡献 精华在线时间 小时注册时间2015-3-8最后登录1970-1-1 
 | 
 
| 
本帖最后由 subtropical 于 2020-4-2 20:22 编辑
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 如题,读取站点画图,一共80行站点,但是读到第十四行画出来十四个站点的要素图后,出现下面这个问题,请问为什么,是内存不够吗?
 搜了很多还是不太明白哪有问题。
 主要的程序如下,中间画图的省略掉了,出来的14张图没有问题,很正常,请教大神
 import numpy as np
 import Ngl
 import Nio
 k=0
 while k<15:
 #读取站点经纬度并转为格点
 print(k)
 lonN=int((lon[k]-114.5)/0.025)+1
 latN=int((lat[k]-29)/0.025)+1
 y=f.variables['APCP_P8_L1_GLL0_acc3h'][:,latN,lonN]
 yt=ft.variables['TMP_P0_L103_GLL0'][:,latN,lonN]
 ......
 ......
 ......
 Ngl.draw(plot)
 Ngl.draw(plotline)
 Ngl.frame(wks)
 del(lonN,latN,y,yt)
 del(plot,plotline)
 del(tres,txlres,res,txres,gsres,barres)
 k+=1
 Ngl.end()
 报错:
 ...
 13
 14
 fatal:WorkstationInitialize: Limit reached for number of simultaneous GKS Workstations
 fatal:Unable to initialize layer-Can't Create
 fatal:_NhlCreate:Invalid Parent id #-4
 fatal:_NhlCreate:Invalid Parent id #-4
 fatal:PID #-4 can't be found in NhlSetValues
 fatal:NhlNDCPolygon:called with invalid object
 Segmentation fault (core dumped)
 
 
 | 
 |