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
|