Re: contours and Z device [message #12209] |
Wed, 08 July 1998 00:00 |
Vap User
Messages: 31 Registered: April 1998
|
Member |
|
|
rbianconi@my-dejanews.com writes:
I haven't tried the program, but isn't contour,/fill broken in IDL 5.0.[0,1,2] ?
>
> Hello, this little program attached works (under NT and Linux) with IDL
> 4.0.1, but not with IDL 5.0.2. It seems that when you are using the Z device
> and you ask the routine to plot a contour above the maximum value of your
> data, then an error occours in version 5.0.2. Instead, it works fine with
> vesion 4.0.1. Any comment ?
>
> Obviously I don't expect to see any contour from that! *smile*
>
> Ciao,
> Roberto
> _________________
> pro procont
>
> nx=10
> ny=10
>
> zzm=dblarr(nx,ny)
> xx=indgen(nx) & yy=indgen(ny)
>
> zzm(*,*)=0.d0
> zzm(5,5)= 1.d0
>
> set_plot,'win'
> contour,zzm,xx,yy,/fill,levels=2
>
> set_plot,'z'
> contour,zzm,xx,yy,/fill,levels=2
> device, /close
> end
>
>
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
--
I don't speak for JPL, it doesn't speak for me.
Well, not all the time, at least.
William Daffer <vapuser@haifung.jpl.nasa.gov>
|
|
|
Re: contours and Z device [message #12216 is a reply to message #12209] |
Tue, 07 July 1998 00:00  |
rbianconi
Messages: 3 Registered: July 1998
|
Junior Member |
|
|
Sorry, the prev msg of mine was not complete. Here another problem I
got porting some code from 4.0 to 5.0. The 0 deg longitude label is
not printed in vers 5, while in 4 is. It seems that you can't plot
labels outside the map limits.
Ciao,
Roberto
________________________
pro geoprov
set_plot, 'X'
limits=[40,0,65,40]
!p.charsize=1
map_set,/cylindric,/noborder,title='',charsize=9.$
,limit=limits,xmargin=0.3,ymargin=0.3
map_continents
map_continents,/countries
map_continents,/coasts
map_grid,glinethick=2, $
lonlab=40,latlab=36, $
latalign = 1.0, $
lonalign = 1.0, $
color=255, /label, charsize=1
end
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|
Re: contours and Z device [message #12217 is a reply to message #12216] |
Tue, 07 July 1998 00:00  |
rbianconi
Messages: 3 Registered: July 1998
|
Junior Member |
|
|
In article <6nq53q$jjf$1@nnrp1.dejanews.com>,
dlhopols@knmi.nl wrote:
>
> Hi,
>
> Roberto wrote:
>
>> Hello, this little program attached works (under NT and Linux) with IDL
>> 4.0.1, but not with IDL 5.0.2. It seems that when you are using the Z device
>> and you ask the routine to plot a contour above the maximum value of your
>> data, then an error occours in version 5.0.2. Instead, it works fine with
>> vesion 4.0.1. Any comment ?
>
> There seems to be some trouble. I tried this program on SGI, IDL version 5.0
> and after changing 'win' to 'X', I get an error on the contour call (here line
> 19) after set_plot 'z'.
>
> ---program--(spaces removed) -------------------
> pro procont
> nx=10
> ny=10
> zzm=dblarr(nx,ny)
> xx=indgen(nx) & yy=indgen(ny)
> zzm(*,*)=0.d0
> zzm(5,5)= 1.d0
> set_plot,'X'
> contour,zzm,xx,yy,/fill,levels=2
> set_plot,'z'
> help,zzm,xx,yy
> contour,zzm,xx,yy,/fill,levels=2
> device, /close
> end
> ---Result -----------------------------
> %Compiled module: PROCONT.
> IDL> procont
> ZZM DOUBLE = Array[10, 10]
> XX INT = Array[10]
> YY INT = Array[10]
> % Array dimensions must be greater than 0.
> % Execution halted at: PROCONT 19 rbianc.pro
> % $MAIN$
>
> Maybe this will help track down the problem?
> Rose
>
Thanks Rose,
I get the same message both under Linux and WIN NT.
Here another problem I got porting some code from 4.0 to 5.0.
Ciao,
Roberto
________________________
pro geoprov
set_plot, 'X'
limits=[40,0,65,40]
!p.charsize=1
map_set,/cylindric,/noborder,title='',charsize=9.$
,limit=limits,xmargin=0.3,ymargin=0.3
map_continents
map_continents,/countries
map_continents,/coasts
map_grid,glinethick=2, $
lonlab=40,latlab=36, $
latalign = 1.0, $
lonalign = 1.0, $
color=255, /label, charsize=1
end
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|
Re: contours and Z device [message #12221 is a reply to message #12216] |
Mon, 06 July 1998 00:00  |
dlhopols
Messages: 10 Registered: April 1998
|
Junior Member |
|
|
Hi,
Roberto wrote:
> Hello, this little program attached works (under NT and Linux) with IDL
> 4.0.1, but not with IDL 5.0.2. It seems that when you are using the Z device
> and you ask the routine to plot a contour above the maximum value of your
> data, then an error occours in version 5.0.2. Instead, it works fine with
> vesion 4.0.1. Any comment ?
There seems to be some trouble. I tried this program on SGI, IDL version 5.0
and after changing 'win' to 'X', I get an error on the contour call (here line
19) after set_plot 'z'.
---program--(spaces removed) -------------------
pro procont
nx=10
ny=10
zzm=dblarr(nx,ny)
xx=indgen(nx) & yy=indgen(ny)
zzm(*,*)=0.d0
zzm(5,5)= 1.d0
set_plot,'X'
contour,zzm,xx,yy,/fill,levels=2
set_plot,'z'
help,zzm,xx,yy
contour,zzm,xx,yy,/fill,levels=2
device, /close
end
---Result -----------------------------
%Compiled module: PROCONT.
IDL> procont
ZZM DOUBLE = Array[10, 10]
XX INT = Array[10]
YY INT = Array[10]
% Array dimensions must be greater than 0.
% Execution halted at: PROCONT 19 rbianc.pro
% $MAIN$
Maybe this will help track down the problem?
Rose
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|
Re: contours and Z device [message #12224 is a reply to message #12221] |
Fri, 03 July 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
rbianconi@my-dejanews.com (rbianconi@my-dejanews.com) writes:
> Hello, this little program attached works (under NT and Linux) with IDL
> 4.0.1, but not with IDL 5.0.2. It seems that when you are using the Z device
> and you ask the routine to plot a contour above the maximum value of your
> data, then an error occours in version 5.0.2. Instead, it works fine with
> vesion 4.0.1. Any comment ?
I get no error from this program in IDL 5.1 on Windows NT 4.0.
David
--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|