On Thursday, January 23, 2014 1:36:39 PM UTC+1, David Fanning wrote:
> jkobori19@gmail.com writes:
>
>
>
>>
>
>> On Thursday, January 23, 2014 1:09:25 PM UTC+1, Matthew Argall wrote:
>
>>>> What I would like to do is to ignore this zeros when creating the contour plot with cgcontour,
>
>>>
>
>>>
>
>>>
>
>>> Have you tried the MISSINGVALUE keyword to cgContour?
>
>>
>
>> Hi,
>
>>
>
>> it gives an error: CONTOUR: Invalid value specified for keyword LEVELS: No finite elements.
>
>
>
> That seems odd. I presume you have downloaded and are using the latest
>
> version of the Coyote Library?
>
>
>
> http://www.idlcoyote.com/code_tips/fixcoyoteprogram.php
>
>
>
> Can I see the way you are calling the program?
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Hi David,
the code (without missingvalue):
TRIANGULATE, theta0i, thetaobsi, tr, b
mx=TRIGRID(theta0i, thetaobsi, ydi, tr, nx=res, ny=res, $
xgrid=xo, ygrid=yo, max_value=25)
levels=50
step = (Max(mx) - Min(mx)) / levels
userLevels = IndGen(levels) * step + Min(mx)
cgcontour, mx, xo, yo, /fill, xstyle=3, ystyle=3, $
levels=userLevels, xrange=[0.07,0.44], yrange=[0.04,0.45], $
xtitle="Jet half opening angle [rad]", $
ytitle="Observer half angle [rad]", $
Position=[0.1, 0.1, 0.83, 0.95], $
charthick=2, charsize=1.5, thick=3
cgColorbar, range=[12, 25], title="AB magnitude", $
/reverse, /vertical, /fit, $
divisions=7, charthick=2, charsize=1.5
|