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

Home » Public Forums » archive » Pixel Editing and Resizing
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
Pixel Editing and Resizing [message #63636] Sun, 16 November 2008 18:47 Go to next message
Wasit.Weather is currently offline  Wasit.Weather
Messages: 62
Registered: February 2008
Member
Hello Everyone,
I have two questions, may be very simple. Forgive me, I am not good at
IDL programming.
1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
Data -- Change the output Pixel Size. not enlarge image. How can I do
it by IDL?

2. If a pixel is cloudy, I need to search for other 4 pixels around
it, and then get the mean of clear ones if there is any, then replace
the all 5 pixels with the mean one.


Thanks for your help
Re: Pixel Editing and Resizing [message #63748 is a reply to message #63636] Mon, 17 November 2008 08:46 Go to previous messageGo to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Elkunn wrote:
> On Nov 17, 9:59�am, Paolo <pgri...@gmail.com> wrote:
>> Elkunn wrote:
>>> Hello Everyone,
>>> I have two questions, may be very simple. Forgive me, I am not good at
>>> IDL programming.
>>> 1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
>>> Data -- Change the output Pixel Size. not enlarge image. How can I do
>>> it by IDL?
>>
>> Pixel size of what?
>>
>> Paolo
>>
>>
>>
>>
>>
>>> 2. If a pixel is cloudy, �I need to search for other 4 pixels around
>>> it, and then get the mean of clear ones if there is any, then replace
>>> the all 5 pixels with the mean one.
>>
>>> Thanks for your help- Hide quoted text -
>>
>> - Show quoted text -
>
> Resize the pixel size from 1 km to 5 km.

First you'll have to decide what to do with your 25 pixel values...
Average? resampling?
Check out CONGRID and REBIN.

Cheers,
Paolo





>
> Thanks
Re: Pixel Editing and Resizing [message #63750 is a reply to message #63636] Mon, 17 November 2008 08:31 Go to previous messageGo to next message
Wasit.Weather is currently offline  Wasit.Weather
Messages: 62
Registered: February 2008
Member
On Nov 17, 9:59 am, Paolo <pgri...@gmail.com> wrote:
> Elkunn wrote:
>> Hello Everyone,
>> I have two questions, may be very simple. Forgive me, I am not good at
>> IDL programming.
>> 1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
>> Data -- Change the output Pixel Size. not enlarge image. How can I do
>> it by IDL?
>
> Pixel size of what?
>
> Paolo
>
>
>
>
>
>> 2. If a pixel is cloudy,  I need to search for other 4 pixels around
>> it, and then get the mean of clear ones if there is any, then replace
>> the all 5 pixels with the mean one.
>
>> Thanks for your help- Hide quoted text -
>
> - Show quoted text -

Resize the pixel size from 1 km to 5 km.

Thanks
Re: Pixel Editing and Resizing [message #63757 is a reply to message #63636] Mon, 17 November 2008 07:59 Go to previous messageGo to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Elkunn wrote:
> Hello Everyone,
> I have two questions, may be very simple. Forgive me, I am not good at
> IDL programming.
> 1. How to resize pixel size. Just like with Envi--Basic Tools --Resize
> Data -- Change the output Pixel Size. not enlarge image. How can I do
> it by IDL?

Pixel size of what?

Paolo

>
> 2. If a pixel is cloudy, I need to search for other 4 pixels around
> it, and then get the mean of clear ones if there is any, then replace
> the all 5 pixels with the mean one.
>
>
> Thanks for your help
Re: Pixel Editing and Resizing [message #63943 is a reply to message #63636] Sun, 23 November 2008 14:11 Go to previous message
guillermo.castilla.ca is currently offline  guillermo.castilla.ca
Messages: 27
Registered: September 2008
Junior Member
> Thanks
> First, I want to edit the pixel values, namely, replace neibouring 5
> pixels wiht with mean of them.
> Then, make a resampling.

Look in the ENVI help for a procedure called resize_doit.
You want to use it with the keyword interp=3. This interpolation
method (pixel aggregate) is equivalent to computing the mean of the
original pixels inside each new coarse pixel.

Cheers
Guillermo
Re: Pixel Editing and Resizing [message #63959 is a reply to message #63748] Sat, 22 November 2008 08:47 Go to previous message
Wasit.Weather is currently offline  Wasit.Weather
Messages: 62
Registered: February 2008
Member
On Nov 17, 10:46 am, Paolo <pgri...@gmail.com> wrote:
> Elkunn wrote:
>> On Nov 17, 9:59 am, Paolo <pgri...@gmail.com> wrote:
>>> Elkunn wrote:
>>>> Hello Everyone,
>>>> I have two questions, may be very simple. Forgive me, I am not good at
>>>> IDL programming.
>>>> 1. How to resizepixelsize. Just like with Envi--Basic Tools --Resize
>>>> Data -- Change the outputPixelSize. not enlarge image. How can I do
>>>> it by IDL?
>
>>> Pixelsize of what?
>
>>> Paolo
>
>>>> 2. If apixelis cloudy, I need to search for other 4 pixels around
>>>> it, and then get the mean of clear ones if there is any, then replace
>>>> the all 5 pixels with the mean one.
>
>>>> Thanks for your help- Hide quoted text -
>
>>> - Show quoted text -
>
>> Resize thepixelsize from 1 km to 5 km.
>
> First you'll have to decide what to do with your 25pixelvalues...
> Average? resampling?
> Check out CONGRID and REBIN.
>
> Cheers,
> Paolo
>
>
>
>
>
>> Thanks- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Thanks
First, I want to edit the pixel values, namely, replace neibouring 5
pixels wiht with mean of them.
Then, make a resampling.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Returning up the stack after error
Next Topic: Re: using map_set with postscript device

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

Current Time: Thu Oct 09 02:46:46 PDT 2025

Total time taken to generate the page: 0.79410 seconds