| 1 |
## -*- cperl -*- |
| 2 |
## |
| 3 |
## This file is part of Athena, copyright (c) 2001-2006 Bruce Ravel |
| 4 |
## |
| 5 |
## This section of the code contains subroutines associated with |
| 6 |
## report generation. |
| 7 |
|
| 8 |
sub report_csv { |
| 9 |
my $how = $_[0]; |
| 10 |
if ($how eq 'marked') { |
| 11 |
my $m = 0; |
| 12 |
map {$m += $_} values %marked; |
| 13 |
Error("Report aborted. There are no marked groups."), return 1 unless ($m); |
| 14 |
}; |
| 15 |
|
| 16 |
my $types = [['Comma separated value files', '.csv'], ['All Files', '*'],]; |
| 17 |
my $path = $current_data_dir || Cwd::cwd; |
| 18 |
my $file = $top -> getSaveFile(-filetypes=>$types, |
| 19 |
#(not $is_windows) ? |
| 20 |
# (-sortcmd=>sub{$Tk::FBox::a cmp $Tk::FBox::b}) : () , |
| 21 |
-initialdir=>$path, |
| 22 |
-initialfile=>"athena.csv", |
| 23 |
-title => "Athena: Write report"); |
| 24 |
return unless $file; |
| 25 |
my ($name, $pth, $suffix) = fileparse($file); |
| 26 |
$current_data_dir = $pth; |
| 27 |
#&push_mru($file, 0); |
| 28 |
Echo("Generating CSV report to \"$file\" ..."); |
| 29 |
|
| 30 |
open CSV, ">".$file or do { |
| 31 |
Error("You cannot write to \"$file\"."); return |
| 32 |
}; |
| 33 |
print CSV "# Athena CSV report -- Athena version $VERSION\n"; |
| 34 |
print CSV $groups{$current} -> project_header; |
| 35 |
print CSV ",,,Background Removal Parameters,,,,,,,,,,,,,,,,,Forward Fourier transform parameters,,,,,,,,Backward Fourier transform parameters,,,,Plotting parameters,\n"; |
| 36 |
do { |
| 37 |
no warnings; # avoid warning about commas after File Clamp2 r-range |
| 38 |
print CSV join(',', qw(Group File, E0 Rbkg Standard Algorithm Element k-weight), |
| 39 |
'E0 shift', 'Edge Step', 'Fixed Step', 'Functional normalization', 'Pre-edge range', |
| 40 |
'Normalization range', 'Spline range', 'Nknots', |
| 41 |
qw(Clamp1 Clamp2, arb-k-weight dk window k-range), |
| 42 |
'Do PC', 'PC element', 'PC edge,', |
| 43 |
qw(dr window r-range,), |
| 44 |
'Scaling factor', 'y-offset'), "\n\n"; |
| 45 |
}; |
| 46 |
|
| 47 |
foreach my $k (&sorted_group_list) { |
| 48 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 49 |
(my $str = $groups{$k}->{label}) =~ s/,/ /g; |
| 50 |
print CSV $str; |
| 51 |
($str = $groups{$k}->{file}) =~ s/,/ /g; |
| 52 |
print CSV ",", $str,","; |
| 53 |
foreach my $p (qw(bkg_e0 bkg_rbkg bkg_stan)){ |
| 54 |
print CSV ",", $groups{$k}->{$p}; |
| 55 |
}; |
| 56 |
printf CSV ($groups{$k}->{bkg_cl}) ? ",Cromer-Liberman" : ",Autobk"; |
| 57 |
foreach my $p (qw(bkg_z bkg_kw bkg_eshift bkg_step)) { |
| 58 |
print CSV ",", $groups{$k}->{$p}; |
| 59 |
}; |
| 60 |
printf CSV ($groups{$k}->{bkg_fixstep}) ? ",yes" : ",no"; |
| 61 |
printf CSV ($groups{$k}->{bkg_fnorm}) ? ",yes" : ",no"; |
| 62 |
printf CSV ",[%s : %s]", $groups{$k}->{bkg_pre1}, $groups{$k}->{bkg_pre2}; |
| 63 |
printf CSV ",[%s : %s]", $groups{$k}->{bkg_nor1}, $groups{$k}->{bkg_nor2}; |
| 64 |
printf CSV ",[%s : %s]", $groups{$k}->{bkg_spl1}, $groups{$k}->{bkg_spl2}; |
| 65 |
my $deltak = $groups{$current}->{bkg_spl2} - $groups{$current}->{bkg_spl1}; |
| 66 |
print CSV ",",int( 2 * $deltak * $groups{$k}->{bkg_rbkg} / PI ) + 1; |
| 67 |
foreach my $p (qw(bkg_clamp1 bkg_clamp2)) { |
| 68 |
print CSV ",", $groups{$k}->{$p}; |
| 69 |
}; |
| 70 |
print CSV ","; |
| 71 |
## begin fft params |
| 72 |
foreach my $p (qw(fft_arbkw fft_dk fft_win)) { |
| 73 |
print CSV ",", $groups{$k}->{$p}; |
| 74 |
}; |
| 75 |
printf CSV ",[%s - %s]", $groups{$k}->{fft_kmin}, $groups{$k}->{fft_kmax}; |
| 76 |
print CSV ", ", ($groups{$k}->{fft_pc} eq 'on') ? 'yes' : 'no'; |
| 77 |
foreach my $p (qw(bkg_z fft_edge)) { |
| 78 |
print CSV ",", $groups{$k}->{$p}; |
| 79 |
}; |
| 80 |
print CSV ","; |
| 81 |
## begin bft params |
| 82 |
foreach my $p (qw(bft_dr bft_win)) { |
| 83 |
print CSV ",", $groups{$k}->{$p}; |
| 84 |
}; |
| 85 |
printf CSV ",[%s-%s]", $groups{$k}->{bft_rmin}, $groups{$k}->{bft_rmax}; |
| 86 |
print CSV ","; |
| 87 |
## begin plot params |
| 88 |
foreach my $p (qw(plot_scale plot_yoffset)) { |
| 89 |
print CSV ",", $groups{$k}->{$p}; |
| 90 |
}; |
| 91 |
print CSV "\n"; |
| 92 |
}; |
| 93 |
close CSV; |
| 94 |
Echo("Generating CSV report to \"$file\" ... done!"); |
| 95 |
}; |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
sub report_excel { |
| 100 |
my $how = $_[0]; |
| 101 |
if ($how eq 'marked') { |
| 102 |
my $m = 0; |
| 103 |
map {$m += $_} values %marked; |
| 104 |
Error("Report aborted. There are no marked groups."), return 1 unless ($m); |
| 105 |
}; |
| 106 |
|
| 107 |
my $types = [['Excel files', '.xls'], ['All Files', '*'],]; |
| 108 |
my $path = $current_data_dir || Cwd::cwd; |
| 109 |
my $file = $top -> getSaveFile(-filetypes=>$types, |
| 110 |
#(not $is_windows) ? |
| 111 |
# (-sortcmd=>sub{$Tk::FBox::a cmp $Tk::FBox::b}) : () , |
| 112 |
-initialdir=>$path, |
| 113 |
-initialfile=>"athena.xls", |
| 114 |
-title => "Athena: Write report"); |
| 115 |
return unless $file; |
| 116 |
my ($name, $pth, $suffix) = fileparse($file); |
| 117 |
$current_data_dir = $pth; |
| 118 |
#&push_mru($file, 0); |
| 119 |
Echo("Generating Excel report to \"$file\" ..."); |
| 120 |
|
| 121 |
## new workbook with one sheet |
| 122 |
my $workbook = Spreadsheet::WriteExcel -> new($file) or do { |
| 123 |
Error("You cannot write a spreadsheet to \"$file\"."); |
| 124 |
return; |
| 125 |
}; |
| 126 |
$workbook -> set_codepage(2) if (lc($^O) eq 'darwin'); |
| 127 |
my $worksheet = $workbook -> addworksheet('Athena parameters'); |
| 128 |
|
| 129 |
## several formats for different kinds of cells |
| 130 |
my $topheader = $workbook->addformat(bold=>1, color=>'black', bg_color=>'gray', |
| 131 |
align=>'left'); |
| 132 |
my $header = $workbook->addformat(bold=>1, bg_color=>'grey', align=>'center'); |
| 133 |
my $number = $workbook->addformat(align=>'center', num_format=>'0.000'); |
| 134 |
#$number -> set_num_format('0.000'); |
| 135 |
my $integer = $workbook->addformat(align=>'center'); |
| 136 |
my $string = $workbook->addformat(align=>'center'); |
| 137 |
my $fname = $workbook->addformat(italic=>1); |
| 138 |
my $sep = $workbook->addformat(align=>'center'); |
| 139 |
#$sep -> set_bg_color(22); |
| 140 |
|
| 141 |
my $col = 0; |
| 142 |
my $row = 1; |
| 143 |
|
| 144 |
my $comment = "# Athena Excel report -- Athena version $VERSION\n"; |
| 145 |
$comment .= $groups{$current} -> project_header; |
| 146 |
chomp $comment; |
| 147 |
$comment .= " (Spreadsheet::WriteExcel version $Spreadsheet::WriteExcel::VERSION)"; |
| 148 |
$comment =~ s/\# //g; |
| 149 |
foreach (split(/\n/, $comment)) { |
| 150 |
$worksheet -> merge_range($row, 0, $row, 33, $_, $topheader); |
| 151 |
$row++; |
| 152 |
}; |
| 153 |
$row++; |
| 154 |
|
| 155 |
## set up the top-most header line |
| 156 |
$worksheet -> write_blank($row, 0); |
| 157 |
$worksheet -> write_blank($row, 1); |
| 158 |
$worksheet -> merge_range($row, 3,$row,18, 'Background removal parameters', $topheader); |
| 159 |
$worksheet -> merge_range($row,20,$row,26, 'Forward transform parameters', $topheader); |
| 160 |
$worksheet -> merge_range($row,28,$row,30, 'Backward transform parameters', $topheader); |
| 161 |
$worksheet -> merge_range($row,32,$row,33, 'Plotting parameters', $topheader); |
| 162 |
$row++; |
| 163 |
|
| 164 |
## write the column headers |
| 165 |
foreach (qw(Group File)) { |
| 166 |
$worksheet -> write($row, $col++, $_, $header); |
| 167 |
}; |
| 168 |
$worksheet -> write_blank($row-1, $col); |
| 169 |
$worksheet -> write_blank($row, $col++); |
| 170 |
## background parameters |
| 171 |
foreach (qw(E0 Rbkg Standard Algorithm Element k-weight), 'E0 shift', |
| 172 |
'Edge Step', 'Fixed Step', 'Functional norm.', 'Pre-edge range', |
| 173 |
'Normalization range', 'Spline range', 'Nknots', |
| 174 |
qw(Clamp1 Clamp2)) { |
| 175 |
$worksheet -> write($row, $col++, $_, $header); |
| 176 |
}; |
| 177 |
$worksheet -> write_blank($row-1, $col); # lines like this fill gaps |
| 178 |
$worksheet -> write_blank($row, $col++); |
| 179 |
## fft parameters |
| 180 |
foreach ('arbitrary k-weight', qw(dk window k-range), 'Do PC', 'PC element', 'PC edge') { |
| 181 |
$worksheet -> write($row, $col++, $_, $header); |
| 182 |
}; |
| 183 |
$worksheet -> write_blank($row-1, $col); |
| 184 |
$worksheet -> write_blank($row, $col++); |
| 185 |
## bft parameters |
| 186 |
foreach (qw(dR window R-range)) { |
| 187 |
$worksheet -> write($row, $col++, $_, $header); |
| 188 |
}; |
| 189 |
$worksheet -> write_blank($row-1, $col); |
| 190 |
$worksheet -> write_blank($row, $col++); |
| 191 |
## plot parameters |
| 192 |
foreach ('Scaling factor', 'y-offset') { |
| 193 |
$worksheet -> write($row, $col++, $_, $header); |
| 194 |
}; |
| 195 |
$row++; |
| 196 |
|
| 197 |
## set all the column widths to sensible values (very fiddly!) |
| 198 |
$worksheet->set_column(0, 0, 15); # group |
| 199 |
$worksheet->set_column(1, 1, 10); # file |
| 200 |
$worksheet->set_column(2, 2, 2); # spacer |
| 201 |
foreach (3 .. 12) { $worksheet->set_column($_, $_, 12) }; # bkg params |
| 202 |
foreach (13 .. 15) { $worksheet->set_column($_, $_, 20) }; # ranges |
| 203 |
$worksheet->set_column(16, 16, 7); # nknots |
| 204 |
foreach (17 .. 18) { $worksheet->set_column($_, $_, 12) }; # clamps |
| 205 |
$worksheet->set_column(19, 19, 2); # spacer |
| 206 |
foreach (21 .. 21) { $worksheet->set_column($_, $_, 12) }; # fft params |
| 207 |
$worksheet->set_column(22, 22, 16); # k window |
| 208 |
foreach (23 .. 25) { $worksheet->set_column($_, $_, 12) }; # k-range |
| 209 |
$worksheet->set_column(27, 27, 2); # spacer |
| 210 |
$worksheet->set_column(28, 28, 12); # dr |
| 211 |
$worksheet->set_column(29, 29, 16); # r-window |
| 212 |
$worksheet->set_column(30, 30, 12); # r-range |
| 213 |
$worksheet->set_column(31, 31, 2); # spacer |
| 214 |
foreach (32 .. 33) { $worksheet->set_column($_, $_, 18) }; # plotting params |
| 215 |
|
| 216 |
## write out the parameters for each (marked) group, taking care to |
| 217 |
## set formats appropriately |
| 218 |
foreach my $k (&sorted_group_list) { |
| 219 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 220 |
$col = 0; |
| 221 |
$worksheet -> write($row, $col++, $groups{$k}->{label}, $string); |
| 222 |
$worksheet -> write($row, $col++, $groups{$k}->{file}, $fname); |
| 223 |
$worksheet -> write_blank($row, $col++, $sep); |
| 224 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_e0}, $number); |
| 225 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_rbkg}, $number); |
| 226 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_stan}, $number); |
| 227 |
$worksheet -> write($row, $col++, ($groups{$k}->{bkg_cl}) ? "Cromer-Liberman" : "Autobk", |
| 228 |
$string); |
| 229 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_z}, $string); |
| 230 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_kw}, $integer); |
| 231 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_eshift}, $number); |
| 232 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_step}, $number); |
| 233 |
$worksheet -> write($row, $col++, ($groups{$k}->{bkg_fixstep}) ? "yes" : "no", $string); |
| 234 |
$worksheet -> write($row, $col++, ($groups{$k}->{bkg_fnorm}) ? "yes" : "no", $string); |
| 235 |
$worksheet -> write($row, $col++, |
| 236 |
sprintf("[%.3f : %.3f]", $groups{$k}->{bkg_pre1}, $groups{$k}->{bkg_pre2}), |
| 237 |
$string); |
| 238 |
$worksheet -> write($row, $col++, |
| 239 |
sprintf("[%.3f : %.3f]", $groups{$k}->{bkg_nor1}, $groups{$k}->{bkg_nor2}), |
| 240 |
$string); |
| 241 |
$worksheet -> write($row, $col++, |
| 242 |
sprintf("[%.3f : %.3f]", $groups{$k}->{bkg_spl1}, $groups{$k}->{bkg_spl2}), |
| 243 |
$string); |
| 244 |
my $deltak = $groups{$current}->{bkg_spl2} - $groups{$current}->{bkg_spl1}; |
| 245 |
$worksheet -> write($row, $col++, int( 2 * $deltak * $groups{$current}->{bkg_rbkg} / PI ) + 1, $integer); |
| 246 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_clamp1}, $string); |
| 247 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_clamp2}, $string); |
| 248 |
$worksheet -> write_blank($row, $col++, $sep); |
| 249 |
$worksheet -> write($row, $col++, $groups{$k}->{fft_arbkw}, $integer); |
| 250 |
$worksheet -> write($row, $col++, $groups{$k}->{fft_dk}, $integer); |
| 251 |
$worksheet -> write($row, $col++, $groups{$k}->{fft_win}, $string); |
| 252 |
$worksheet -> write($row, $col++, |
| 253 |
sprintf("[%s : %s]", $groups{$k}->{fft_kmin}, $groups{$k}->{fft_kmax}), |
| 254 |
$string); |
| 255 |
$worksheet -> write($row, $col++, $groups{$k}->{fft_pc}, $string); |
| 256 |
$worksheet -> write($row, $col++, $groups{$k}->{bkg_z}, $string); |
| 257 |
$worksheet -> write($row, $col++, $groups{$k}->{fft_edge}, $string); |
| 258 |
$worksheet -> write_blank($row, $col++, $sep); |
| 259 |
$worksheet -> write($row, $col++, $groups{$k}->{bft_dr}, $integer); |
| 260 |
$worksheet -> write($row, $col++, $groups{$k}->{bft_win}, $string); |
| 261 |
$worksheet -> write($row, $col++, |
| 262 |
sprintf("[%s : %s]", $groups{$k}->{bft_rmin}, $groups{$k}->{bft_rmax}), |
| 263 |
$string); |
| 264 |
$worksheet -> write_blank($row, $col++, $sep); |
| 265 |
$worksheet -> write($row, $col++, $groups{$k}->{plot_scale}, $integer); |
| 266 |
$worksheet -> write($row, $col++, $groups{$k}->{plot_yoffset}, $number); |
| 267 |
++$row; |
| 268 |
}; |
| 269 |
|
| 270 |
$worksheet -> set_landscape(); |
| 271 |
$worksheet -> set_selection(7,0); # select the first non-header cell |
| 272 |
$workbook -> close(); # write it out and get the hell out of dodge! |
| 273 |
Echo("Generating Excel report to \"$file\" ... done!"); |
| 274 |
}; |
| 275 |
|
| 276 |
|
| 277 |
sub report_ascii { |
| 278 |
my $how = $_[0]; |
| 279 |
if ($how eq 'marked') { |
| 280 |
my $m = 0; |
| 281 |
map {$m += $_} values %marked; |
| 282 |
Error("Report aborted. There are no marked groups."), return 1 unless ($m); |
| 283 |
}; |
| 284 |
|
| 285 |
my $types = [['Text files', '.txt'], ['All Files', '*'],]; |
| 286 |
my $path = $current_data_dir || Cwd::cwd; |
| 287 |
my $file = $top -> getSaveFile(-filetypes=>$types, |
| 288 |
#(not $is_windows) ? |
| 289 |
# (-sortcmd=>sub{$Tk::FBox::a cmp $Tk::FBox::b}) : () , |
| 290 |
-initialdir=>$path, |
| 291 |
-initialfile=>"athena.txt", |
| 292 |
-title => "Athena: Write report"); |
| 293 |
return unless $file; |
| 294 |
my ($name, $pth, $suffix) = fileparse($file); |
| 295 |
$current_data_dir = $pth; |
| 296 |
#&push_mru($file, 0); |
| 297 |
Echo("Generating text report to \"$file\" ..."); |
| 298 |
|
| 299 |
open TXT, ">".$file or do { |
| 300 |
Error("You cannot write to \"$file\"."); return |
| 301 |
}; |
| 302 |
print TXT "# Athena text report -- Athena version $VERSION\n", |
| 303 |
$groups{$current} -> project_header, "\n"; |
| 304 |
|
| 305 |
print TXT "=" x 70, "\n", |
| 306 |
"Background removal parameters\n\n", |
| 307 |
"# Group E0 Rbkg Standard Algorithm Elem\n", |
| 308 |
"# ------------------------------------------------------------------------\n"; |
| 309 |
foreach my $k (&sorted_group_list) { |
| 310 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 311 |
printf TXT " %-20s %9.3f %5.3f %-15.15s %-15s %-2s\n", |
| 312 |
$groups{$k}->{label}, $groups{$k}->{bkg_e0}, $groups{$k}->{bkg_rbkg}, |
| 313 |
$groups{$k}->{bkg_stan}, |
| 314 |
($groups{$k}->{bkg_cl}) ? "Cromer-Liberman" : "Autobk", $groups{$k}->{bkg_z}; |
| 315 |
}; |
| 316 |
print TXT "\n", |
| 317 |
"# Group kw E0shift Step Fixed Fnorm Clamp1 Clamp2\n", |
| 318 |
"# ------------------------------------------------------------------\n"; |
| 319 |
foreach my $k (&sorted_group_list) { |
| 320 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 321 |
printf TXT " %-20s %1d %7.3f %5.3f %-5s %-5s %-7s %-7s\n", |
| 322 |
$groups{$k}->{label}, $groups{$k}->{bkg_kw}, $groups{$k}->{bkg_eshift}, |
| 323 |
$groups{$k}->{bkg_step}, |
| 324 |
($groups{$k}->{bkg_fixstep}) ? "yes" : "no", |
| 325 |
($groups{$k}->{bkg_fnorm}) ? "yes" : "no", |
| 326 |
$groups{$k}->{bkg_clamp1}, $groups{$k}->{bkg_clamp2}; |
| 327 |
}; |
| 328 |
print TXT "\n", |
| 329 |
"# Group Pre-edge Normalization Spline Nknots\n", |
| 330 |
"# ------------------------------------------------------------------------\n"; |
| 331 |
foreach my $k (&sorted_group_list) { |
| 332 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 333 |
my $deltak = $groups{$current}->{bkg_spl2} - $groups{$current}->{bkg_spl1}; |
| 334 |
printf TXT " %-20s [%6.1f:%6.1f] [%6.1f:%6.1f] [%6.3f:%6.3f] %3d\n", |
| 335 |
$groups{$k}->{label}, $groups{$k}->{bkg_pre1}, $groups{$k}->{bkg_pre2}, |
| 336 |
$groups{$k}->{bkg_nor1}, $groups{$k}->{bkg_nor2}, |
| 337 |
$groups{$k}->{bkg_spl1}, $groups{$k}->{bkg_spl2}, |
| 338 |
int( 2 * $deltak * $groups{$current}->{bkg_rbkg} / PI ) + 1; |
| 339 |
}; |
| 340 |
print TXT "\n\n", |
| 341 |
"=" x 70, "\n", |
| 342 |
"Forward Fourier transform parameters\n\n", |
| 343 |
"# Group arbkw dk window k-range Phase Correction\n", |
| 344 |
"# -----------------------------------------------------------------------\n"; |
| 345 |
foreach my $k (&sorted_group_list) { |
| 346 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 347 |
printf TXT " %-20s %1d %3.1f %13s [%5.2f:%5.2f] %s %-2s %-2s\n", |
| 348 |
$groups{$k}->{label}, $groups{$k}->{fft_arbkw}, $groups{$k}->{fft_dk}, |
| 349 |
$groups{$k}->{fft_win}, $groups{$k}->{fft_kmin}, $groups{$k}->{fft_kmax}, |
| 350 |
$groups{$k}->{fft_pc}, $groups{$k}->{bkg_z}, $groups{$k}->{fft_edge}; |
| 351 |
}; |
| 352 |
print TXT "\n\n", |
| 353 |
"=" x 70, "\n", |
| 354 |
"Backward Fourier transform parameters\n\n", |
| 355 |
"# Group dR window R-range\n", |
| 356 |
"# --------------------------------------------------------\n"; |
| 357 |
foreach my $k (&sorted_group_list) { |
| 358 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 359 |
printf TXT " %-20s %3.1f %13s [%5.2f:%5.2f]\n", |
| 360 |
$groups{$k}->{label}, $groups{$k}->{bft_dr}, |
| 361 |
$groups{$k}->{bft_win}, $groups{$k}->{bft_rmin}, $groups{$k}->{bft_rmax}; |
| 362 |
}; |
| 363 |
print TXT "\n\n", |
| 364 |
"=" x 70, "\n", |
| 365 |
"Plotting parameters\n\n", |
| 366 |
"# Group scaling factor y-offset\n", |
| 367 |
"# -----------------------------------------------------\n"; |
| 368 |
foreach my $k (&sorted_group_list) { |
| 369 |
next if (($how eq 'marked') and (not $marked{$k})); |
| 370 |
printf TXT " %-20s %-14s %7.3f\n", |
| 371 |
$groups{$k}->{label}, $groups{$k}->{plot_scale}, $groups{$k}->{plot_yoffset}; |
| 372 |
}; |
| 373 |
|
| 374 |
close TXT; |
| 375 |
Echo("Generating text report to \"$file\" ... done!"); |
| 376 |
}; |
| 377 |
|
| 378 |
## END OF REPORT GENERATION SUBSECTION |
| 379 |
########################################################################################## |