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

Home » Public Forums » archive » PlotS won't show if in a script/program
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
PlotS won't show if in a script/program [message #56834] Tue, 20 November 2007 10:04
APound is currently offline  APound
Messages: 4
Registered: November 2007
Junior Member
I am very new at IDL Programming (actually only have a week or so
under my belt), I am not in any class, and I am learning it as I go,
pretty much. Many thanks already to all of you, the posts and other
tutorials online have helped tremendously.
As to my problem. I am trying to map a number of points in lon/lat
values onto a map projection. I have finally been able to figure out
how to do it at the command line. I can have it display in a window,
and also direct it to the ps device. My problem arises in trying to
automate the process by typing it into a script. I have tried
numerous ways to do this. Thankfully, I have learned how to load the
color tables and modify them how I would like, and then set up the
window in the resolution that I want. I can even map the continents
and load my variables, but the PlotS command won't plot to the screen.
It is:

PlotS, lons_all, lats_all, psym=4, symsize=1, color=230

or more correctly, it does plot to the window, but not inside of it
(as demonstrated by the following, slightly different code:

PlotS, lons_all, lats_all, symsize=1, color=230
With this, I get 4 or 5 red lines across the entire window.)
So, I know that the plots command is plotting the data, but it seems
that the coordinates are set up wrong, thus plotting the data points
out side of the window.

I am pretty sure that there is a simple answer to why this isn't
working... The funny thing to me is, that at the command line, the
same exact lines of code produce the perfect image that I want.

Thanks in advance for your help.

Cheers,
Andrew Pound
aepound@gmail.com

p.s. Any extra pointers on a great way to learn IDL better, (quiker,
easier) are very welcome. Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL code for DCAPE
Next Topic: Re: PlotS won't show if in a script/program

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

Current Time: Mon Dec 01 12:41:26 PST 2025

Total time taken to generate the page: 1.28214 seconds