Debian Codegraph @

docs/www/common/mpp_utils.pm

raw
1 # (C) Copyright 1996-2016 ECMWF.
2 #
3 # This software is licensed under the terms of the Apache Licence Version 2.0
4 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5 # In applying this licence, ECMWF does not waive the privileges and immunities
6 # granted to it by virtue of its status as an intergovernmental organisation nor
7 # does it submit to any jurisdiction.
8
9 package common::mpp_utils; # assumes Some/Module.pm
10 use Exporter;
11 use File::Basename;
12 use File::stat;
13
14 @ISA = ('Exporter');
15
16 @EXPORT = qw(&file_to_string &file_to_string_nofail &fortran_file_to_string &current_date
17 &formats_menu &intro_menu &interfaces_menu &example_menu &testsuite_submenus
18 &classicsuite_submenus &classic_menu &projections &devices &all_devices &projections_info
19 &magml_testsuite_menu &magml_testsuite_submenus &magml_devices &magml_file_to_string
20 &test_suite_selection_html compile_menu epsgram_testsuite_menu epsgram_devices &checkup_platforms
21 &checkup_testsuite_menu &c_file_to_string &c_testsuite_menu &c_testsuite_submenus &c_devices
22 &filesize &program_listing &last_modified_details &check_mpp_for_completion_message &get_valgrid_summary
23 &magplus_version_string &fortan_interface_menu &c_interface_menu &cpp_interface_menu &magml_interface_menu
24 &eps_interface_menu &emphasis &eps_template_from_magml_to_string &epsgram_checkup_menu
25 &log_file_to_string &html_embed &devices_info);
26
27
28
29
30
31
32
33 # ------------------------------------------------
34 # emphasis
35 # Returns the given text with HTML emphasis on it
36 # ------------------------------------------------
37
38 sub emphasis
39 {
40 my $text = $_[0];
41
42 return "<font color=\"#7777DD\"><b>$text</b></font>";
43 }
44
45
46
47
48
49
50 # ---------------------------------------
51 # filesize
52 # Returns the size of a file as a string
53 # ---------------------------------------
54
55 sub filesize {
56
57 local($filename) = $_[0];
58 my $size = -1024;
59 my $postfix;
60 my $rounded;
61
62 $st = stat($filename);
63
64 if ($st)
65 {
66 $size = $st->size;
67 }
68
69 $size = $size / 1024; # convert to Kb
70 $rounded = sprintf("%.0f", $size);
71 $postfix = "K";
72
73 if ($size > 1024) # convert to Mb?
74 {
75 $size = $size / 1024;
76 $postfix = "Mb";
77 $rounded = sprintf("%.2f", $size);
78 }
79
80
81 return "$rounded $postfix";
82 }
83
84
85
86 # ------------------------------------------------------------------------
87 # program_listing
88 # Returns a listing of the program executable (for the date/time and size)
89 # ------------------------------------------------------------------------
90
91 sub program_listing {
92
93 local ($filename) = $_[0];
94
95 $st = stat($filename);
96
97 my $strResult = "<pre><font size=\"-2\">";
98
99 if ($st)
100 {
101 # get a listing of the program
102
103 $strResult = $strResult . `ls -lh $filename`;
104 }
105 else
106 {
107 $strResult = $strResult . "File not found";
108 }
109
110 $strResult = $strResult . "</font></pre>";
111
112 return $strResult;
113 }
114
115
116
117
118
119 # ------------------------------------------------------------------------
120 # last_modified_details
121 # Returns the last-modified details for the program executable
122 # ------------------------------------------------------------------------
123
124 sub last_modified_details {
125
126 local ($filename) = $_[0];
127 local ($desc) = $_[1];
128 local @aparts;
129
130 my $strResult = "";
131 my $strListing;
132
133
134 $st = stat($filename);
135
136 if ($st)
137 {
138 # get a listing of the program
139
140 $strListing = `ls -lh $filename`;
141
142
143 # split into individual words and store in array
144
145 @aparts = split (/\s+/, $strListing);
146
147
148 $strResult = $strResult . @aparts[5] . " " . @aparts[6];
149 }
150 else
151 {
152 $strResult = $strResult . "File not found";
153 }
154
155 return $strResult;
156 }
157
158
159
160
161 # ------------------------------------------------------------------------
162 # check_mpp_for_completion_message
163 # Checks the given log file for the Magics++ completion message. If it is
164 # not there, then the program did not complete. Returns 1 (error) or 0
165 # ------------------------------------------------------------------------
166
167 sub check_mpp_for_completion_message {
168
169 local($filename) = @_[0];
170 local($line) = "";
171 my $line_num = 1;
172 my $buffer;
173
174 open (FILE, $filename) || return 0; # assume no news is bad news...
175
176
177 # for speed, especially when opening very large log files), we read just
178 # the last 800 characters and check them for the completion string
179
180 seek (FILE, 0, 2); # seek to the end of the file
181 my $file_len = tell (FILE); # the length of the file
182 my $seek_place = ($file_len > 800) ? 800 : $file_len;
183 seek (FILE, -$seek_place, 2); # seek to the (hopefully) start of the completion message
184 my $rv = read (FILE, $buffer, $seek_place); # read the last part of the file
185
186
187 if ($buffer =~ /.*COMPLETED.*/)
188 {
189 return 1;
190 }
191
192 return 0;
193 }
194
195
196
197 # ------------------------------------------------------------------------
198 # get_valgrid_summary
199 # Checks the valgrind log file for memory leak summary information
200 # and returns the most important as a string
201 # ------------------------------------------------------------------------
202
203 sub get_valgrid_summary {
204
205 local($filename) = @_[0];
206 local($line) = "";
207 my $line_num = 1;
208 my $buffer;
209
210 # example string we are trying to parse:
211 # ==15843== definitely lost: 7,484,447 bytes in 96,940 blocks.
212
213
214 open (FILE, $filename) || return "";
215
216
217 # for speed, especially when opening very large log files), we read just
218 # the last 800 characters and check them for the completion string
219
220 seek (FILE, 0, 2); # seek to the end of the file
221 my $file_len = tell (FILE); # the length of the file
222 my $seek_place = ($file_len > 800) ? 800 : $file_len;
223 seek (FILE, -$seek_place, 2); # seek to the (hopefully) start of the completion message
224 my $rv = read (FILE, $buffer, $seek_place); # read the last part of the file
225
226
227 if ($buffer =~ /.*definitely\slost:\s(\S+?)\sbytes/)
228 {
229 my $byteslost = $1;
230 my $bytesloststring = $1;
231
232 $byteslost =~ s/,//g; # remove commas from the string
233
234 if ($byteslost > 1024*500) # highlight if high number
235 {
236 return "lost <b>$bytesloststring</b> bytes";
237 }
238
239 return "lost $bytesloststring bytes";
240 }
241
242 return "";
243 }
244
245
246 # ------------------------------------------------------------------------
247 # magplus_version_string
248 # Returns the Magics++ version string
249 # ------------------------------------------------------------------------
250
251 sub magplus_version_string {
252
253 return `magics-config --version`;
254 }
255
256
257 # ------------------------------------------------------------------------------
258
259 # file_to_string: reads a file and returns the text as a string
260 # exits if the file does not exist
261
262 sub file_to_string
263 {
264 local($filename) = @_[0];
265 local($string) = "";
266
267 open (FILE, $filename) || return ("Cannot open file $filename.");
268 # open (FILE, $filename) || die "cannot open file $filename.";
269
270 @Lines = <FILE>;
271 foreach $line (@Lines)
272 {
273 $string = $string . $line;
274 }
275
276 return ($string);
277 }
278
279
280 # ------------------------------------------------------------------------------
281
282 # file_to_string_nofail:reads a file and returns the text as a string
283 # returns an error message but does not exit if the file does not exist
284
285 sub file_to_string_nofail
286 {
287 local($filename) = @_[0];
288 local($string) = "";
289
290 open (FILE, $filename) || return "cannot open file $filename.";
291
292 @Lines = <FILE>;
293 foreach $line (@Lines)
294 {
295 $string = $string . $line;
296 }
297
298 return ($string);
299 }
300
301
302
303 # ------------------------------------------------------------------------------
304
305 sub fortran_file_to_string
306 {
307 local($filename) = @_[0];
308 local($string) = "";
309 local(@Lines);
310 my $holdTerminator = $/;
311
312 # in order to load the file line-by-line, we make a note of
313 # the current line terminator, replace it with a proper newline,
314 # then put it back to how it was before.
315
316 $/ = "\n";
317
318 open (FILE, $filename) || return ("Cannot open file $filename.");
319 # open (FILE, $filename) || die "cannot open file $filename.";
320
321 @Lines = <FILE>;
322 close (FILE);
323
324 foreach $line (@Lines)
325 {
326 # is the line a comment?
327 # ie, does it start with a 'C' or 'c' on the first column?
328
329 if ($line =~ /^[Cc]/)
330 {
331 $string = $string . "<font color=\"#229922\"><i>" . $line . "</i><\/font>";
332 }
333
334
335 # no, but is it an 'include' statement?
336
337 # elsif ($line =~ /#include (".*")/)
338 elsif ($line =~ /#include "(.*)"/)
339 {
340 $string = $string . fortran_file_to_string ((dirname $filename) . "/$1");
341 }
342
343 else
344 {
345 # colour anything in "quotes" values
346
347 # $line =~ s/'([\w-\W\(\),\/\.:]*)'/<font color="#884444">'$1'<\/font>/g;
348 $line =~ s/'([\w-\W]*)'/<font color="#884444">'$1'<\/font>/g;
349
350
351 # colour the MAGICS function names
352
353 $line =~ s/(PSET[^(]*)/<font color="#444488"><b>$1<\/b><\/font>/g;
354
355
356 # colour the MAGICS action routine names
357
358 $line =~ s/(POPEN|PCLOSE|PCOAST|PCONT|PTEXT|PLEGEND|PAXIS|PGRAPH|PIMAGE|PGRIB|PNETCDF|PODB|PNEW|POBS|PSYMB|PWIND|PBOXPLOT)/<font color="#7777CC"><b>$1<\/b><\/font>/g;
359
360 $string = $string . $line;
361 }
362 }
363
364 $/ = holdTerminator;
365
366 return ($string);
367 }
368
369 # ------------------------------------------------------------------------------
370
371 sub c_file_to_string
372 {
373 local($filename) = @_[0];
374 local($string) = "";
375 local(@Lines);
376 my $holdTerminator = $/;
377
378 # in order to load the file line-by-line, we make a note of
379 # the current line terminator, replace it with a proper newline,
380 # then put it back to how it was before.
381
382 $/ = "\n";
383
384 open (FILE, $filename) || return ("Cannot open file $filename.");
385 # open (FILE, $filename) || die "cannot open file $filename.";
386
387 @Lines = <FILE>;
388 close (FILE);
389
390 foreach $line (@Lines)
391 {
392
393 # replace '<' with '&lt;' and '>' with '&gt;'
394
395 $line =~ s/</&lt;/g;
396 $line =~ s/>/&gt;/g;
397
398
399 # is the line a comment?
400 # ie, is it between /* and */ ?
401 # Ok, this method does not support multi-line comments!
402
403 $line =~ s/(.*)(\/\*)(.*)(\*\/)/$1<font color="#229922"><i>$2$3$4<\/i><\/font>/g;
404
405
406 # colour anything in "quotes" values
407
408 $line =~ s/"([\w-\(\),\/\.]*)"/<font color="#884444">"$1"<\/font>/g;
409
410
411 # colour function names (things before brackets)
412
413 $line =~ s/([^(\s]*\s)\(/<b>$1<\/b>\(/g;
414
415
416 # colour the preprocessor commands
417
418 $line =~ s/(#include.*$\|#if.*$\|#define.*$\|#endif.*$)/<font color="#FF0000">$1<\/font>/g;
419
420
421 # colour the MAGICS function names
422
423 $line =~ s/(mag_[^(]*)/<font color="#444488"><b>$1<\/b><\/font>/g;
424
425
426 $/ = holdTerminator;
427
428 $string = $string . $line;
429 }
430
431
432 return ($string);
433 }
434
435
436 # ------------------------------------------------------------------------------
437
438 sub magml_file_to_string
439 {
440 local($filename) = @_[0];
441 local($string) = "";
442 local(@Lines);
443 my $holdTerminator = $/;
444
445 # in order to load the file line-by-line, we make a note of
446 # the current line terminator, replace it with a proper newline,
447 # then put it back to how it was before.
448
449 $/ = "\n";
450
451 open (FILE, $filename) || return ("Cannot open file $filename.");
452
453 @Lines = <FILE>;
454 close (FILE);
455
456 foreach $line (@Lines)
457 {
458
459 # replace '<' with '&lt;' and '>' with '&gt;'
460
461 $line =~ s/</&lt;/g;
462 $line =~ s/>/&gt;/g;
463
464
465 # colour any attribute names (single-quotes)
466
467 $line =~ s/([\w]*)(\s*=\s*')/<font color="#5555AA">$1<\/font>$2/g;
468
469
470 # colour any attribute values (single-quotes)
471
472 $line =~ s/'([\w-\(\),\/\.]*)'/<font color="#448844">'$1'<\/font>/g;
473
474
475 # colour any attribute names (double-quotes)
476
477 # $line =~ s/([\w]*)(\s*=\s*")/<font color="#5555AA">$1<\/font>$2/g;
478
479
480 # colour any attribute values (double-quotes)
481
482 # $line =~ s/"([\w-\(\),\/\.]*)"/<font color="#448844">&quot;$1&quot;<\/font>/g;
483
484
485 # highlight comments
486
487 $line =~ s/(&lt;!--.*--&gt;)/<font color="#226622"><i>$1<\/i><\/font>/g;
488
489
490 # highlight tags
491
492 $line =~ s/(&lt;[\w\/]*)/<font color="#992222">$1<\/font>/g;
493 $line =~ s/(&gt;)/<font color="#992222">$1<\/font>/g;
494
495
496
497 $/ = holdTerminator;
498
499 $string = $string . $line;
500 }
501
502 return ($string);
503 }
504
505
506 # ------------------------------------------------------------------------------
507
508 # eps_template_from_magml_to_string
509 #
510 # parses the given MagML file, determines the name of the EPSgram template used
511 # (if any) and loads the template file, formatted in MagML style.
512
513 sub eps_template_from_magml_to_string
514 {
515 local($filename) = @_[0];
516 local($srddir ) = @_[1];
517
518 my $magml = file_to_string_nofail ($filename);
519 print ("filename:" . $filename);
520
521
522 # if ($magml =~ m/.*template='(.*)'.*/)
523 if ($magml =~ m/.*[\w]*template='(\S[^']*)'\s.*/)
524 {
525 return magml_file_to_string ("$srddir/$1");
526 }
527
528 else
529 {
530 print ("Could not find eps template in $filename\n");
531 }
532 }
533
534
535 # ------------------------------------------------------------------------------
536
537 # this highlights any line with ERROR in red
538
539 sub log_file_to_string
540 {
541 local($filename) = @_[0];
542 local($string) = "";
543 local(@Lines);
544 my $holdTerminator = $/;
545
546 # in order to load the file line-by-line, we make a note of
547 # the current line terminator, replace it with a proper newline,
548 # then put it back to how it was before.
549
550 $/ = "\n";
551
552 open (FILE, $filename) || return ("Cannot open file $filename.");
553
554 @Lines = <FILE>;
555 close (FILE);
556
557 foreach $line (@Lines)
558 {
559 # highlight ERROR in red
560
561 $line =~ s/(ERROR.*$)/<b><font color="#FF0000">$1<\/font><\/b>/g;
562
563
564 $/ = holdTerminator;
565
566 $string = $string . $line;
567 }
568
569
570 return ($string);
571 }
572
573
574
575 # ----------------------------------------------------------
576 # html_embed
577 # Returns the HTML code for embedding a given type of image
578 # ----------------------------------------------------------
579
580 sub html_embed
581 {
582 my $format = $_[0];
583 my $file = $_[1];
584 my $width = $_[2];
585
586 if ($format eq "img") {return "<img src=\"$file\" width=\"$width\">";}
587 elsif ($format eq "svg") {return "<object data=\"$file\" width=\"$width\" type=\"image/svg+xml\"\></object>";}
588 else {return "No embedded image";}
589 }
590
591
592
593
594 # ------------------------------------------------------------------------------
595
596 sub current_date
597 {
598 my ($default) = "";
599
600 # retrieve the current date
601
602 ($Second, $Minute, $Hour, $Day, $Month, $Year, $WeekDay, $DayOfYear, $IsDST) = localtime(time);
603
604 my $RealMonth = $Month + 1; # Months of the year are not zero-based
605
606 if($RealMonth < 10) # adjust for one-digit months, adding a leading zero
607 {
608 $RealMonth = "0" . $RealMonth;
609 }
610
611 if($Day < 10)
612 {
613 $Day = "0" . $Day; # add a leading zero to one-digit days
614 }
615
616
617 $Fixed_Year = $Year + 1900;
618
619 $result = "$Day.$RealMonth.$Fixed_Year";
620 return $result;
621 }
622
623 # ------------------------------------------------------------------------------
624
625 sub formats_menu
626 {
627 local ($audience) = @_[0];
628 my @f_menu;
629
630 if ($audience eq "internal")
631 {
632 @f_menu = (
633 { name => "PS/EPS/PDF", html => "ps.html", type => "output", description => "PS/EPS/PDF Output Formats"},
634 { name => "GD", html => "gd.html", type => "output", description => "GD Driver for GIF, PNG and JPEG Output Formats"},
635 { name => "SVG", html => "svg.html", type => "output", description => "SVG Output Format"},
636 { name => "Multiple", html => "multioutput.html", type => "output", description => "Multiple Output Formats"},
637 );
638 }
639 else
640 {
641 @f_menu = (
642 { name => "PS/EPS/PDF", html => "ps.html", type => "output", description => "PS/EPS/PDF Output Formats"},
643 { name => "GD", html => "gd.html", type => "output", description => "GD Driver for GIF, PNG and JPEG Output Formats"},
644 { name => "Multiple", html => "multioutput.html", type => "output", description => "Multiple Output Formats"},
645 );
646 }
647
648 return @f_menu;
649 }
650
651
652 sub intro_menu
653 {
654 local ($audience) = @_[0];
655 my @i_menu;
656
657 if ($audience eq "internal")
658 {
659 @i_menu = (
660 { name => "Features", html => "features_now.html", description => "Features currently implemented in Magics++"},
661 { name => "Changes", html => "changes.html", description => "Changes from MAGICS 6"},
662 { name => "Contouring", html => "akima.html", description => "Description of the new contouring package"},
663 { name => "Coastlines", html => "coastlines.html", description => "Coastlines in Magics++"},
664 { name => "Workshop Talk", html => "index.html", description => "Workshop Documents"},
665 );
666 }
667 else
668 {
669 @i_menu = (
670 { name => "Workshop Talk", html => "index.html", description => "Workshop Documents"},
671 { name => "Contouring", html => "akima.html", description => "Description of the new contouring package"},
672 { name => "Coastlines", html => "coastlines.html", description => "Coastlines in Magics++"},
673 );
674 }
675
676 return @i_menu;
677 }
678
679
680 sub interfaces_menu
681 {
682 my @in_menu = (
683 { name => "FORTRAN", html => "fortran/index.html", description => "FORTRAN Programming Interface"},
684 { name => "C", html => "c/index.html", description => "C Programming Interface"},
685 # { name => "C++", html => "cpp/index.html", description => "C++ Programming Interface"},
686 { name => "MagML", html => "magml/index.html", description => "XML Programming Interface (MagML)"},
687 # { name => "Metgram", html => "eps/index.html", description => "XML-based Interface for producing metgrams"},
688 );
689
690 return @in_menu;
691 }
692
693
694 sub compile_menu
695 {
696 my @c_menu = (
697 { name => "Compilation", html => "index.html", description => "Compiling Magics++"},
698 { name => "ODB Support", html => "compile_with_odb.html", description => "ODB Support"},
699 );
700
701 return @c_menu;
702 }
703
704
705
706 sub fortan_interface_menu
707 {
708 my @f_in_menu;
709
710 if ($audience eq "internal")
711 {
712 @f_in_menu = (
713 { name => "Introduction", html => "index.html", description => "FORTRAN Programming Interface"},
714 { name => "Compilation", html => "fortran_compile.html", description => "Compilation"},
715 { name => "ODB Support", html => "fortran_compile_with_odb.html", description => "ODB Support"},
716 { name => "Parameters", html => "../../parameters/fortranactionindex.html", description => "FORTRAN Parameters"},
717 { name => "Examples", html => "../../examples/fortran/index.html", description => "Examples"},
718 );
719 }
720 else
721 {
722 @f_in_menu = (
723 { name => "Introduction", html => "index.html", description => "FORTRAN Programming Interface"},
724 { name => "Parameters", html => "../../parameters/fortranactionindex.html", description => "FORTRAN Parameters"},
725 { name => "Examples", html => "../../examples/fortran/index.html", description => "Examples"},
726 );
727 }
728
729 return @f_in_menu;
730 }
731
732 sub c_interface_menu
733 {
734 my @c_in_menu = (
735 { name => "Introduction", html => "index.html", description => "C Programming Interface"},
736 { name => "Examples", html => "../../examples/c/index.html", description => "Examples"},
737 );
738
739 return @c_in_menu;
740 }
741
742 sub cpp_interface_menu
743 {
744 my @cpp_in_menu = (
745 { name => "Introduction", html => "index.html", description => "C++ Programming Interface"},
746 );
747
748 return @cpp_in_menu;
749 }
750
751 sub magml_interface_menu
752 {
753 my @magml_in_menu = (
754 { name => "Introduction", html => "index.html", description => "MagML Programming Interface"},
755 { name => "Tags and Attributes", html => "outline.html", description => "MagML Tags and Attributes"},
756 { name => "Examples", html => "../../examples/magml/index.html", description => "MagML Examples"},
757 );
758
759 return @magml_in_menu;
760 }
761
762
763 sub eps_interface_menu
764 {
765 my @eps_in_menu = (
766 { name => "Introduction", html => "index.html", description => "Producing EPSgrams with Magics++"},
767 );
768
769 return @eps_in_menu;
770 }
771
772
773 sub testsuite_submenus
774 {
775 my @ts_subs_menu = (
776 { name => "Basic" , first => "coastonly_1"},
777 { name => "Data" , first => "cont_array"},
778 { name => "Contouring" , first => "cont_noshade_ex"},
779 { name => "ContStyles" , first => "cont_dotshade_test1"},
780 { name => "Coastlines" , first => "coast_res"},
781 { name => "Image" , first => "image_basic"},
782 { name => "Layout" , first => "layout_auto_ex"},
783 { name => "Observations", first => "obs_ex"},
784 { name => "ODB" , first => "odb_t2m_ex"},
785 { name => "Text" , first => "text_ex"},
786 { name => "Graph" , first => "graf01"},
787 { name => "Axis" , first => "axis01"},
788 { name => "Wind" , first => "wind_ex"},
789 { name => "MetOps" , first => "metops_t_and_z"},
790 { name => "External" , first => "ukmo_netcdf_01"},
791 );
792
793 return @ts_subs_menu;
794 }
795
796
797
798 sub example_menu
799 {
800 # category internal www external www
801 my @ex_menu = (
802 { name => "No Plot", source => "noplot", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Open and Close MAGICS, no plotting"},
803 { name => "Coast Grid Only", source => "coastonly_1", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "No data, just coast grid"},
804 { name => "Coastline Only", source => "coastonly_2", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "No data, just coastline"},
805 { name => "Linear Contour Only", source => "dataonly_linear", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Only data (LINEAR contour), no coastline"},
806 { name => "Import", source => "import_1", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Import and plot images"},
807 { name => "Multiple Projections",source => "multiple_projections", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Multiple projections"},
808 { name => "PENQ 1", source => "penq_1", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "PENQ test 1"},
809 { name => "Land/Sea Shading", source => "landsea_shading", cat => "Coastlines", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Land and Sea Shading"},
810 { name => "Map Boundaries", source => "coast_boundaries", cat => "Coastlines", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Map Boundaries"},
811 { name => "Large Area", source => "views_large_area", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Area greater than 360 degrees"},
812 { name => "PPRINT", source => "basic_pprint", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "PPRINT action routine"},
813 { name => "Netcdf Data Plotting",source => "netcdf_ex", cat => "Data", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "y", svg => "n", gif => "y", drivers => "n",description => "Netcdf Data Plotting"},
814 { name => "Netcdf - More", source => "data_netcdf2", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "y", svg => "n", gif => "y", drivers => "n",description => "Netcdf Data Plotting (large file)"},
815 { name => "Array Data Contouring", source => "cont_array", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Array Data Contouring"},
816 { name => "Array Data Wind", source => "wind_vector_array", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Array Data Wind Plotting"},
817 { name => "Array Data Wind", source => "wind_polar_array", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Array Data Wind Plotting (Polar)"},
818 { name => "Invalid GRIB indicator", source => "data_invalid_values", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Masked data to test invalid GRIB indicator"},
819 { name => "T799 High Res", source => "data_t799", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of 0.225 degree ll t799 grid"},
820 { name => "T799 T2m High Res", source => "data_t799_t2m", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of 0.225 degree ll t799 grid (T2m)"},
821 { name => "T1279 GG640", source => "data_t1279_gg640", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of gg640 t1279 grid"},
822 { name => "T1279 GG640 Cell", source => "data_t1279_gg640_cell", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of gg640 t1279 grid with cell shading"},
823 { name => "T1279 GG640 UK", source => "data_t1279_gg640_uk", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of gg640 t1279 grid on UK area"},
824 { name => "Reduced GG640", source => "data_rgg640", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of reduced gg640 grid "},
825 { name => "Reduced GG2000", source => "data_t3999_rgg2000", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of reduced gg2000 grid "},
826 { name => "Reduced Lat/long", source => "data_rll_1-deg", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of reduced lat/long grid "},
827 { name => "GRIB Sources", source => "data_gribs", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of various GRIB files"},
828 { name => "GRIB 2", source => "data_grib2", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of GRIB 2 files"},
829 { name => "Gaussian Grid", source => "data_gaussian", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of Gaussian grid GRIB files"},
830 { name => "Limited Area", source => "data_limited_area", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of limited area GRIB files"},
831 { name => "Hirlam", source => "data_hirlam", cat => "Data", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Test of Hirlam rotated GRIB files"},
832 { name => "Contours", source => "cont_noshade_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "y",description => "Basic Contouring, no shading"},
833 { name => "Solid", source => "cont_solidshade_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic Contouring, solid shading"},
834 { name => "Solid 1", source => "cont_solidshade_test1", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Solid Shading area tests (z500)"},
835 { name => "Solid 2", source => "cont_solidshade_test2", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Solid Shading area tests (rh850)"},
836 { name => "Solid 3", source => "cont_solidshade_test3", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Solid Shading area tests (lsp25)"},
837 { name => "Grid Shade", source => "cont_gridshade_test1", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Grid Shading (solid)area tests (lsp25)"},
838 { name => "Dot", source => "cont_dotshade_test1", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Dot Shading area tests (z500)"},
839 { name => "Hatch", source => "cont_hatchshade_ex", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic Contouring, hatch shading"},
840 { name => "Marker", source => "cont_markershade_ex", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic Contouring, marker shading"},
841 { name => "Cell", source => "cont_cellshade_test1", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic Contouring, cell shading"},
842 { name => "Grid", source => "cont_gridshade_test1", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic Contouring, grid shading"},
843 { name => "Split Contour", source => "cont_split", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Split contour"},
844 { name => "Grid Values", source => "cont_gridvals_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring with grid values (subarea)"},
845 { name => "Missing Vals", source => "cont_missing", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring with missing values"},
846 { name => "Missing (Montreal)", source => "cont_missing_2", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring with missing values (Montreal data)"},
847 { name => "Flat Field 1", source => "cont_flat_field_1", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring a fairly flat field"},
848 { name => "EFOV", source => "cont_EFOV", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "VarEPS (EFOV)"},
849 { name => "Line Styles", source => "cont_linestyles_ex", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "yes", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring with different line styles"},
850 { name => "Methods", source => "cont_methods_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring using different methods"},
851 { name => "Resolutions", source => "cont_res_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring using different resolutions"},
852 { name => "Attributes", source => "cont_attributes_ex", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contour attributes"},
853 # { name => "Contour Attributes 2",source => "cont_attributes_manual_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "y", gif => "y", drivers => "n",description => "Contour attributes (manual layout)"},
854 { name => "Labels", source => "cont_labels", cat => "ContStyles", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "y", gif => "y", drivers => "n",description => "Contour labels"},
855 { name => "Alternate Contours", source => "cont_alternate", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Contouring alternate bands"},
856 { name => "Automatic Contour", source => "cont_auto_ex", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Automatic contour method selection"},
857 { name => "Automatic (T799)", source => "cont_auto_t799", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "yes",no69 => "n", svg => "y", gif => "y", drivers => "n",description => "Automatic contour (T799)"},
858 { name => "Automatic (T1279)", source => "cont_auto_t1279", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "yes",no69 => "n", svg => "y", gif => "y", drivers => "n",description => "Automatic contour (T1279)"},
859 { name => "Akima Example", source => "cont_akima_example", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Simple Akima example (used in slides)"},
860 # { name => "LINEAR Contour Tests",source => "cont_linear_res", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Automatic contour parameters"},
861 { name => "CONT08", source => "cont08", cat => "Contouring", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "CONT08 example"},
862 { name => "Satellite Image", source => "image_basic", cat => "Image", critial => "n", lang => "fortran", fordocs => "no", ext => "no ",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Basic satellite image example"},
863 { name => "Satellite Projections",source => "image_projs", cat => "Image", critial => "n", lang => "fortran", fordocs => "no", ext => "no ",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Satellite imagery under different projections"},
864 { name => "Satellites", source => "image_sats", cat => "Image", critial => "n", lang => "fortran", fordocs => "no", ext => "no ",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Different satellites"},
865 { name => "Met 9 Zoomed", source => "image_met9_zoomed", cat => "Image", critial => "n", lang => "fortran", fordocs => "no", ext => "no ",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Zoomed areas of Meteosat 9"},
866 { name => "Met 9 Zoomed (New)", source => "image_met9_post_oct2007", cat => "Image", critial => "n", lang => "fortran", fordocs => "no", ext => "no ",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Zoomed areas of Meteosat 9 (post 12th Oct 2007)"},
867 { name => "Auto Page Layout", source => "layout_auto_ex", cat => "Layout", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Automatic Page layout example"},
868 { name => "Manual Page Layout", source => "layout_manual_ex", cat => "Layout", critial => "n", lang => "fortran", fordocs => "yes", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Manual Page layout example"},
869 { name => "Manual Layout 2", source => "layout_manual_2", cat => "Layout", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Simple Manual Page layout example"},
870 { name => "6 Plots", source => "layout_6_plots", cat => "Layout", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "6 Plots on a page"},
871 { name => "User Logo", source => "logo", cat => "Layout", critial => "n", lang => "fortran", fordocs => "yes", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "User logo example"},
872 { name => "User Logo with Data", source => "logo_with_data", cat => "Layout", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "User logo with data"},
873 { name => "Logo With Layout", source => "logo_layout", cat => "Layout", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Logos under different layouts"},
874 { name => "Transparent White", source => "transparent", cat => "Layout", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "GD_TRANSPARENT set to ON"},
875 { name => "Coastline Res Tests", source => "coast_res", cat => "Coastlines", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Coastline resolution visualisation"},
876 { name => "Coastline Attributes",source => "coast_attributes_ex", cat => "Coastlines", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Coastline attributes"},
877 { name => "Observation Plotting",source => "obs_ex", cat => "Observations", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Observation Plotting"},
878 { name => "ODB 2m T Example", source => "odb_t2m_ex", cat => "ODB", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "y", svg => "n", gif => "y", drivers => "n",description => "ODB (2m Temperature)"},
879 { name => "ODB AIRS Example", source => "odb_airs_ex", cat => "ODB", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "y", svg => "n", gif => "y", drivers => "n",description => "ODB (AIRS)"},
880 { name => "Polar Stereographic", source => "proj_polarstereo_ex", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Polar Stereographic projection"},
881 { name => "Polar Stereo Solid", source => "proj_polarstereo_solid", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Polar Stereographic, solid shading"},
882 { name => "Missing GRIB file", source => "errors_missinggrib", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Missing GRIB data file"},
883 { name => "Bad Parameter", source => "errors_badparam", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Bad Parameter"},
884 { name => "Wrong Parameter Type", source => "errors_wrongparamtype", cat => "Basic", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wrong Parameter Type"},
885 { name => "Wind Plotting", source => "wind_ex", cat => "Wind", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind Plotting"},
886 { name => "Wind Arrows", source => "wind_arrows", cat => "Wind", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind Arrows"},
887 { name => "Wind Arrows [New]", source => "wind_arrows_new", cat => "Wind", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind Arrows [New]"},
888 { name => "Wind (Vor/Div)", source => "wind_vo_d", cat => "Wind", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind (Vorticity/Divergence)"},
889 { name => "Wind / land shading", source => "wind_landshade", cat => "Wind", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind with land shading"},
890 { name => "Wind Test", source => "wind_test", cat => "Wind", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wind Test"},
891 { name => "Symbol Table", source => "symbol_table", cat => "Observations", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Symbol Table"},
892 { name => "Symb02", source => "symb02", cat => "Observations", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Symb02"},
893 { name => "Graf01", source => "graf01", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Graf01"},
894 { name => "Graf02", source => "graf02", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Graf02"},
895 { name => "Graf03", source => "graf03", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Graf03"},
896 { name => "Graf04", source => "graf04", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Graf04"},
897 { name => "Graph Venice", source => "graph_venice_01", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Graph Venice"},
898 { name => "Scatterplot Venice", source => "graph_venice_02", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Scatterplot Venice"},
899 { name => "Boxplot", source => "boxplot_ex", cat => "Graph", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "y", svg => "n", gif => "y", drivers => "n",description => "Boxplot Examples"},
900 { name => "Taylor", source => "taylor_ex", cat => "Graph", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "y", svg => "n", gif => "y", drivers => "n",description => "Taylor Diagram Examples"},
901 { name => "Lines", source => "graph_lines", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "y", svg => "n", gif => "y", drivers => "n",description => "Line Styles/Thicknesses"},
902 { name => "PolyLines", source => "polyline_1", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "y", svg => "y", gif => "y", drivers => "n",description => "Geographical polylines"},
903 { name => "EPS Time Series", source => "graph_eps_tseries", cat => "Graph", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "y", gif => "y", drivers => "n",description => "EPS Time Series"},
904 { name => "Axis01", source => "axis01", cat => "Axis", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Axis01"},
905 { name => "Axis02", source => "axis02", cat => "Axis", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Axis02"},
906 { name => "Text", source => "text_ex", cat => "Text", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Text Plotting"},
907 { name => "GRIB Titles", source => "text_grib_titles_ex", cat => "Text", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "GRIB titles"},
908 { name => "Fonts", source => "text_font_tables", cat => "Text", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Text Font Tables (for MAGOCS 6.x)"},
909 { name => "Text01", source => "text01", cat => "Text", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Text01"},
910 { name => "T and Z", source => "metops_t_and_z", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "yes", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "T850 with Z500 overlaid"},
911 { name => "MSL/Precip", source => "metops_msl_and_precip", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "MSL with Precipitation"},
912 { name => "MSL/T", source => "metops_msl_and_t", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "MSL with 850 hPa Temperature"},
913 { name => "Z/T", source => "metops_p12zt500", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Z 500 with 850 hPa Temperature"},
914 { name => "Precip", source => "metops_plspcpsn", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Precipitation"},
915 { name => "2mT/30m Wind", source => "metops_t2_and_wind", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "yes", ext => "yes",no69 => "n", svg => "n", gif => "y", drivers => "n",description => "2m T with Wind (30m)"},
916 { name => "Cloud Cover", source => "metops_cloudcover", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "yes", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Cloud Cover"},
917 { name => "Cluster Tubes (Old)", source => "metops_cluster_tube_old", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Cluster Tubes (Old)"},
918 { name => "Cluster Tubes (New)", source => "metops_cluster_tube_new", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Cluster Tubes (New)"},
919 { name => "Wave Height", source => "metops_wave_height", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Wave Height"},
920 { name => "Weather Risk", source => "metops_weather_risk", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Weather Risk"},
921 { name => "Ensemble Stamps", source => "metops_enplot", cat => "MetOps", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Ensemble Stamps"},
922 { name => "Wind Venice", source => "wind_venice", cat => "External", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "Venice wind test"},
923 { name => "UKMO netCDF 01", source => "ukmo_netcdf_01", cat => "External", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "UKMO netCDF Test 01"},
924 { name => "UKMO netCDF 02", source => "ukmo_netcdf_02", cat => "External", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "UKMO netCDF Test 02"},
925 { name => "UKMO netCDF 03", source => "ukmo_netcdf_03", cat => "External", critial => "n", lang => "fortran", fordocs => "no", ext => "no", no69 => "n", svg => "n", gif => "y", drivers => "n",description => "UKMO netCDF Test 03"},
926 ) ;
927
928 return @ex_menu;
929 }
930
931
932
933
934
935 # set of examples from the 'classic' test suite
936
937 sub classicsuite_submenus
938 {
939 my @classic_subs_menu = (
940 { name => "Axis" , first => "axis01"},
941 { name => "Contour" , first => "cont01"},
942 { name => "Data" , first => "data01"},
943 { name => "Graph" , first => "graf01"},
944 { name => "Image" , first => "image01"},
945 { name => "Legend" , first => "legend01"},
946 { name => "Obs" , first => "obs01"},
947 { name => "Plot" , first => "plot01"},
948 { name => "Stream" , first => "strm01"},
949 { name => "Symbol" , first => "symb01"},
950 { name => "Text" , first => "text01"},
951 { name => "Wind" , first => "wind01"},
952 );
953
954 return @classic_subs_menu;
955 }
956
957
958 sub classic_menu
959 {
960 my @cls_menu = (
961 { source => "axis01", cat => "Axis", mpp => "y", svg => "n", gif => "y"},
962 { source => "axis02", cat => "Axis", mpp => "y", svg => "n", gif => "y"},
963 { source => "cont01", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
964 { source => "cont02", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
965 { source => "cont03", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
966 { source => "cont04", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
967 { source => "cont05", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
968 { source => "cont06", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
969 { source => "cont07", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
970 { source => "cont08", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
971 { source => "cont09", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
972 { source => "cont10", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
973 { source => "cont11", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
974 { source => "cont12", cat => "Contour", mpp => "y", svg => "n", gif => "y"},
975 { source => "data01", cat => "Data", mpp => "y", svg => "n", gif => "y"},
976 { source => "data02", cat => "Data", mpp => "y", svg => "n", gif => "y"},
977 { source => "data03", cat => "Data", mpp => "y", svg => "n", gif => "y"},
978 { source => "data04", cat => "Data", mpp => "y", svg => "n", gif => "y"},
979 { source => "data05", cat => "Data", mpp => "y", svg => "n", gif => "y"},
980 { source => "data06", cat => "Data", mpp => "y", svg => "n", gif => "y"},
981 { source => "graf01", cat => "Graph", mpp => "y", svg => "n", gif => "y"},
982 { source => "graf02", cat => "Graph", mpp => "y", svg => "n", gif => "y"},
983 { source => "graf03", cat => "Graph", mpp => "y", svg => "n", gif => "y"},
984 { source => "graf04", cat => "Graph", mpp => "y", svg => "n", gif => "y"},
985 { source => "image01", cat => "Image", mpp => "y", svg => "n", gif => "y"},
986 { source => "image02", cat => "Image", mpp => "y", svg => "n", gif => "y"},
987 { source => "image03", cat => "Image", mpp => "y", svg => "n", gif => "y"},
988 { source => "image04", cat => "Image", mpp => "y", svg => "n", gif => "y"},
989 { source => "image05", cat => "Image", mpp => "y", svg => "n", gif => "y"},
990 { source => "image06", cat => "Image", mpp => "y", svg => "n", gif => "y"},
991 { source => "image07", cat => "Image", mpp => "y", svg => "n", gif => "y"},
992 { source => "image08", cat => "Image", mpp => "y", svg => "n", gif => "y"},
993 { source => "legend01", cat => "Legend", mpp => "y", svg => "n", gif => "y"},
994 { source => "legend02", cat => "Legend", mpp => "y", svg => "n", gif => "y"},
995 { source => "legend03", cat => "Legend", mpp => "y", svg => "n", gif => "y"},
996 { source => "legend04", cat => "Legend", mpp => "y", svg => "n", gif => "y"},
997 { source => "obs01", cat => "Obs", mpp => "y", svg => "n", gif => "y"},
998 { source => "obs02", cat => "Obs", mpp => "y", svg => "n", gif => "y"},
999 { source => "obs03", cat => "Obs", mpp => "y", svg => "n", gif => "y"},
1000 { source => "obs04", cat => "Obs", mpp => "y", svg => "n", gif => "y"},
1001 { source => "plot01", cat => "Plot", mpp => "y", svg => "n", gif => "y"},
1002 { source => "plot02", cat => "Plot", mpp => "y", svg => "n", gif => "y"},
1003 { source => "plot03", cat => "Plot", mpp => "y", svg => "n", gif => "y"},
1004 { source => "plot04", cat => "Plot", mpp => "y", svg => "n", gif => "y"},
1005 { source => "strm01", cat => "Stream", mpp => "y", svg => "n", gif => "y"},
1006 { source => "strm02", cat => "Stream", mpp => "y", svg => "n", gif => "y"},
1007 { source => "symb01", cat => "Symbol", mpp => "y", svg => "n", gif => "y"},
1008 { source => "symb02", cat => "Symbol", mpp => "y", svg => "n", gif => "y"},
1009 { source => "symb03", cat => "Symbol", mpp => "y", svg => "n", gif => "y"},
1010 { source => "text01", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1011 { source => "text02", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1012 { source => "text03", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1013 { source => "text04", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1014 { source => "text05", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1015 { source => "text06", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1016 { source => "text07", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1017 { source => "text08", cat => "Text", mpp => "y", svg => "n", gif => "y"},
1018 { source => "wind01", cat => "Wind", mpp => "y", svg => "n", gif => "y"},
1019 { source => "wind02", cat => "Wind", mpp => "y", svg => "n", gif => "y"},
1020 { source => "wind03", cat => "Wind", mpp => "y", svg => "n", gif => "y"},
1021 { source => "wind04", cat => "Wind", mpp => "y", svg => "n", gif => "y"},
1022 ) ;
1023
1024 return @cls_menu;
1025 }
1026
1027
1028
1029 # ----------------------------------------------------------------------
1030 # projections
1031 # Returns a list of all the projections that are used in the test suite
1032 # ----------------------------------------------------------------------
1033
1034 sub projections
1035 {
1036 my @projections_list = ("CYLINDRICAL", "POLAR_STEREOGRAPHIC", "MERCATOR");
1037
1038 return @projections_list;
1039 }
1040
1041
1042 # ------------------------------------------------------------
1043 # projections_info
1044 # Returns a list of information - one hash for each projection
1045 # ------------------------------------------------------------
1046
1047 sub projections_info
1048 {
1049 my %projections_info_hash = (
1050
1051 "MERCATOR" =>
1052 {
1053 shortname => "mercator",
1054 bgcolour => "#FFEEEE",
1055 },
1056
1057 "POLAR_STEREOGRAPHIC" =>
1058 {
1059 shortname => "polar",
1060 bgcolour => "#EEFFEE",
1061 },
1062
1063 "CYLINDRICAL" =>
1064 {
1065 shortname => "cylindrical",
1066 bgcolour => "#EEEEFF",
1067 },
1068 );
1069
1070 return %projections_info_hash;
1071 }
1072
1073
1074
1075 # ----------------------------------------------------------------------
1076 # devices
1077 # Returns a list of all the devices that are used in the test suite
1078 # ----------------------------------------------------------------------
1079
1080 sub devices
1081 {
1082 my @devices_list = ("PS", "SVG", "GIF", "PNG");
1083
1084 return @devices_list;
1085 }
1086
1087
1088 # -------------------------------------------------------------------------
1089 # all_devices
1090 # Returns a list of all the devices that are used in the drivers test suite
1091 # -------------------------------------------------------------------------
1092
1093 sub all_devices
1094 {
1095 # my @devices_list = ("PS", "GIF", "SVG", "PDF", "JPEG", "EPS", "PNG", "KML");
1096 my @devices_list = ("PS", "SVG", "PDF", "EPS", "PNG", "KML", "GIF");
1097
1098 return @devices_list;
1099 }
1100
1101
1102 # -------------------------------------------------------------------------
1103 # devices_info
1104 # Returns a list of information on all the available output devices
1105 # -------------------------------------------------------------------------
1106
1107 sub devices_info
1108 {
1109
1110 # categories:
1111 # multifile: "y" if multiple output files can be produced from a single run
1112
1113 my %devices_info_list = (
1114 PS => { multifile => "n", embedtag => "", toprow => "n"},
1115 PDF => { multifile => "n", embedtag => "", toprow => "n"},
1116 EPS => { multifile => "y", embedtag => "", toprow => "n"},
1117 GIF => { multifile => "n", embedtag => "img", toprow => "n"},
1118 SVG => { multifile => "y", embedtag => "svg", toprow => "n"},
1119 JPEG => { multifile => "y", embedtag => "img", toprow => "n"},
1120 PNG => { multifile => "y", embedtag => "img", toprow => "y"},
1121 KML => { multifile => "n", embedtag => "", toprow => "n"},
1122 ) ;
1123
1124
1125 # my @devices_info_list = (
1126 # { name => "PS", multifile => "n"},
1127 # { name => "GIF", multifile => "n"},
1128 # { name => "SVG", multifile => "n"},
1129 # { name => "PDF", multifile => "n"},
1130 # { name => "JPEG", multifile => "n"},
1131 # { name => "EPS", multifile => "n"},
1132 # { name => "PNG", multifile => "n"},
1133 # { name => "KML", multifile => "n"},
1134 # ) ;
1135
1136 return %devices_info_list;
1137 }
1138
1139
1140
1141 sub magml_testsuite_menu
1142 {
1143 # category internal www external www
1144 my @magml_tests_menu = (
1145 { name => "Coast grid only", source => "coastonly_1", cat => "Basic", lang => "magml", fordocs => "no", ext => "no", description => "Coast grid only"},
1146 { name => "Coast and grid only", source => "coastonly_2", cat => "Basic", lang => "magml", fordocs => "yes", ext => "yes", description => "Coast and grid only"},
1147 { name => "Simple Contour", source => "contour_simple", cat => "Basic", lang => "magml", fordocs => "yes", ext => "yes", description => "Simple contour plotting with MagML"},
1148 { name => "Simple Contour [v]", source => "contour_simple_v", cat => "Basic", lang => "magml", fordocs => "yes", ext => "yes", description => "Simple contour plotting with variables"},
1149 { name => "Field overlays", source => "contour_tzuv", cat => "Basic", lang => "magml", fordocs => "yes", ext => "yes", description => "Overlay fields from one grib file"},
1150 { name => "Hirlam", source => "hirlam", cat => "Basic", lang => "magml", fordocs => "yes", ext => "yes", description => "Hirlam rotated grid"},
1151 { name => "Contour Line Styles", source => "contour_line_styles", cat => "Contour", lang => "magml", fordocs => "no", ext => "no", description => "Contour Line Styles"},
1152 { name => "Contour Shade Styles", source => "contour_shade_styles", cat => "Contour", lang => "magml", fordocs => "no", ext => "no", description => "Contour Shade Styles"},
1153 { name => "Shaded Contour", source => "contour_shaded", cat => "Contour", lang => "magml", fordocs => "no", ext => "no", description => "Shaded Contour and Coastlines"},
1154 { name => "Multipage 1", source => "multipage_1", cat => "Layout", lang => "magml", fordocs => "no", ext => "no", description => "Multiple pages with MagML"},
1155 { name => "Axis Test", source => "axistest", cat => "Axis", lang => "magml", fordocs => "no", ext => "no", description => "Cartesian Axis Test"},
1156 { name => "Taylor Diagram 1", source => "taylor_1", cat => "Axis", lang => "magml", fordocs => "no", ext => "no", description => "Taylor Diagram Test 1"},
1157 { name => "Taylor Diagram 2", source => "taylor_2", cat => "Axis", lang => "magml", fordocs => "no", ext => "no", description => "Taylor Diagram Test 2"},
1158 { name => "Nils Plot", source => "nils", cat => "Research", lang => "magml", fordocs => "no", ext => "no", description => "Nils' Plot"},
1159 { name => "Hovmoeller", source => "hovmoeller", cat => "Research", lang => "magml", fordocs => "no", ext => "no", description => "Nils' Hovmoeller Plot"},
1160 { name => "MSL/T", source => "metops_msl_and_t", cat => "MetOps", lang => "magml", fordocs => "yes", ext => "yes", description => "MSL with 850 hPa Temperature"},
1161 { name => "Wind 925", source => "plot_wind_925_pl", cat => "Baudouin", lang => "magml", fordocs => "yes", ext => "no", description => "6 Global Wind fields"},
1162 { name => "Soil Temp", source => "plot_soil_temperature_0_sfc", cat => "Baudouin", lang => "magml", fordocs => "yes", ext => "no", description => "Soil Temperature"},
1163 { name => "Cloud Cover", source => "plot_total_cloud_cover_0_sfc", cat => "Baudouin", lang => "magml", fordocs => "yes", ext => "no", description => "Total Cloud Cover"},
1164 ) ;
1165
1166 return @magml_tests_menu;
1167 }
1168
1169
1170 sub magml_testsuite_submenus
1171 {
1172 my @magml_ts_subs_menu = (
1173 { name => "Basic" , first => "contour_simple"},
1174 { name => "Contour" , first => "contour_line_styles"},
1175 { name => "Layout" , first => "multipage_1"},
1176 { name => "Axis" , first => "axistest"},
1177 { name => "Research" , first => "nils"},
1178 { name => "MetOps" , first => "metops_msl_and_t"},
1179 { name => "Baudouin" , first => "plot_wind_925_pl"},
1180 );
1181
1182 return @magml_ts_subs_menu;
1183 }
1184
1185
1186
1187 # -----------------------------------------------------------------------
1188 # magml_devices
1189 # Returns a list of all the devices that are used in the MagML test suite
1190 # -----------------------------------------------------------------------
1191
1192 sub magml_devices
1193 {
1194 my @magml_devices_list = ("ps", "gif");
1195
1196 return @magml_devices_list;
1197 }
1198
1199
1200
1201 sub epsgram_testsuite_menu
1202 {
1203 # source file category description
1204 my @epsgram_tests_menu = (
1205 { name => "Reading", source => "eps-reading", cat => "Basic", description => "Reading"},
1206 { name => "Reading-15", source => "eps-reading-15", cat => "Basic", description => "Reading 15 day"},
1207 { name => "A-B-C", source => "eps-addis_ababa-brussels-canberra", cat => "Basic", description => "3 Cities"},
1208 { name => "A-B-C-15", source => "eps-addis_ababa-brussels-canberra-15", cat => "Basic", description => "3 Cities 15 day"},
1209 { name => "Madrid A3", source => "eps-madrid-a3", cat => "Basic", description => "Madrid A3"},
1210 { name => "Madrid-15 A3", source => "eps-madrid-15-a3", cat => "Basic", description => "Madrid A3 15 day"},
1211 { name => "Metgram-reading", source => "metgram-reading", cat => "Basic", description => "Reading Metgram"},
1212 { name => "Wave-10", source => "wave-10", cat => "Basic", description => "Wavegram"},
1213 ) ;
1214
1215 return @epsgram_tests_menu;
1216 }
1217
1218
1219 # -------------------------------------------------------------------------
1220 # epsgram_devices
1221 # Returns a list of all the devices that are used in the EPSgram test suite
1222 # -------------------------------------------------------------------------
1223
1224 sub epsgram_devices
1225 {
1226 my @epsgram_devices_list = ("ps", "gif");
1227
1228 return @epsgram_devices_list;
1229 }
1230
1231
1232
1233 # -------------------------------------------------------------------------
1234 # checkup_platforms
1235 # Returns a list of all the platforms we run the checkup test suite on
1236 # -------------------------------------------------------------------------
1237
1238 sub checkup_platforms
1239 {
1240 my @checkup_platforms_list = ("suse9", "suse11", "cluster32", "cluster64", "lxab", "ibm");
1241
1242 return @checkup_platforms_list;
1243 }
1244
1245
1246
1247 sub checkup_testsuite_menu
1248 {
1249 # source file category description
1250 my @checkup_tests_menu = (
1251 # { name => "Contour", source => "cont_noshade_ex", cat => "Basic", description => "Unshaded contours"},
1252 { name => "Cluster Tubes (New)", source => "metops_cluster_tube_new", cat => "MetOps", description => "Cluster Tubes (New)"},
1253 { name => "Metops T and Wind", source => "metops_t2_and_wind", cat => "Basic", description => "2mT (shaded) and Wind"},
1254 ) ;
1255
1256 return @checkup_tests_menu;
1257 }
1258
1259
1260
1261 sub epsgram_checkup_menu
1262 {
1263 # source file category description
1264 my @epsgram_checks_menu = (
1265 { name => "Reading", source => "eps-reading", cat => "Basic", description => "Reading"},
1266 ) ;
1267
1268 return @epsgram_checks_menu;
1269 }
1270
1271
1272
1273
1274 sub c_testsuite_menu
1275 {
1276 # category internal www
1277 my @c_tests_menu = (
1278 { name => "Coloured Contours", source => "cont_colours", cat => "Basic", lang => "c", fordocs => "yes", ext => "yes", description => "Coloured Contours"},
1279 { name => "Shaded Contours", source => "cont_solidshade_test2", cat => "Basic", lang => "c", fordocs => "yes", ext => "yes", description => "Shaded Contours"},
1280 { name => "Array Data", source => "cont_array", cat => "Basic", lang => "c", fordocs => "yes", ext => "yes", description => "Array Input"},
1281 { name => "Reference Tables", source => "ref_tables", cat => "Basic", lang => "c", fordocs => "yes", ext => "yes", description => "Reference Tables"},
1282 ) ;
1283
1284 return @c_tests_menu;
1285 }
1286
1287
1288 sub c_testsuite_submenus
1289 {
1290 my @c_ts_subs_menu = (
1291 { name => "Basic" , first => "cont_colours"},
1292 );
1293
1294 return @c_ts_subs_menu;
1295 }
1296
1297
1298 sub c_devices
1299 {
1300 my @c_devices_list = ("ps");
1301
1302 return @c_devices_list;
1303 }
1304
1305
1306 # ---------------------------------------------------------------------------------
1307 # test_suite_selection_html
1308 # Returns html code with a table for selecting the available test suites
1309 # Parameter 0: the name of the current suite (so we don't link to it unnecessarily)
1310 # ---------------------------------------------------------------------------------
1311
1312 sub test_suite_selection_html
1313 {
1314 local($this_table) = @_[0];
1315 my $parent_dir = ($this_table eq "Classic") ? "../../test" : "..";
1316 $parent_dir = ($this_table eq "Filename") ? "../../../test" : $parent_dir;
1317 my $classic_dir = ($this_table eq "Classic") ? " " : "../..";
1318
1319 my $fortran_link = ($this_table eq "Fortran") ? "Fortran" : "<a href=\"$parent_dir/fortran/cont_noshade_ex_CYLINDRICAL.html\">Fortran</a>";
1320 my $fortran_static_link = ($this_table eq "Fortran_Static") ? "Fortran_Static" : "<a href=\"$parent_dir/fortran_static/cont_noshade_ex_CYLINDRICAL.html\">Fortran_Static</a>";
1321 my $classic_link = ($this_table eq "Classic") ? "Classic" : "<a href=\"$classic_dir/classic/fortran/cont01_CYLINDRICAL.html\">Classic</a>";
1322 my $c_link = ($this_table eq "C") ? "C" : "<a href=\"$parent_dir/c/cont_colours_CYLINDRICAL.html\">C</a>";
1323 my $magml_link = ($this_table eq "MagML") ? "MagML" : "<a href=\"$parent_dir/magml/contour_simple.html\">MagML</a>";
1324 my $epsgram_link = ($this_table eq "EPSgram") ? "EPSgram" : "<a href=\"$parent_dir/epsgram/eps-reading.html\">EPSgram</a>";
1325 my $filenamelink = ($this_table eq "Filename") ? "Filename" : "<a href=\"$parent_dir/filenames/c/filenames.html\">Filenames</a>";
1326 my $small_start = "<font size=\"-2\">";
1327 my $small_end = "</font>";
1328
1329 my $selection_table =
1330 "
1331 <table border = \"1\" bgcolor = \"#DDEEEE\">
1332 <tr>
1333 <td>$small_start<b>Test suite:</b>$small_end</td>
1334 <td>$small_start$fortran_link$small_end</td>
1335 <td>$small_start$fortran_static_link$small_end</td>
1336 <td>$small_start$classic_link$small_end</td>
1337 <td>$small_start$c_link$small_end</td>
1338 <td>$small_start$magml_link$small_end</td>
1339 <td>$small_start$epsgram_link$small_end</td>
1340 <td>$small_start$filenamelink$small_end</td>
1341 </tr>
1342 </table>
1343 ";
1344
1345 return $selection_table;
1346 }
1347
1348
1349 1; # don't forget to return a true value from the file