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

Home » Public Forums » archive » Overplot on eastern US
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
Overplot on eastern US [message #7458] Tue, 19 November 1996 00:00
Scott Applequist is currently offline  Scott Applequist
Messages: 4
Registered: November 1996
Junior Member
I'm trying to plot contours of some irregularly spaced data
on a map of the eastern US. The values themselves are not a
problem, getting the grid to /overplot on the map is. All of
the following plots a map with + marks at each city.
�
;draw map
map_set, 15, -87, 0, limit=[24,-115,49,-67], /cont, /usa, /merc

;input data
zt = fltarr(3,179)
openr, 2, 'idlin.dat'
readf, 2, zt, format='(3f10.2)'
close, 2
z = transpose(zt)
x = z(*,2) ; longitude
y = z(*,1) ; latitude
c = x + y ; example data

;plot individual marks for each city
oplot, x, y, psym=1

Now as suggested in the online help, I use SPH_SCAT to
perform the spherical gridding.

r= sph_scat(x, y, c, bounds=[-115., 24., -67., 49.],gs=[0.5,0.5])
�
Now I can contour the array r, or even make a surface plot of it,
but I cannot get it to lay on top of the previously drawn map.
I have a feeling that the array coordinates must be shifted, but
I don't see how.�1 I'm using IDL. Version 4.0.1 (vms alpha).
Thanks for any help.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl.el under Windows 95?
Next Topic: Re: Logical Unit mystery; clarification

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

Current Time: Wed Oct 08 19:12:38 PDT 2025

Total time taken to generate the page: 0.00701 seconds