Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Robert Moss, PhD writes: > Being the lazy sort, I'm wondering if there is a built-in or user > routine around that will accept an array of bytes and output them (to > screen or file) as hexidecimal out there. I could write one, but as I > said, I'd prefer to have someone else to the grunt work :) Uh, I think IDL has already thought of this: IDL> var = bindgen(20) IDL> Print, var, Format='(20(z2.2,x))' Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/ Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Well, there ya go. I knew someone would do the grunt work for me. And so cheerfully too. I would have simply said "RTFM". r David Fanning wrote: > Robert Moss, PhD writes: > >> Being the lazy sort, I'm wondering if there is a built-in or user >> routine around that will accept an array of bytes and output them (to >> screen or file) as hexidecimal out there. I could write one, but as I >> said, I'd prefer to have someone else to the grunt work :) > > Uh, I think IDL has already thought of this: > > IDL> var = bindgen(20) > IDL> Print, var, Format='(20(z2.2,x))' > > Cheers, > > David > -- > David Fanning, Ph.D. > Fanning Software Consulting, Inc. > Coyote's Guide to IDL Programming: http://www.dfanning.com/ > Sepore ma de ni thui. ("Perhaps thou speakest truth.")