[ncl-talk] problem with ShadeGeLeContour
debasish mazumder
debasish at ucar.edu
Thu Aug 21 16:00:38 MDT 2014
Hi Mary,
The problem related error is solved with updated version but Script is
not working properly.
opt at gsnShadeMid = 17
plot2 = gsn_csm_contour(wks,gsn_add_cyclic_point(cv), res2)
plot2 = gsn_contour_shade(plot2,-0.1,0.1 , opt)
istead of sheading the values between -0.1 and 0.1, It only shaded
negative values.
Any help will be appreciated.
with regards
-Deb
On 8/19/14 11:04 PM, Mary Haley wrote:
> Hi Debasish,
>
> No worries on posting to me directly. Usually with NCAR visitors and
> employees I don't ask this, so my apologies there. However, I like to
> see messages go back to ncl-talk if possible so other folks can
> benefit from the answer.
>
> From your script I was able to see what the problem was. It looks
> like the code that shades for the middle shading values is incorrectly
> assuming that you have 2 or more contour levels that fall in this range.
>
> This bug was inadvertently fixed in V6.2.1, in the process of
> enhancing the function for other purposes.
>
> You can try the fix on yellowstone/geyser by loading a *test* 6.2.1
> version via the "module" command:
>
> module swap intel gnu
> module load ncl/6.2.1
>
> Let me know if this doesn't fix your problem.
>
> Please be careful with this version because it is in heavy test mode
> and can get updated at any moment. We hope to release this version in
> the next 2 weeks.
>
> --Mary
>
>
>
> On Tue, Aug 19, 2014 at 1:06 PM, debasish mazumder <debasish at ucar.edu
> <mailto:debasish at ucar.edu>> wrote:
>
> Hi Mary,
>
> Sorry for directly email to you. I put my script and data in
> yellowstone (scratch). Here is the path:
> /glade/scratch/debasish/ShadedPlot/
> Please let me know if you have problem to open any files.
>
> I am using version 6.2.0.
>
> with regards
> -Debasish
>
>
>
>
> On 8/19/14 11:36 AM, Mary Haley wrote:
>> Debasish,
>>
>> Please respond back to ncl-talk with follow-up responses, if
>> possible.
>>
>> When you get an error like this, I need to see some code, or
>> better, get your full script and the data so I can run the
>> problem here. It also helps us to know which version of NCL you
>> are using.
>>
>> You can use our ftp to upload files if necessary:
>>
>> http://ncl.ucar.edu/report_bug.shtml#HowToFTP
>>
>> --Mary
>>
>>
>>
>> On Mon, Aug 18, 2014 at 10:42 PM, debasish mazumder
>> <debasish at ucar.edu <mailto:debasish at ucar.edu>> wrote:
>>
>> Hi Mary,
>> Thanks for your response. I have tried gsn_contour_shade but
>> I am getting following error message
>>
>> fatal:Subscript out of range, error in subscript #0
>> fatal:An error occurred reading ii
>> fatal:["Execute.c":8567]:Execute: Error occurred at or near
>> line 12388 in file
>> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>>
>> fatal:["Execute.c":8567]:Execute: Error occurred at or near
>> line 337 in file tas_max_WRFG-CFSR_1995-1999_new.ncl
>>
>> with regards
>> -Debasish
>>
>>
>>
>> On 8/17/14 10:35 PM, Mary Haley wrote:
>>> First, ShadeGeLeContour is deprecated, and you should be
>>> using gsn_contour_shade instead.
>>>
>>> When you use these routines, you need to be careful that the
>>> shading values you choose are in-line with the original
>>> contour levels.
>>>
>>> See:
>>>
>>> http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml
>>>
>>> See example "coneff_13.ncl" at:
>>>
>>> http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13
>>>
>>> --Mary
>>>
>>>
>>>
>>> On Fri, Aug 15, 2014 at 1:09 PM, debasish mazumder
>>> <debasish at ucar.edu <mailto:debasish at ucar.edu>> wrote:
>>>
>>> Hi All,
>>> I am trying to use "ShadeGeLeContour" to shade the
>>> values between -0.5
>>> and 0.5.
>>> plot2 = ShadeGeLeContour(plot2,-0.5,0.5 , 11)
>>> but it shades all the negative value instead of the
>>> values between -0.5
>>> and 0.5.
>>>
>>> with regards
>>> -Deb
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140821/f71516d7/attachment.html
More information about the ncl-talk
mailing list