| PlotS won't show if in a script/program [message #56834] |
Tue, 20 November 2007 10:04 |
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
|
|
|
|