- 积分
- 6075
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在用NCL画阴影图,弹出了如下错误:
fatal:ContourPlotPreDraw: ARSCAM/ARPRAM - ALGORITHM FAILURE
fatal:ContourPlotDraw: draw error
warning:WorkstationDeactivate: workstation not active or not opened
后来在NCL的FAQ里查到了解决方法,如下
I'm getting an "ARSCAM/ARPRAM ALGORITHM FAILURE" error message.
This bug was fixed in version 5.2.1 for a large percentage of NCL scripts, but we occasionally see this bug creep up in newer versions of NCL in special cases. If you do run into it with a newer version of NCL, please keep reading for suggestions.
This bug is usually caused by a precision error in our low-level contouring algorithm. It seems to occur when you have very "twisty" contours in a small area, like in a panel plot. It is also more likely happen when you are drawing filled contours using the default "area fill" mode.
One thing you can try as a work-around is to fill the contours using "raster fill" mode instead:
res@cnFillMode = "RasterFill"
In addition, you can smooth the raster contours, making them closer in appearance to area-filled contours:
res@cnRasterSmoothingOn = True
Unfortunately, if you need "area fill", there's no instant fix for this. We found that if you tweak certain things, like the rotation of your plot (mpCenterLonF), the size of the plot (vpWidthF/vpHeightF), or the contour levels themselves, you might be able to get rid of this error message.
There's a more detailed and low-level description.
We are interested in hearing from folks who run into this problem and for whom the above suggestions don't help. You can help us debug the problem by sending email to the ncl-talk@ucar.edu list (you must subscribe first) and providing us with the smallest script possible that shows the problem and the data.
尝试着在脚本里增加了这两句,还真就不提示错误了。
res@cnFillMode = "RasterFill"
res@cnRasterSmoothingOn = True
|
评分
-
查看全部评分
|