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

Home » Public Forums » archive » cgContour and NaN values
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: cgContour and NaN values [message #86127 is a reply to message #86124] Wed, 09 October 2013 16:05 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
NaNs are handled a particular way by Contour:
http://www.exelisvis.com/docs/CONTOUR_Procedure.html

In particular, the line:
"Note that the IEEE floating-point value NaN is also treated as missing data."
might explain some of the problems you're having.

May I gently a different way of defining the "color table" using the palette keyword, since you're using Coyote graphics:

(My apologies for not adopting this example to fit yours - this is an example from some notes I've developed : https://www.dropbox.com/s/c8so8daw70tpe5v/contour_notes.pdf)

nLev = 5
l_levels = DINDGEN(5)*50 + 100
l_ticks = [STRING(l_levels, FORMAT='(F5.1)'), ' ']

colors = ['blue', 'red', 'green', 'yellow', 'orange']
rgb = cgCOLOR(colors, /TRIPLE)

cgContour, data, lons, lats, LEVELS = l_levels, PALETTE=rgb, /FILL, POSITION=[0.1, 0.1, 0.8, 0.9]

cgCOLORBAR, /VERTICAL, /RIGHT, NCOLORS = nLev, PALETTE = rgb, DIVISIONS = nLev, POSITION = [0.85, 0.1, 0.9, 0.9], TICKNAMES = l_ticks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scopes
Next Topic: Yet another user with poly_fit problems

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

Current Time: Wed Oct 08 19:32:00 PDT 2025

Total time taken to generate the page: 0.00599 seconds