Lab::Data::Meta - Meta data for datasets
use Lab::Data::Meta; my $meta2=new Lab::Data::Meta({ dataset_title => "testtest", column => [ {label =>'hallo'}, {label =>'selber hallo', unit =>'mV'}, ], axis => [ { unit => 's', description => 'the time', }, { unit => 'eV', description => 'kinetic energy', }, ], });
This module maintains meta information on a dataset. It's build on top of Lab::Data::XMLtree.
$meta=new Lab::Data::Meta(\%metainfo);
Currently, Lab::Data::Meta supports the following bits of meta information:
Lab::Data::Meta
data_complete => ['SCALAR'], # boolean dataset_title => ['SCALAR'], dataset_description => ['SCALAR'], # multiline sample => ['SCALAR'], data_file => ['SCALAR'], # relativ zur descriptiondatei block => [ 'ARRAY', 'id', { original_filename => ['SCALAR'], # nur von GPplus-Import unterstützt timestamp => ['SCALAR'], # Format %Y/%m/%d-%H:%M:%S description => ['SCALAR'], label => ['SCALAR'], } ], column => [ 'ARRAY', 'id', { unit => ['SCALAR'], label => ['SCALAR'], # evtl. weg description => ['SCALAR'], # evtl. weg min => ['SCALAR'], # unnütz, aber von GPplus-Import unterstützt max => ['SCALAR'], # dito } ], axis => [ 'ARRAY', 'id', { label => ['SCALAR'], unit => ['SCALAR'], expression => ['SCALAR'], min => ['SCALAR'], max => ['SCALAR'], description => ['SCALAR'], # evtl. weg } ], plot => [ 'HASH', 'name', { type => ['SCALAR'], # line, pm3d xaxis => ['SCALAR'], xformat => ['SCALAR'], yaxis => ['SCALAR'], yformat => ['SCALAR'], zaxis => ['SCALAR'], zformat => ['SCALAR'], cbaxis => ['SCALAR'], cbformat => ['SCALAR'], logscale => ['SCALAR'], # z.b: 'x' oder 'yzxcb' time => ['SCALAR'], # ??? (was: wie oben (anders als in GnuPlot) (Achsen müssen %s-Format haben)) grid => ['SCALAR'], # z.B. 'ytics' oder 'xtics ytics' palette => ['SCALAR'], label => [ 'ARRAY', 'id', { text => ['SCALAR'], x => ['SCALAR'], y => ['SCALAR'], } ], } ], constant => [ 'ARRAY', 'id', { name => ['SCALAR'], value => ['SCALAR'], } ],
$meta=new_from_file Lab::Data::Meta($filename);
$meta->save($filename);
my $path=get_abs_path();
Copyright 2004-2006 Daniel Schröer (http://www.danielschroeer.de), 2011 Andreas K. Hüttel
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'unterstützt'. Assuming UTF-8
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.