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

Home » Public Forums » archive » Re: Stretching MODIS data
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
Re: Stretching MODIS data [message #79119] Thu, 02 February 2012 05:59 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
titan writes:

> The problem which remains is that if I apply your suggestion to all
> the images, the general difference in brightness remains.

To *all* of them!? What were you thinking? No, just to
the dark ones! ;-)

> Do you think that an histogram matching could be a good solution??

Maybe. It is easy enough to try:

http://www.idlcoyote.com/ip_tips/histomatch.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Stretching MODIS data [message #79120 is a reply to message #79119] Thu, 02 February 2012 05:23 Go to previous messageGo to next message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
On 31 Gen, 16:16, David Fanning <n...@idlcoyote.com> wrote:
> titan writes:
>> Thank you David! I will try to check if this is my case too. I'll keep
>> you informed!!
>> in the meanwhile have you any idea why  is this happening only for
>> images belonging to winter season??
>
> No, that confuses me. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David,
your suggestion was quite useful!!Now winter season images are
brighter.

The problem which remains is that if I apply your suggestion to all
the images, the general difference in brightness remains.
Do you think that an histogram matching could be a good solution??

thank you

Cheers,

titan
Re: Stretching MODIS data [message #79141 is a reply to message #79120] Tue, 31 January 2012 07:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
titan writes:

> Thank you David! I will try to check if this is my case too. I'll keep
> you informed!!
> in the meanwhile have you any idea why is this happening only for
> images belonging to winter season??

No, that confuses me. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Stretching MODIS data [message #79142 is a reply to message #79141] Tue, 31 January 2012 07:08 Go to previous messageGo to next message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
On 31 Gen, 14:40, David Fanning <n...@idlcoyote.com> wrote:
> titan writes:
>> I'm trying to obtain an RGB image using MODIS data channel 01,02,06
>> (daytime) and channels 20, 21 and 32 (night time).
>
>> My code is working fine except for the stretching result in the sense
>> that for the images obtained using "daytime channels" are darker than
>> the ones obtained with the "nighttime channels" and this happens only
>> for images belonging to winter season.
>
> I'm not sure this applies to your problem, but I've
> found that I needed to apply differential scaling
> to "brighten" MODIS images up:
>
>   http://www.idlcoyote.com/ip_tips/brightmodis.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thank you David! I will try to check if this is my case too. I'll keep
you informed!!
in the meanwhile have you any idea why is this happening only for
images belonging to winter season??
cheers

titan
Re: Stretching MODIS data [message #79143 is a reply to message #79142] Tue, 31 January 2012 05:40 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
titan writes:

> I'm trying to obtain an RGB image using MODIS data channel 01,02,06
> (daytime) and channels 20, 21 and 32 (night time).
>
> My code is working fine except for the stretching result in the sense
> that for the images obtained using "daytime channels" are darker than
> the ones obtained with the "nighttime channels" and this happens only
> for images belonging to winter season.

I'm not sure this applies to your problem, but I've
found that I needed to apply differential scaling
to "brighten" MODIS images up:

http://www.idlcoyote.com/ip_tips/brightmodis.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Stretching MODIS data [message #79187 is a reply to message #79119] Mon, 06 February 2012 07:18 Go to previous message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
On 2 Feb, 14:59, David Fanning <n...@idlcoyote.com> wrote:
> titan writes:
>> The problem which remains is that if I apply your suggestion to all
>> the images, the general difference in brightness remains.
>
> To *all* of them!? What were you thinking? No, just to
> the dark ones! ;-)
>
>> Do you think that an histogram matching could be a good solution??
>
> Maybe. It is easy enough to try:
>
>   http://www.idlcoyote.com/ip_tips/histomatch.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Dear David,
I tried using the histomatch code and it is also quite useful and
somehow more powerful!! :)

Since I would like to have a standard reference color is there a way
to define an histogram of reference to which all the images can be
referred??

thanks a lot!!
cheers,
Titan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cgcontour and yticks
Next Topic: Keeping the Fortran logical records structure with IDL

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

Current Time: Wed Oct 08 20:03:44 PDT 2025

Total time taken to generate the page: 0.01701 seconds