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

Home » Public Forums » archive » Re: Convert 3D to 1D, apply fuction then convert back to 3D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Convert 3D to 1D, apply fuction then convert back to 3D [message #71510 is a reply to message #71431] Mon, 21 June 2010 15:55 Go to previous message
Mat is currently offline  Mat
Messages: 14
Registered: December 2009
Junior Member
On Jun 22, 12:15 am, Jeremy Bailin <astroco...@gmail.com> wrote:
> On Jun 20, 8:58 pm, Mat <m...@waikato.ac.nz> wrote:
>
>
>
>
>
>> On Jun 21, 12:21 pm, pp <pp.pente...@gmail.com> wrote:
>
>>> On Jun 20, 9:06 pm, Mat <m...@waikato.ac.nz> wrote:
>
>>>> The results are three water quality parameters. Actually it does not
>>>> matter whether they are within one result or three separate results.
>
>>> That still says nothing to answer your question. You called a function
>>> that used a (5,nx*xy) array and returned a 3-element array. We do not
>>> know how those 3 numbers relate to the 5*nx*ny values in the array, or
>>> what you were intending to get that also was supposed to have 5*nx*ny
>>> elements.
>
>> No the function used the "imageR" from above which is a floating 1D 5
>> element array (reformed from a 5 band 3d image (satellite reflectance)
>> and returned a 3-element array(water quality). The function is complex
>> and not my code so I'm not in a position to post it sorry. So for each
>> pixel in the original tiff I want the water quality (three parameters)
>> in an image format. I hope this helps.
>
>> I think it is simpler if somebody posts a code to convert an
>> image(5,nx*xy) to 1D, then convert it back to the original image. I
>> think I could fill in the gaps.
>
> I don't think your function is giving you what you think. You are
> giving it a 2D [5,N] element array, and it is returning a 1D [3]
> element array. From your question, I think you're expecting either
> a [3,N] element array or a [3,5,N] element array - i.e. each of those
> three values for either every pixel, or every pixel-band combination.
>
> -Jeremy.- Hide quoted text -
>
> - Show quoted text -

Thanks PP you have solved my problem. Thanks for your input Jeremy yes
I think the array dimensions were confusing me!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Selecting data from two separate arrays
Next Topic: Re: MPFIT Chance probability

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

Current Time: Fri Oct 10 10:06:58 PDT 2025

Total time taken to generate the page: 0.15929 seconds