bad column in image [message #66714] |
Tue, 02 June 2009 18:06  |
Amanda
Messages: 12 Registered: August 2006
|
Junior Member |
|
|
I'm trying to get a bad column out of an image by selecting the column
and then setting all values equal to the mean of the image (probably
not the best way to go about it, but I'm not very good at this). But
I'm having trouble selecting the column. No matter what row or column
number I put in, i.e. array=[1440,*], and then set those values to the
mean, it will only change the row on the top of the image. I'm
probably missing something very simple or doing something very stupid,
can anyone help?
|
|
|
Re: bad column in image [message #66808 is a reply to message #66714] |
Fri, 05 June 2009 14:34  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amanda writes:
> Ah, I hadn't put the interpolated column back in. Sorry, I'm still
> very much a white belt when it comes to this. Your help is much
> appreciated. :-)
Here is another tip. Get ahold of some Sherlock Holmes books
and read them in the evening before bed. It will improve
your IDL programming skills tremendously! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66809 is a reply to message #66714] |
Fri, 05 June 2009 14:26  |
Amanda
Messages: 12 Registered: August 2006
|
Junior Member |
|
|
Ah, I hadn't put the interpolated column back in. Sorry, I'm still
very much a white belt when it comes to this. Your help is much
appreciated. :-)
Amanda
On Jun 5, 10:20 pm, David Fanning <n...@dfanning.com> wrote:
> Amanda writes:
>> The bad column is still there and it still looks the exact same.
>
> Let me just make sure I understand this. You copied the
> bad column out, interpolated it, then stuck it back
> into the array, right? And you say the interpolated
> column is identical to the uninterpolated column. You
> tested this how? By subtracting the good column from
> the bad column and getting an array of zeros or
> something like that? Can I see some evidence?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66810 is a reply to message #66714] |
Fri, 05 June 2009 14:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amanda writes:
> The bad column is still there and it still looks the exact same.
Let me just make sure I understand this. You copied the
bad column out, interpolated it, then stuck it back
into the array, right? And you say the interpolated
column is identical to the uninterpolated column. You
tested this how? By subtracting the good column from
the bad column and getting an array of zeros or
something like that? Can I see some evidence?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66811 is a reply to message #66714] |
Fri, 05 June 2009 14:14  |
Amanda
Messages: 12 Registered: August 2006
|
Junior Member |
|
|
The bad column is still there and it still looks the exact same.
Amanda
On Jun 5, 9:50 pm, David Fanning <n...@dfanning.com> wrote:
> Amanda writes:
>> Sorry, I meant because I originally have an array and I was wondering
>> if that would make a difference. What I'm doing right now is this:
>
>> badcol = arr[1440,*]
>> bad = Where(badcol GT 1000, nbad, COMPLEMENT=good, NCOMPLEMENT=ngood)
>> IF nbad GT 0 && ngood GT 1 THEN badcol[bad] = INTERPOL(badcol[good],
>> good, bad)
>
>> but it isn't making a difference.
>
> What, exactly, does "isn't making a difference" mean?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66812 is a reply to message #66714] |
Fri, 05 June 2009 13:50  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amanda writes:
> Sorry, I meant because I originally have an array and I was wondering
> if that would make a difference. What I'm doing right now is this:
>
> badcol = arr[1440,*]
> bad = Where(badcol GT 1000, nbad, COMPLEMENT=good, NCOMPLEMENT=ngood)
> IF nbad GT 0 && ngood GT 1 THEN badcol[bad] = INTERPOL(badcol[good],
> good, bad)
>
> but it isn't making a difference.
What, exactly, does "isn't making a difference" mean?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66813 is a reply to message #66714] |
Fri, 05 June 2009 13:31  |
Amanda
Messages: 12 Registered: August 2006
|
Junior Member |
|
|
Sorry, I meant because I originally have an array and I was wondering
if that would make a difference. What I'm doing right now is this:
badcol = arr[1440,*]
bad = Where(badcol GT 1000, nbad, COMPLEMENT=good, NCOMPLEMENT=ngood)
IF nbad GT 0 && ngood GT 1 THEN badcol[bad] = INTERPOL(badcol[good],
good, bad)
but it isn't making a difference. Do I need to set the 0 and 1 values
to something else?
Amanda
On Jun 5, 9:14 pm, David Fanning <n...@dfanning.com> wrote:
> Amanda writes:
>> Ok, the interpolation sounds like a much better idea, but is
>> "interpol" only for vectors? I tried using it with mine and only got a
>> synthax error. I know there's also an "interpolation" function, but I
>> have no idea how to use it.
>
> I thought you *had* a vector, that bad column?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: bad column in image [message #66815 is a reply to message #66714] |
Fri, 05 June 2009 13:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amanda writes:
> Ok, the interpolation sounds like a much better idea, but is
> "interpol" only for vectors? I tried using it with mine and only got a
> synthax error. I know there's also an "interpolation" function, but I
> have no idea how to use it.
I thought you *had* a vector, that bad column?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|