NAME
Lab::Data::Meta - Meta data for datasets
SYNOPSIS
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',
},
],
});
DESCRIPTION
This module maintains meta information on a dataset. It's build on top of Lab::Data::XMLtree.
CONSTRUCTOR
new
$meta=new Lab::Data::Meta(\%metainfo);
Currently, Lab::Data::Meta
supports the following bits of meta information:
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'],
}
],
new_from_file
$meta=new_from_file Lab::Data::Meta($filename);
METHODS
save
$meta->save($filename);
get_abs_path
my $path=get_abs_path();
AUTHOR/COPYRIGHT
This is $Id: Meta.pm 479 2006-08-11 09:25:07Z schroeer $
Copyright 2004-2006 Daniel Schröer (http://www.danielschroeer.de)
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:
- Around line 197:
Non-ASCII character seen before =encoding in 'unterstützt'. Assuming CP1252