Re: disappearing levels in CONTOUR [message #7415] |
Tue, 12 November 1996 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mewlissa Nischan <nischan@ll.mit.edu> writes:
> I am having a problem with IDL's contour function. The data that I'm
> contouring has latitude and longitude as its coordinates, and I
> overplot that onto a US map using the map_set function. The problem
> is: the data only covers a 5x10 deg square. when I use map_set with
> the lat. and long. limits set to show the whole country, the data
> contours fine (I'm using filled contours), but when I change the
> map_set limits to only plot the lat. and long. that my data covers, not
> all of the levels are being "filled in" with color.
Have you tried using the CELL_FILL keyword instead of the FILL keyword?
This seems to give me better performance when I zoom into my data
as you describe.
David
*************************************************
* David Fanning, Ph.D.
* 2642 Bradbury Court, Fort Collins, CO 80521
* Phone: 970-221-0438 Fax: 970-221-4762
* E-Mail: davidf@dfanning.com
*
* Sometimes I go about pitying myself, and all along my
* soul is being blown by great winds across the sky.
* -- Ojibway saying
************************************************
|
|
|
Re: disappearing levels in CONTOUR [message #7420 is a reply to message #7415] |
Tue, 12 November 1996 00:00  |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
> Hello, All
>
> I am having a problem with IDL's contour function. The data that I'm
> contouring has latitude and longitude as its coordinates, and I
> overplot that onto a US map using the map_set function. The problem
> is: the data only covers a 5x10 deg square. when I use map_set with
> the lat. and long. limits set to show the whole country, the data
> contours fine (I'm using filled contours), but when I change the
> map_set limits to only plot the lat. and long. that my data covers, not
> all of the levels are being "filled in" with color.
>
> I've tried stepping down the limits, and this does not happen until I am close
> to the limits of my data. I also tried "padding" the data on all sides with
> zeros, but that didn't help either. Does anyone know what's causing this?
> I'm fairly new to IDL, and don't know what else to try.
>
> Thanks,
> Melissa
> nischan@ll.mit.edu
Some sample code would help me understand your problem a little better, but
let me suggest using...
contour, data, x, y, /cell_fill,... (along with other keywords)
every time you need to color fill the contours!
|
|
|