comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: Array resizing

Re: Array resizing
type: item
description: 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
creator: David Fanning
date: 2001-11-14T23:03:41-00:00

Re: Array resizing
type: item
description: 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/
creator: Liam E. Gumley
date: 2001-11-14T23:13:30-00:00

Re: Array resizing
type: item
description: 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
creator: Logan Lindquist
date: 2001-11-14T23:48:21-00:00