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

Home » Public Forums » archive » Problems with /cell_fill
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Problems with /cell_fill [message #3096] Wed, 02 November 1994 06:31
polcher is currently offline  polcher
Messages: 3
Registered: November 1994
Junior Member
Hi

I am plotting a data set which covers the globe (+-177, +- 79) with IDL using the option
/cell_fill. It works very well for global projections (Mercator, Mollweide, Cylindrical)
when Greenwhich is in the middle of the picture.

When I rotate the globe in order to have another longitude in the middle the eastern part of
the map shows a problem. The filled contours are replaced by horizontal lines, this does not
happen for isolines !!! It seems to me that IDL has problems joining the data between +180
-180, the "periodicity" is not properly done. (A simple example follows)

A similar problem appears with projection which do not show the entire globe
(Stereographic, Orthographic, ...). The filled contours extend beyond the borders of the
globe.

Is there an easy patch to this problem ?

Sorry if this problem has already been posted in this news group.

Thanks for any help

Jan

EXAMPLE:
--------
pro test, lon=sellon

iim=64
jjm=50

lon=fltarr(iim,jjm)
lat=fltarr(iim,jjm)

FOR i=0,iim-1 DO lat(i,*)=-(findgen(jjm)/(jjm-1)*180-90)
FOR i=0,jjm-1 DO lon(*,i)=findgen(iim)/(iim-1)*360-180

car=fltarr(iim,jjm)

car=sin(findgen(iim,jjm))

map_set,0,sellon,0, /cyl, grid=1, continents=1

loadct, 12
contour, car, lon, lat , nlevels=10, /cell_fill, /overplot

map_continents
end


When we do "test, lon=0" it works and for "test, lon=120" it fails.
Or if /cyl is replaced by /stere it fails also.




--
Jan Polcher TEL: -33-1-44322243
Laboratoire de Meteorologie Dynamique / E.N.S. FAX: -33-1-43368392
24, rue Lhomond
75231 PARIS cedex 05, FRANCE
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: VAX floats to IEEE (source code avail.)
Next Topic: Xfig driver for IDL ??????

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

Current Time: Fri Oct 10 09:09:43 PDT 2025

Total time taken to generate the page: 0.57469 seconds