爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 13624|回复: 9

[经验总结] “ARSCAM/ARPRAM - ALGORITHM FAILURE”错误的解决

[复制链接]

新浪微博达人勋

发表于 2017-11-21 12:19:34 | 显示全部楼层 |阅读模式

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

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

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


点评

刚好需要: 5.0 谢谢共享: 5.0
刚好需要: 5 谢谢共享: 5
  发表于 2022-11-11 20:49

评分

参与人数 1金钱 +2 收起 理由
环境气象DDD + 2 很给力!

查看全部评分

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-10-13 21:25:56 | 显示全部楼层
seafairy 发表于 2020-7-29 12:43
加了这两句还是没解决,还有别的招吗?

我遇到了同样的问题,你可试试关闭res4@cnSmoothingOn=false
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 1

使用道具 举报

新浪微博达人勋

发表于 2018-6-21 19:57:22 | 显示全部楼层
这个问题好难解决 反正我是放弃了!附上NCL官网对这个问题的解释
网址:http://www.climate2weather.cn/NCL_ISO/FAQ/index.html#err_msgs_018

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.
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

发表于 2018-6-21 19:57:16 | 显示全部楼层
这个问题好难解决 反正我是放弃了!附上NCL官网对这个问题的解释
网址:http://www.climate2weather.cn/NCL_ISO/FAQ/index.html#err_msgs_018

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.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-8-28 15:31:32 | 显示全部楼层
感谢!终于出图了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-7-29 12:43:48 | 显示全部楼层
加了这两句还是没解决,还有别的招吗?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-5-3 11:29:21 | 显示全部楼层
如果数据精度过高,导致等值线密集、细小、弯弯曲曲等,就可能会出现该报错。
(e.g., 我用ERA5数据计算、绘画水汽输送散度,“疯狂”报错......)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-9-22 14:46:05 | 显示全部楼层
我也遇到了!解决了,谢谢楼主~
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2023-2-17 16:47:14 | 显示全部楼层
我扩大了画图的经度范围,解决了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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