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

Home » Public Forums » archive » raw contents of data memory
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: raw contents of data memory [message #90271 is a reply to message #90270] Tue, 17 February 2015 12:25 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, February 17, 2015 at 1:07:17 PM UTC-7, rrya...@gmail.com wrote:
> Ok, I'm not sure how to ask the question, because I'm not sure what it is I don't know.
>
> I'm looking at some python code that I want to do in IDL, the line I'm getting stuck on is using the numpy function: numpy.tostring() . here's the documentation for that function:
>
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.nd array.tostring.html
>
> The manual says "Constructs Python bytes showing a copy of the raw contents of data memory. " and so that seems to be what I want to do, but I haven't got the foggiest idea where to even begin looking in the IDL manuals or existing libraries? Any thoughts out there?
>
> -Russell

Try just calling STRING() on your array of bytes:

IDL> print, string(byte([73,68,76,32,105,115,32,102,117,110,33]))

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Downgrade in support for non US users?
Next Topic: IDL8.4 hard crash

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

Current Time: Wed Oct 08 19:12:37 PDT 2025

Total time taken to generate the page: 0.01053 seconds