Xray::BLA::IO¶
NAME¶
Xray::BLA::IO - Role containing input and output operations
VERSION¶
See Xray::BLA
METHODS¶
mask_file
Compute the name of an output file from the parameters of the calculation.
my $fname = $self->mask_file($type, $imagetype);
$type
is one ofmask
,shield
,previousshield
,rixsplane
,anim
,map
,maskmap
, or an integer denoting a file in a sequence.
imagetype
is one of "gif", "tif", or "png" and specifies the output image format.
xdi_out
Write HERFD data to an XDI file. Return the name of the computed output file. The arguments are the name of the ini file with XDI metadata and a reference to the hash containing the calculated HERFD data.
$outfile = $self->xdi_out($xdiini, \@data);
xdi_xes
Write XES data to an XDI file. Return the name of the computed output file. The arguments are the name of the ini file with XDI metadata, the name of the XES image file, and a reference to the hash containing the calculated XES data.
my $outfile = $self->xdi_xes($xdiini, $xesimage, \@xes);
energy_map
Write the results of the
map
task to an output data file. The arguments control screen output and the creation (not currently working) of an animation showing how the energy map was made.my $spectrum -> energy_map(verbose => 1, animate=>0);
gnuplot_map
Write gnuplot commands to use the data written by
energy_map
.open(my $GP, '>', 'splot.gp'); my $gp = $self->gnuplot_map; print $GP $gp; close $GP;
LICENCE AND COPYRIGHT¶
Copyright (c) 2011-2014,2016 Bruce Ravel, Jeremy Kropf. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlgpl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Xray::BLA and METIS are copyright © 2011-2014, 2016 Bruce Ravel and Jeremy Kropf – This document is copyright © 2016 Bruce Ravel
This document is licensed under The Creative Commons Attribution-ShareAlike License.
If this software and its documentation are useful to you, please consider supporting The Creative Commons.