1
#! /usr/local/bin/perl -w
3
###################################
6
# Wolfgang Bluhm, SDSC #
8
###################################
13
my $data = STAR::DataBlock->new($ARGV[0]);
14
my $dict = STAR::Dictionary->new($ARGV[1]);
16
my $out = STAR::Filter->filter_through_dict(-data=>$data,
19
my $outname = $ARGV[0].'.filtered';
20
$out->store($outname);
24
Reads a data structure (.cob file) and filters it through a dictionary (.cob file).
25
Only items present in the dictionary are retained in the file.
26
Outputs a new data structure file (.cob file -- original name + ".filtered").
30
perl filter.pl <data.cob> <dict.cob>