Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5921 > unrolled thread

Re: Conditional Import

Started byLeonid Shifrin <lshifr@gmail.com>
First post2011-10-27 10:38 +0000
Last post2011-10-27 10:38 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Conditional Import Leonid Shifrin <lshifr@gmail.com> - 2011-10-27 10:38 +0000

#5921 — Re: Conditional Import

FromLeonid Shifrin <lshifr@gmail.com>
Date2011-10-27 10:38 +0000
SubjectRe: Conditional Import
Message-ID<j8bcb8$8r1$1@smc.vnet.net>
As an alternative to writing your own import converter, which is a heavier
approach, you may try Read/ReadList or even BinaryRead/BinaryReadList. These
are fast (especially Binary..) lower-level functions which read from a
stream and might be enough for your purposes.

Regards,
Leonid


On Thu, Oct 27, 2011 at 1:39 AM, <sebastian.mansfeld@googlemail.com> wrote:

> Hi!
>
> I would like to import data from a very large text file. If I import all
> the data, Mathematica takes around 9 h to complete. Therefore I would like
> to import conditionally, that is for example only every 5th element. It
> would probably be best to do this using low level function. I have found a
> help topic on this (developing an import converter), however I can not get
> it to work. Specifically, I do not understand how to implement my own import
> converter, and how I can then use this to only import every 5th element of a
> file.
>
> Thank you!
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web