Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Re: Contour data with two different lon/lat grids onto the same map projection
On 6/3/10 8:22 PM, David Fanning wrote: > In fact, in spite of Mike Galloy proclaiming here the > other day that he often uses main programs, I rarely > do. And for exactly this reason. They can get you > in a world of strange hurt. You would probably find > out in a minute or two why you can't run the program > more than once if you made a procedure out of it. I use main-level programs as a place to start or to place an example at the end of a file containing regular routines. Anything more complex than a few lines should be in a function/procedure. But the nice part is that it is easy to just add the "pro/function my_routine, a, b, etc.." line at the top of the main-level program to change it into a routine. After coding and getting something working, 99+% of what gets committed and kept is in regular routines. Mike -- www.michaelgalloy.com Research Mathematician Tech-X Corporation