| Re: difficulty using "linterp" command - need help making loop to exclude a value yet average others [message #77304 is a reply to message #77241] |
Wed, 17 August 2011 09:10   |
Emily Anne Moravec
Messages: 7 Registered: June 2011
|
Junior Member |
|
|
On Aug 14, 7:09 pm, wlandsman <wlands...@gmail.com> wrote:
> On Sunday, August 14, 2011 4:21:09 PM UTC-4, wlandsman wrote:
>
>> It would make wgrid defined, but not wgird. ;-) Wayne
>
> I was about to write that a clue to identifying the typo would have been to look at the line number of the error message, which would have told you that the first calls to LINTERP were successful, so that there was something different about the LINTERP call that was giving an error.
>
> But then I realized that LINTERP uses a very old (1980s) error checking routine "zparcheck" which overrides the normal IDL traceback, so you weren't seeing the line number. I've added an HELP,/TRACEBACK to zparcheck. Someday, I will update the error checking methods in the astrolib, but I haven't found any error checking schemes yet that I am happy with. --Wayne
First of all, I feel rather silly.
But I have another question and it isn't just for apparent proof
reading.
We are trying to remove some values of our spectra that are equal to
0, but by using the remove command it literally removes the values
where the flux is equal to 0 which is what it is supposed to do, but
the problem with that is that when those values are remove the whole
graph then moves which will mess up our final result. Is there a
command that will take out the values equal to zero, but leave the
graph where it is?
|
|
|
|