Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Logan Lindquist (llindqusit@mrdoc.cc) writes: > What's the best way to take a byte array that is > (1,256,256) and make it a byte array that is just > (256, 256)? a = Bytarr(1, 256, 256) b = Reform(a) Cheers, David -- David W. Fanning, Ph.D. Fanning Software Consulting Phone: 970-221-0438, E-mail: david@dfanning.com Coyote's Guide to IDL Programming: http://www.dfanning.com/ Toll-Free IDL Book Orders: 1-888-461-0155
Logan Lindquist wrote: > What's the best way to take a byte array that is (1,256,256) and make > it a byte array that is just (256, 256)? Looping would seem to take a > while. I can't figure out at this moment of a way to store the x and y > into temp variables and then recopy them into another byte array. > Maybe there is something that will just get rid of the damn 1, without > doing either. > Try the REFORM function. Cheers, Liam. Practical IDL Programming http://www.gumley.com/
Thanks Liam and David ! <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> "Logan Lindquist" &lt;<A href="mailto:llindqusit@mrdoc.cc">llindqusit@mrdoc.cc&gt; wrote in message <A href="news:9suqq0$14k$1@sulawesi-fi.lerc.nasa.gov">news:9suqq0$14k$1@sulawesi-fi.lerc.nasa.gov... What's the best way to take a byte array that is (1,256,256) and make it a byte array that is just (256, 256)? Looping would seem to take a while. I can't figure out at this moment of a way to store the x and y into temp variables and then recopy them into another byte array. Maybe there is something that will just get rid of the damn 1, without doing either. &nbsp; gracias, grazie, danke, merci, agradeça-o &nbsp; Logan