Re: Opacity in contour plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 23 2012 - 10:59:01 MDT

Imran,

I ran your script using NCL V6.1.0 (not 6.1.0-beta), and didn't get any ARSCAM/ARPRAM error messages. Rick fixed some other bugs that may have been related to this one, but they didn't get in until after the 6.1.0-beta release. They will be in the 6.1.0 release.

The reason you are getting two labelbars is because you are setting this resource:

  res@pmLabelBarDisplayMode = "Always" ; Turn on a label bar.

That resource overrides the lbLabelBarOn resource. The above resource is True by default, but if you explicitly set it, then NCL assumes you want to turn the lablebar on, regardless of what lbLabelBarOn is set to.

To clean up your labelbar, I suggest:

  res@lbLabelBarOn = False ; Turn off labelbar
  res@lbPerimOn = False ; Turn off label bar perim.
  res@lbAutoManage = False
  res@pmLabelBarSide = "Bottom"
  res@lbOrientation = "Horizontal"

Note I set lbPerimOn to False so that box won't be drawn around the labelbar.

--Mary

On Oct 19, 2012, at 3:17 AM, imran nadeem wrote:

> Dear NCL-developers,
>
> I confirm the problem is coming from very "twisty" contours
> drawn in a small area. I tried to enlarge my plots, but still getting
> ARSCAM/ARPRAM error.
> For me the best solution is that cnFillOpacityF works for RasterFill
> or CellFilll because ARSCAM/ARPRAM error doesn't occur for these
> contour fill types.
> In separate email, I sent data + script to Mary for possible fix.
>
> Regards
> Nadeem
>
>
> On Wed, Oct 17, 2012 at 4:35 PM, Mary Haley <haley@ucar.edu> wrote:
>> Hi Nadeem,
>>
>> We are trying to fix the contouring code so that users don't run into the ARSCAM/ARPRAM error.
>> Do you still get an image, by any chance? Sometimes you just get a plot with no data in it.
>>
>> To help make this error go away, sometimes making the plot slightly larger will help. The error
>> shows up sometimes when you have very "twisty" contours that are being drawn in a small area.
>> If you make the plot slightly larger, this can help. We see this error more when people are
>> panelling plots. Is that what you're doing here?
>>
>> If so, and if I can see a sample image, then I might be able to suggest ways to make the plots larger.
>>
>> Even better, if you can provide me with your data and your script, then I can try to reproduce the
>> problem here and see if there's an easy fix. You can ftp your script and data . See:
>>
>> http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP
>>
>> Hopefully Rick or Dave will address your question about cnFillOpacityF not working with
>> RasterFill or CellFill.
>>
>> --Mary
>>
>>
>>
>> On Oct 17, 2012, at 7:32 AM, imran nadeem wrote:
>>
>>> Dear All,
>>> I am using NCL verion 6.1.0-beta to make partially transparent
>>> contour plots. For me, the resource "cnFillOpacityF" works only with
>>> cnFillMode = "AreaFill". It doesn't have any effect on RasterFill or
>>> CellFill.
>>> This is problem for me because "AreaFill" is producing the following message.
>>>
>>> fatal:ContourPlotDraw: ARSCAM/ARPRAM - ALGORITHM FAILURE
>>> fatal:ContourPlotDraw: draw error
>>> warning:WorkstationDeactivate: workstation not active or not opened
>>>
>>> I can avoid this message by setting cnFillMode to RasterFill but then
>>> I cannot use transparency through cnFillOpacityF.
>>>
>>> Any suggestion to solve this problem
>>> Thanks in advance.
>>>
>>> Regards
>>> Nadeem
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 23 10:59:11 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 23 2012 - 11:10:04 MDT