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

Home » Public Forums » archive » Array into binary array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array into binary array [message #86538] Sun, 17 November 2013 23:51 Go to previous message
Oliver Angelil is currently offline  Oliver Angelil
Messages: 11
Registered: November 2013
Junior Member
I have an array:

A =MAKE_ARRAY(4000, 120, 60, 3, /FLOAT, VALUE =!VALUES.F_NaN)

It consists of numbers between 0 and 1 as well as NaN values. I want to make a binary array from this, such that when an element is NaN, it'll be 0 in the binary array, and when it is a number between 0 and 1, it'll be 1 in the binary array.

Perhaps there is a quick solution which I have not found yet?

Thanks in advance,

Oliver
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading in from multiple files, performing operations and printing them to multiple output file
Next Topic: How to access properties of multiple plots in a function graphics window?

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

Current Time: Wed Oct 08 18:18:47 PDT 2025

Total time taken to generate the page: 0.00509 seconds