comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » trigrid + triangulate -> zero values -> ignore zeros on cgcontour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: trigrid + triangulate -> zero values -> ignore zeros on cgcontour [message #87296 is a reply to message #87295] Thu, 23 January 2014 04:44 Go to previous messageGo to previous message
jkobori19 is currently offline  jkobori19
Messages: 8
Registered: January 2014
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I change from qwerty keyboard to azerty ?
Next Topic: How to obtain running averages for different time scales in IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:37:27 PDT 2025

Total time taken to generate the page: 0.47986 seconds