6 Creating WRplot les with fortran programs

The famous fortran subroutines PLOTANF and PLOTCON can create ordinary WRplot les. To have some more specialized attributes, i.e. in the headline (PEN=n COLOR=i SIZE=k), use the routines PLOTANFS and PLOTCONS. These routines can e.g. be found in the WRplot installation directory in the library/archive lib_plotcalls. Find the parameters in the respective .f les (i.e. wrh/wrplot.dir/fortran.dir/).

KASDEF options can also be called from within fortran programs:

  1. Start the plot by hand, i.e. write the initial PLOT line:
    WRITE (KANAL,*) 'PLOT: Text ...'
    (this line just starts and names the plot, i.e. to get orientation in interactive usage).
  2. Write the KASDEF options as string, e.g.
    WRITE (KANAL,*) 'nLUN . . .  . . .  . . . '
  3. Use PLOTANF to create the plot box (HEADER: etc.). It writes another PLOT line which is ignored by WRplot (dummy line).