comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: help with write_gif - Image must be a byte matrix.
items: Re: help with write_gif - Image must be a byte matrix.

help with write_gif - Image must be a byte matrix.
type: item
description: Hi I have a 3D array, Image=[time,dimension_x,dimension_y] I wrote the following code for i=0L,n-1 do begin im = reform(image[i,*,*]) im = BYTSCL(im, max=200.) write_gif, im, file, /multiple endfor write_gif, file, /close and I got this error: WRITE_GIF: Image must be a byte matrix. I used the BYTSCL function to convert my array to byte matrix but seems I am doing something wrong. Can anyone help?
creator: g.nacarts
date: 2015-05-19T14:21:34-00:00

Re: help with write_gif - Image must be a byte matrix.
type: item
description: g.nacarts@gmail.com writes: > Hi I have a 3D array, Image=[time,dimension_x,dimension_y] > > I wrote the following code > > for i=0L,n-1 do begin > im = reform(image[i,*,*]) > im = BYTSCL(im, max=200.) > write_gif, im, file, /multiple > endfor > write_gif, file, /close > > and I got this error: WRITE_GIF: Image must be a byte matrix. I used the BYTSCL function to convert my array to byte matrix but seems I am doing something wrong. Can anyone help? Check the order of your arguments. You have them reversed, it looks like. Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")
creator: David Fanning
date: 2015-05-19T14:36:46-00:00

Re: help with write_gif - Image must be a byte matrix.
type: item
description: Sorry I can't see what you mean. Where exactly did I reverse my arguments?
creator: g.nacarts
date: 2015-05-19T14:53:44-00:00

Re: help with write_gif - Image must be a byte matrix.
type: item
description: On Tuesday, May 19, 2015 at 4:53:46 PM UTC+2, g.na...@gmail.com wrote: > Sorry I can't see what you mean. Where exactly did I reverse my arguments? David means correct: WRITE_GIF, Filename, Image wrong: WRITE_GIF, Image, Filename cheers, h
creator: Helder Marchetto
date: 2015-05-19T14:59:39-00:00

Re: help with write_gif - Image must be a byte matrix.
type: item
description: Ah ok. Thanks :)
creator: g.nacarts
date: 2015-05-19T15:05:12-00:00