How do I replace 0 with NaN in an array?

I have text file with XYZ data from an interferometer.  The interferometer data is incomplete.  That is, some of the Z values in the text file are recorded at "No Data".  The "Read From Spreadsheet File.vi" reads the value "No Data" as "0 0".  I've written a vi that translates this text file into a 3D image, but I would like to have an image in which no data is displayed on the 3D Surface indicator on my front panel if there actually is no Z-data.  Is there a NaN constant that I can use in place of the number "0"?

Thanks MDDave,
When reading back the file, it will interpret NaN accordingly.  I made a small test file to illustrate.  You'll see missing points (or broken line in the example).
The data is: 0.592840 0.932214 NaN 0.443935 0.842214 NaN NaN 0.365292 0.837349 (seperated by Tab in the file).
As expected, the missing points are 2, 5 & 6.
Message Edited by JoeLabView on 06-27-2007 12:50 PM
Attachments:
NaNGraph.PNG ‏8 KB

Similar Messages

  • My macbook pro got so many scratches and dents, i just want to know that how i can replace it with the new one?

    my macbook pro got so many scratches and dents, i just want to know that how i can replace it with the new one?

    Sell the Old one... Buy a New one...

  • How to completely replace iPhoto with Aperture

    I would love to use Aperture for all my image-handling, but it seems iPhoto is hard-coded into the OS X workflow. For instance, when right-clicking images on the web, there's the possibility to save to iPhoto. Same thing thing when doing a slideshow in Preview, there's an option to add pictures directly to iPhoto.
    Does anyone here know how to completely replace iPhoto with Aperture?
    Thanks
    (ps: did search in the forum here, but couldn't find anything about this)

    I would love to use Aperture for all my
    image-handling, but it seems iPhoto is hard-coded
    into the OS X workflow. For instance, when
    right-clicking images on the web, there's the
    possibility to save to iPhoto. Same thing thing when
    doing a slideshow in Preview, there's an option to
    add pictures directly to iPhoto.
    Does anyone here know how to completely replace
    iPhoto with Aperture?
    Thanks
    (ps: did search in the forum here, but couldn't find
    anything about this)
    Hi, you seem to be right, although I've never used that myself, it made me go off and test it myself.
    However, you can use the 'save image to <my-downloads-folder>' feature, and then import the images into Aperture. Which is what I've been doing anyway. It's a two step process for sure, but it'll work.
    I'm very much like you, and trying to swap from iPhoto to Aperture. I have to say that I haven't actually run iPhoto since I got Aperture though.
    Cheers
    Andy
    PowerMac G5 DP 1.8   Mac OS X (10.4.8)   2.5GB RAM, Formac Gallery

  • How i can replace number with "-" to simple 0

    Hello. How i can replace number with “-” like I have “-1423,2” to zero? I need to in each cell with numbers lower than <0 put simple 0

    "K5-G5" offcourse it will be -1433,5. So how I can replace this to 0? But in future I still need get correct result in N5 becouse in future I will change cell K5 write to this cell a nubmer more than 1433,5) "-" G5
    Maybe your explanation was correct but I am not a good in numbers yet, so i don't understand what actualy I need to write in formula cell N5

  • HT4859 How do I replace Mobileme with ICloud on my preference settings?

    I have Mobileme on my preference settings and it won't let me log in. How can I replace Mobile me with ICloud? Thanks for any help

    What version of Mac OS X do you run on your Mac Pro? iCloud requires ar least Lion 10.7.2 or Mountain Lion.

  • How do I replace -| symbol with paragraph mark?

    I edit a newsletter. Some of the contributors send their articles inline (not as attachments). Some of them have a non printing special character that looks like a bent left arrow instead of a paragraph mark. I think it is one of the first ascii characters, but don't know which one.
    How can I use find/replace to change these to paragraph symbols?

    I suspect they compose in Word or similar and then paste into Thunderbird. Something like that bent arrow symbol appears in Word when you use shift+return, though it's not clear why your contributors would be using it; maybe force of habit, or they don't know any better. ;-)
    Shift+return is a handy way to force a line end without creating a paragraph break. Useful in bullet point lists to create multiple paragraphs, or organize pictures. Or they're using something like an Apple which uses non-standard line breaks.
    I don't think Thunderbird's editing tools are capable of doing the search-and-replace that you have asked about.
    If you want to do all your editing inside Thunderbird, you may be able to copy then use "paste without formatting" (ctrl+shift+v) to eliminate these line breaks. Doing this will also remove other formatting, so may create more problems than it solves.
    I think in your position I'd take the text away to a better-than-average editor where a proper search-and-replace could be done, or you could select the lines and join them. Notepad++ would be my choice on Windows, probably Bluefish on Linux.
    And a proper word processor may also be able to tidy it up, but the challenge then would be to avoid importing all the formatting overheads that would come with it when copy-and-pasted from the word processor into Thunderbird. Again, Thunderbird's "paste without formatting" might be useful here too.

  • How can I replace WAV with AVI audio on tmeline?

    When I first put an AVI on the tmeline, it was on both the audio and video tracks. Then I replaced the audio with a WAV file and now I want to replace the WAV with the AVI's audio. The timeline says it isn't the right kind of file and won't accept it.
    How can I do this without losing my chapters?

    Easiest way to do any of this stuff is to export from your NLE as separate streams.
    When exporting the AVI, export just the video, do not include the audio.
    Then export just the Audio, and not the video.
    This will give you the most flexibility.

  • I made a mistake & loaded the version of Firefox (4) that my computer cannot support. Now I am unable to use it. How can I replace it with the latest one I had previously (3.6.20)?

    It's my own fault. I was warned that my old iMac (running only on Tiger) was not capable of receiving Firefox 4. But I did an experiment and tried loading it anyway.
    Now, a disabled version of Firefox, that I cannot open, is the only version of Firefox on my computer. I'm sure it made everything I was using on Firefox disappear!
    Is there some way to replace this disabled version with the latest one I CAN support?

    Downgrading from Firefox 4 to Firefox 3.6.20
    1. Visit ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6.20/mac/
    2. Find your language and Open Firefox 3.6.20 folder
    3. Download and install Firefox setup file (3.6.20 dmg)
    You’ll be automatically downgraded to Firefox 3.6.20 and your favorite add-ons, bookmarks and settings will remain untouched.
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How can i replace backslashes with fowardslashes in a String

    Hi all,
    I hope someone can help me with this stupid problem iv been having, i need to replace all the backslashes in a String with forwardslashes.
    The method replace() doesnt work because it uses Chars, also i cant use replaceAll() because im restricted to using jdk1.3.
    I would really appreciate some help here,
    Thanks

    Or in other words, I have no idea what you're talking about:
    public class Foo {
         public static void main(String[] args) {
              String s = "string with \\ back \\ slashes \\ in \\ it !";
              System.out.println(s.replace('\\','/'));
    }

  • How can I replace iMovieHD with an earlier version?

    I have iMovie 6.0.1 and I really miss 5.0.2. can I "downgrade?" how? sorry if this question has been asked before. I was sure it must have been, but I couldn't find it. many thanks!

    Thanks so much, Sue. You've answered my question. Do you suppose this would work with, say, iTunes too?
    some more thoughts on why:
    1) why not? seriously.
    2) sometimes newer is not necessarily better.
    3) heck, sometimes I even miss OS9!
    thanks again. appreciate the help.
    -rob

  • I have lost my previous apple ID details, how can I replace it with the new one? knowing that i have all the bills and docs needs. Thank you?

    Greetings,
    I live in Istanbul, Turkey
    I have lost my old Apple ID details including the Password and Email address
    I have created a new one now but my iphone is locked to the old apple ID
    it keeps telling me that his phone is currently linked to the old ID I have to enter the email and password, which i have already lost
    The iphone is mine, where i have all the needed docs and bills with the packaging and insurance.
    Please let me know what should I do
    and how can I contact apple support to sort this issue out.
    Thank you for your help
    Waiting for your early reply.
    Regards
    Bassam.

    Contact Apple using the Contact Us link at the bottom of the page here.

  • How to permanently replace Myriad with Helvetica?

    AI CC on MacOS 10.9.x
    The default font is Myriad.  Surely this is not hard-coded, and can be changed.  Yes?  How?  I want Helvetica instead.
    I know about changing the default in existing profiles and creating new profiles with my choice of font.  Not enough!  I want to change the underlying default, the one that is used when no profile is active. 
    When is no profile active?  Apparently this occurs when I drag a JPG onto the AI program or Dock icon.  The import works fine, puts the JPG in a new AI document --which is exactly what I want to do-- but activates no profile.
    TIA

    hen3ry,
    I get your point. And this may take us into a more philosophical discussion about software complexity ... My view is that with wonderful and complex tools such as AI, we naturally need to make more choices in order to accomplish a simple result, than we might if AI was something much more simple, like a preview app for jpegs or something.
    My example of this is the Open Dialog in AI. In my experience, there are just too many choices to make in a typical situation, and I find this to be tedious right at the point I just want a new document so I can work. This is why I made all those tedious choices only ONCE, and saved the result as a Template, so all my choices would  be there each time I open a new document of that type. With Monika's help I just saved all my templates with a different default font and font settings. Beautiful!
    I have several printers, with two basic page sizes: letter (wide and tall), and Super-B (wide and tall). I work in both RGB and CMYK, so I have a total of eight templates set up that I can access all my "Open" choices for each project just by choosing "New from Template" instead of simply "New." - This is very fast, since I already made all my "Open" choices, including the default font, when I originally made each template.
    And if I do a project that falls outside of my template set, then I can simply adjust document size using the Artboard Tool. Simple. Easy.
    Personally, I like this solution better than editing arcane document profiles loacted in some library somewhere. But that's just me. And regarding dropping a jpeg file on AI's dock icon ... it's a very quick and simple thing to do, but it doesn't get you where you need to go. And I wouldn't personally trust it, since there are many choices about the nature of the file that aren't known (to me) when opening a file in AI this way.
    There may be a way to assign your dock-open method to an edited document profile, I don't know. If so, for your purposes, that might be worth looking into. In the mean time, the custom template method might be faster overall for not having to make the font choice, than using the dock-open method, and having to make the font choice for each and every file.
    Good luck.  :+)

  • The apple id on the update page is not my id.  How to i replace it with my id?

    The apple id that pops up when I try to update from the apple store is not my id.  How do i get rid of the erroneous id & us my id?

    Delete and redownload the applications you’re trying to update; the other Apple ID is stored inside them, and is independent of the one signed into the iTunes Store.
    (115024)

  • I do not want to use Preview - how do I replace it with Adobe

    When I receive a PDF as an attachment in Mail, I cannot readthe contents - it is all gobblygook. I want to make Adobe my defualt. I have used File Get Info and then selected a pdf file on my desk top and selected Open With Adobe for all files . However it only works for files on my desktop. In Mail, the files still open in Preview and I cannot read the contents - please help me.

    Do the get info thing again and when the list of apps is displayed, press the option key which will change "Open With" to "Always Open With". If that does not work, just drag the attachment icon to the desktop and open it from there.

  • [solved] arch kernel freezes, how can I replace it with lts

    the kernel freezes on almost every boot; I'm referring to the kernel installed and downloaded when I used the net install to install arch
    how do I install the lts kernel ? maybe the lts won't freeze...
    Last edited by Chrys349 (2011-11-26 16:13:38)

    Chrys349 wrote:
    solved... I got rid of kernel freeze, or kernel hang, by appending the "acpi=off" parameter in grub
    I have no idea what "acpi=off" does, but it's the olny solution I found that enables me to both install arch and use it...
    Keep an eye on the battery meter, w/o acpi your computer might be using more power.

Maybe you are looking for

  • Unable to print the report in second page

    Hi, I've got a problem in the report. Here In a report, I'm able to print the report's data in the first page only. I'm unable to print it in the second page,third page etc. To rectify the problem, I've selected all the fields and set their property

  • Siri refuses to remind me of a set reminder

    Hello all. For some reason if I say, Siri remind me of a certain event at a certain time she'll come back and repeat what I said then ask me to confirm it.  I confirm it but then she will not remind me.  I can go into the reminders app and it's there

  • ORA-01722 happen when using the cursor

    This is my cursor declaration: CURSOR cP_PROFILE_SKU_ID(pBusiness_partner_id IN BUSINESS_PARTNER.BUSINESS_PARTNER_ID%TYPE, pClient VARCHAR2 ) IS SELECT record_id FROM pending_changes WHERE UPPER(field_name) = 'BUSINESS_PARTNER_ID' AND UPPER(table_nam

  • How do I remove "Other" system preferences

    I have a few other prefs in system prefs that i do not need how do i remove them?

  • IWork got corrupted

    First I noticed that documents I was opening had all the wrong colors. Black text was white, pick backgrounds were light blue, etc. Then I noticed in Pages that I can't even type anything. Not on the page, not in a text box. Shapes are for the most p