Re: Proposal for a new feature: import data wizard

From: Antonio Bulgheroni <antonio.bulgheroni_at_gmail.com>
Date: Tue, 13 May 2008 09:55:04 +0200


Dear Christian,

   this is very close to what I would like to have. Having a preview of the data structure would be nice as well.

I understand and agree with Rene about the usefulness of ReadFile from the command line, but in some cases, when you need to quickly import a simple stream of data, having this one-click graphical conversion tool could be useful. Anyway this is just my opinion.

As soon as I get a bit of time to spare, I will look at your code and try to implement what I would like to add.

Thanks for helping,

Antonio

On Tue, May 13, 2008 at 9:46 AM, Christian Holm Christensen <cholm_at_nbi.dk> wrote:

> Hi Antonio,
>
> On Mon, 2008-05-12 at 10:35 +0200, Antonio Bulgheroni wrote:
> > Dear all,
> >
> > I would like to draw your attention to a new feature I'd like to
> > have. In the everyday life, we often have experimental results in the
> > form of an ASCII file with data in columns. To put these data into a
> > ROOT tree is enough to write myTree->ReadFile(...) but this requires
> > to remember by heart the data structure of the file. I think that
> > having a graphical import data wizard, showing the data structure of
> > the ASCII file and allowing the user to select the name and the type
> > for each column would help a lot.
>
> Perhaps something like the attached? It's not that fancy - it doesn't
> show a "preview" of the file or anything, but it will deduce the number
> of columns, whether there's a branch descriptor in the beginning or not.
> The actual reading is done by TTree::ReadFile.
>
> Run as
>
> Root> .L ImportGui.C+
> Root> test1()
> Root> test2()
>
> Check the code for more information.
>
> Yours,
>
> --
> ___ | Christian Holm Christensen
> |_| | -------------------------------------------------------------
> | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
> _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91
> _| Denmark Office: (+45) 353 25 447
> ____| Email: cholm@nbi.dk Web: www.nbi.dk/~cholm<http://www.nbi.dk/%7Echolm>
> | |
>

-- 
Antonio Bulgheroni, PhD
http://unico-lab.blogspot.com

Computers have a lot in common with air conditioners:
Once you open WINDOWS, they stop working properly.
Received on Tue May 13 2008 - 09:55:10 CEST

This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 17:50:01 CEST