Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top


HTML
<p style="margin-top: 20.0px;">
The visualization package is available in the <span class="font_code_black">casestudies</span></a> directory of the OpenIFS cycle 40r1v2 release as well as in the ECMWF download server: <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/" target="_blank">http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview</a>. Both contain the following folders and file:
</p>


Panel
borderColor#cccccc
borderWidth1
borderStylesolid
titleContent of the visualization package


HTML
<!--input&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: input directory for the input files (downloaded and prepared based on the <a href="https://confluence.ecmwf.int//display/OIFS/6.3+Data+pre-processing+for+visualization" target="_blank">earlier instructions</a>)
<a href="https://.ecmwf.int/stash/projects/OIFS/repos/oifs40r1/browse/casestudies/figs/docs?at=refs%2Fheads%2Fevaluation" target="_blank">figs</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: output directory for the figures-->
<table>
<tr>
<td valign="top"><p style="line-height: 1.2;"><strong>Folder or file</strong></p></td>
<td valign="top"><p style="line-height: 1.2;">&nbsp;</p></td>
<td valign="top"><p style="line-height: 1.2;"><strong>Description</strong></p></td>
<tr>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/" target="_blank">macros</a></p></td>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;">place of Metview visualization macros</p></td>
</tr>
<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/" target="_blank">definitions</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">place of some external functions and macros used by the macros</p><td>
</tr>
<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/README.md" target="_blank">README.md</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">description about the content of the visualization package</p></td>
</tr>
</table>



Note

Using the visualization package requires Metview 4.7.1, GRIB-API 1.18.0 or higher versions. Please make sure that the right programme versions are installed on your computer.

Using the Metview macros

Panel
borderColor#cccccc
borderWidth1
borderStylesolid
titleThe available Metview macros


HTML
<table>
<tr>
<td valign="top"><p style="line-height: 1.2;"><strong>Folder or file</strong></p></td>
<td valign="top"><p style="ine-height: 1.2;">&nbsp;</p></td>
<td valign="top"><p style="line-height: 1.2;"><strong>Description</strong></p></td>
<tr>

<tr>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_IC.mv" target="_blank">plot_IC.mv</a></p></td>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="margin-top: 10.0px; font-family: Monospace; line-height: 1.2;">Metview macro to visualize the initial conditions for 2 T255L91 experiments and the difference between them</p></td>
</tr>
<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_forecastrun.mv" target="_blank">plot_forecastrun.mv</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">Metview macro to visualize the results of forecast experiments</p><td>
</tr>
<tr>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_ERAI_ERA5.mv" target="_blank">plot_ERAI_ERA5.mv</a></p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">Metview macro to visualize the ERA-Interim or ERA5 data</p></td>
</tr>

<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/dialog_plot_IC" target="_blank">dialog_plot_IC</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">Metview dialogue box (in macro language) to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_IC.mv" target="_blank">plot_IC.mv</a></p></td>
</tr>
<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/dialog_plot_forecastrun" target="_blank">dialog_plot_forecastrun</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">Metview dialogue box (in macro language) to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_forecastrun.mv" target="_blank">plot_forecastrun.mv</a></p></td>
</tr>
<tr>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/dialog_plot_ERAI_ERA5" target="_blank">dialog_plot_ERAI_ERA5</a></p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">Metview dialogue box (in macro language) to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_ERAI_ERA5.mv" target="_blank">plot_ERAI_ERA5.mv</a></p></td>
</tr>

<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/help_plot_IC" target="_blank">help_plot_IC</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">help file to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_IC.mv" target="_blank">plot_IC.mv</a></p></td>
</tr>
<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/help_plot_forecastrun" target="_blank">help_plot_forecastrun</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">help file to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_forecastrun.mv" target="_blank">plot_forecastrun.mv</a></p></td>
</tr>
<tr>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/help_plot_ERAI_ERA5" target="_blank">help_plot_ERAI_ERA5</a></p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="margin-bottom: 10.0px; font-family: Monospace; line-height: 1.2;">help file to <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/plot_ERAI_ERA5.mv" target="_blank">plot_ERAI_ERA5.mv</a></p></td>
</tr>

<tr>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;"><a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/macros/scr_run_macros" target="_blank">scr_run_macros</a></p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">: </p></td>
<td valign="top"><p style="font-family: Monospace; line-height: 1.2;">shell script to execute the Metview macros</p></td>
</tr>
</table>


The visualization can be done by the Metview macros (*.mv files) in two ways: (1) interactively using a dialogue box or (2) in batch mode. Before using the macros, the path of the definitions directory has to be added to the METVIEW_MACRO_PATH (e.g., in .bashrc) to reach the external functions and colour definitions (for more details see below).


Panel
borderColorlightgrey
bgColorwhite
titleBGColor#dcf0f7
borderStyledotted
titleOpenIFS Meteorological Evaluation


Div
stylemargin-left: -20px;margin-bottom:-10px;
dirlrt
classdiv_shifted_left

Children Display
page7. OpenIFS Meteorological Evaluation
sorttitle



Panel
borderColorlightgrey
bgColorwhite
titleBGColor#dcf0f7
borderStyledotted
titleOn this page


Div
dirlrt
classdiv_shifted_left
Table of Contents
maxLevel4
indent20px
absoluteUrltrue



Panel
borderColorlightgrey
bgColorwhite
titleBGColor#dcf0f7
borderStyledotted
titleUseful links


HTML
<ul style="margin-left: -20px;">
<li><a href="https://confluence.ecmwf.int//display/METV/Metview" target="_blank">Metview</a>: installation, documentation, tutorials</li>
<li><a href="https://confluence.ecmwf.int//display/GRIB/Home" target="_blank">GRIB-API</a>: installation, documentation &ndash; discontinued</li>
<li><a href="https://confluence.ecmwf.int/display/ECC/ecCodes+Home" target="_blank">ecCodes</a>: installation, documentation</li>
</ul>



CSS Stylesheet
.cell_nopadding {
    padding: 3px;
    border: 0px;
}

.cell_leftmargin {
    padding-left: 30px;
}

.cell_top-bottom-border {
    border-top: 1px solid #3572b0;
    border-bottom: 1px solid #3572b0;
    border-left: 0px;
    border-right: 0px;
    padding: 3px;
}

.table_noborder {
    border: 0px;
}

.vertical {
    height: 100%;
}

.vertical td:first-child {
    position: relative;
    width: 35px;
    padding: 0;
    border: 2px solid #ddd;
}

.vertical_text {
    display: block;
    white-space: nowrap;
    -moz-transform: rotate(-90deg);
    -moz-transform-origin: center center;
    -webkit-transform: rotate(-90deg);
    -webkit-transform-origin: center center;
    -ms-transform: rotate(-90deg);
    -ms-transform-origin: center center;
    position: absolute;
    width:25px;
    color: #205081;
}

.table_line {
    padding: 0;
    height: 2px;
    border-left: 0px;
    border-right: 0px;
}

.table_line td:first-child {
    padding: 0;
    height: 2px;
    border-left: 0px;
    border-right: 0px;
}

.font_background_cyan {
    background-color: cyan;
}

.font_background_yellow {
    padding: 2px;
    background-color: #ffffb3;
}

.font_background_grey {
    padding: 2px;
    background-color: #dddddd;
}

.font_code_black {
    color: #000000;
    font-family: Monospace;
}

.font_code {
    font-family: Monospace;
}

.li_withspace {
    margin-bottom: 10px;
}

.img_withoutspace {
    margin-bottom: -12px;
} 


(1) Interactive dialogue box

After opening Metview, with right mouse click on the macro icon and then selecting the Execute option from the menu, a dialogue box pops up showing the possible settings:

Expand
titleSpecifications of data to be visualized

case study in dialog_plot_IC: Xaver (2013/12) or Desmond (2015/12);

experiment in dialog_plot_forecastrun: the 4-digit experiment ID number of forecast experiment;

reference in dialog_plot_ERAI_ERA5: ERA-Interim or ERA5;


Expand
titleSettings of the surface and upper level parameters

surface parameters in dialog_plot_IC: 3 variables are available for visualisation, soil level temperature 2, surface pressure, (model) orography;

model level parameters in dialog_plot_IC: 4 variables are available for visualisation, temperature, wind, specific humidity, cloud cover;

model levels for model level variables: from 1 (uppest) to 91 (lowest);

surface parameters in dialog_plot_forecastrun and dialog_plot_ERAI_ERA5: 4 variables are available, 2-meter temperature, mean sea level pressure, precipitation, 10-meter wind gust;

pressure level parameters in dialog_plot_forecastrun and dialog_plot_ERAI_ERA5: 5 variables are available, temperature at 850 hPa, geopotential at 500 hPa, wind at 250 and 100 hPa, relative humidity at 700 hPa;

pressure levels for pressure level variables: 850, 700, 500, 250, 100 hPa;

Multiple variables (both surface and model/pressure level ones) can be selected at the same time. In case of choosing any model or pressure level parameters, selecting also (at least) one model or pressure level should not be forgotten (multiple options are possible also here).

Note

Please note that to visualise different atmospheric variables on different levels (e.g., temperature at 850 hPa and humidity at 700 hPa), the macro has to be run separately with each setting.



Expand
titleDate settings

experiment start date in dialog_plot_IC and dialog_plot_forecastrun: initial date of experiment in format yyyymmdd;

verification date in dialog_plot_forecastrun and dialog_plot_ERAI_ERA5: verification date in format yyyymmdd (20131204 or 20131205 for Xaver case, 20151204 or 20151205 for Desmond case, 20131206 and 20151206 are added to dialog_plot_ERAI_ERA5);


Expand
titleArea settings

area can be selected with providing corners of a rectangle (the default is Europe with 25/-35/75/50 for S/W/N/E, respectively) and also using the mouse. Note that colour settings are prepared only for the default area, colours for any further region have to be fit manually;


Expand
titleDirectory settings

input directory: location of the input files, closed with "/";

figure directory: location of the output figures, closed with "/".

(2) Batch mode

In batch mode the macro can be executed following the next syntax:

Code Block
% metview -b macro option1 option2 option3 ...

where macro is the macro to be run (plot_IC.mv, plot_forecastrun.mv or plot_ERAI_ERA5.mv); option1, option2 etc. are the settings listed above. A detailed help together with some useful examples is provided with simple execution of the macro:

Code Block
% metview -b macro

The shell script scr_run_macros executes the macros from the UNIX/Linux shell and it can be tailored for the own needs.

Anchor
definitions
definitions
External functions and macros

HTML
<p>
The prepared Metview macros use some external functions, macros and colour definitions which are placed in the <a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/" target="_blank"><span class="font_code">definitions</span></a> directory.
</p>


Panel
borderColor#cccccc
borderWidth1
borderStylesolid
titleThe external functions located in definitions directory

File name               Description

HTML
<span style="font-family: Monospace;">
<p style="margin-top: 10.0px;margin-bottom: 10.0px;">
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/build_layout_2plus1" target="_blank">build_layout_2plus1</a>&nbsp;&nbsp: layout definition with 2 left panels and 1 right panel<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/build_layout_single" target="_blank">build_layout_single</a>&nbsp;&nbsp;: layout definition a single panel
</p>
<p style="margin-top: 10.0px;margin-bottom: 10.0px;">
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/titlemain" target="_blank">titlemain</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: title style for the main plot<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/titlemain_2L" target="_blank">titlemain_2L</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: 2-line title style for the main plot<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/titlepanels" target="_blank">titlepanels</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: title style for the individual panels
</p>
<p style="margin-top: 10.0px;margin-bottom: 10.0px;">
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/legend_main" target="_blank">legend_main</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: legend definition for a single page<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/legend_shade" target="_blank">legend_shade</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: legend definition for left panels<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/legend_diff" target="_blank">legend_diff</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: legend definition for right panel (for the difference field)
</p>
<p style="margin-top: 10.0px;">
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/base_visdef" target="_blank">base_visdef</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: colour definitions for the different variables<br/>
<a href="http://download.ecmwf.int/test-data/openifs/reference_casestudies/programs/metview/definitions/diff_range" target="_blank">diff_range</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp: dynamic colour definitions for the difference fields
</span>


To reach these functions and colour definitions, the path of the definitions directory has to be added to the METVIEW_MACRO_PATH (e.g., in .bashrc).

Note

Please note that there is an include statement in the plot_forecastrun.mv and the plot_ERAI_ERA5.mv macros and further 2 ones in the plot_IC.mv, taking the two colour definitions (base_visdef and diff_range) from this directory. The path of the definitions directory has to be set in the downloaded macros according to the local working tree (it is necessary because using dynamic path with include is not possible in the macro language).

Input data

The input data are requested with the following content, format and name convention:

  • Macro plot_IC.mv expects the ICM* files as input: ICMGG${expID}INIT_${date}, ICMGG${expID}INIUA_${date}, ICMSH${expID}INIT_${date}, where
    expID is the 4-digit experiment ID;
    date is day in format yyyymmdd.
    The files have to be placed in the ${INPUTDIR}/${expID} folder, where INPUTDIR is the input directory specified when calling the macro.
  • Macros plot_forecastrun.mv expects grib files as input with the following file names: ${variable}_${date}.grib, where
    variable can be t2, mslp, p, gust, t850, q700, z500, u250, u100;
    date is day in format yyyymmdd.
    The files have to be placed in the ${INPUTDIR}/${expID} folder, where INPUTDIR is the input directory specified when calling the macro.
  • Macro plot_ERAI_ERA5.mv expects grib files as input with the following file names: ${referenceID}_${variable}_${period}.grib, where
    referenceID is ei for ERA-Interim and ea for ERA5;
    variable can be t2, mslp, p, gust, t850, q700, z500, u250, u100;
    period is the investigated time period in format of yyyymmdd-yyyymmdd (e.g., 20151201-20151206 for Desmond).
    The files have to be placed in the ${INPUTDIR}/reference folder, where INPUTDIR is the input directory specified when calling the macro.
Note

Please note that the Metview macros expect only specifying ${INPUTDIR}/ as input directory without adding any further subdirectories (i.e, ${expID} or reference folders) into the command line.


Column
width68%

Output figures

All the macros produce figures in single-page .ps files (see Figure 1) with the following file names:

  • plot_IC.mv: ${variable}_${level}_ERAI-ERA5_${date}+${timestep}.ps, where
    variable can be stl2, lnsp, z, t, cc, u, q;
    level can be 0 (in case of surface variables) or from 1 to 91;
    date
    is day in format yyyymmdd;
    timestep
    is forecast lead time in hours, e.g., 0, 3, 6 etc.
  • plot_forecastrun.mv: ${variable}_${level}_${expID}_${date}+${timestep}.ps, where
    variable can be t2, mslp, p, gust, t, q, z, u;
    level
    can be 0 (in case of surface variables) or 850, 700, 500, 250, 100;
    expID
    is the 4-digit experiment ID;
    date
    is day in format yyyymmdd;
    timestep
    is forecast lead time in hours in format hh, e.g., 00, 03, 06 etc.
  • plot_ERAI_ERA5.mv: ${variable}_${level}_${reference}_${date}${time}.ps, where
    variable can be t2, mslp, p, gust, t, q, z, u;
    level can be 0 (in case of surface variables) or 850, 700, 500, 250, 100;
    reference can be ERAI or ERA5;
    date is day in format yyyymmdd;
    time is hour in format (h)h, e.g., 0, 3, 6, 9, 12 etc.

The .ps files can be transformed in raster format, e.g., into .png files using the convert command. (Please note that convert requires the ImageMagick software to be installed.) Setting the resolution to 120 DPI generates sharp images with limited file size:

Code Block
% convert -density 120 psfile pngfile

Running the Metview macros results in a large number of figures. To have an overview on them, based on the .png files a catalogue can be prepared which contains all relevant plots for the selected variable and a given investigation aspect (e.g., to study the impact of resolution changes in the forecast) in a concise format (click below and see Figure 2 for illustration). To quickly generate such an album, 2 possibilities are provided for the users: (1) the Macro functionality of Microsoft Office Word and (2) HTML templates.


Column
width2%



Column
width30%


Align
alignright

Anchor
figure1
figure1

Figure 1: Exemplary output figure. Here: 3-hourly 10-meter wind gust (m/s) at 00 UTC on 5 December 2015 from the T255L91 OpenIFS forecasts initialized from ERA-Interim at 00 UTC on 4 December 2015.




Expand
title1. Click here to see the steps to quickly create a catalogue in Microsoft Word

The provided Word macros (in MS Office 2013) create a table with figures for a given meteorological variable in each evaluation time step (i.e., in every 3 hours between 00 UTC 5 December and 00 UTC 6 December) from all the relevant case study.

Column
width68%
  1. First of all, you need to copy the prepared Word Macros into the default template in your computer.
    1. Download the OpenIFS_WordMacros.dotm file (or in case of Word 97-2003 versions, the OpenIFS_WordMacros.dot file) from the ECMWF download server and open it.
    2. Make sure that the Developer tab is enabled for Word. To do this, go to File > Options > Customize Ribbon and in the right-hand panel, check the tick in the box labelled "Developer" and click "OK".
    3. Go to Developer > Document Template. At the bottom of the (first) "Templates" tab in the opening window, click on the "Organizer" button. In the "Organizer" window, click on the (second) "Macro Project Items" tab. One side already shows the content of the Normal.dotm (Normal.dot in Word 97-2003) template file, which is the default location for macros. On the other side of the window, drop down the list box labelled "Macro Project Items available in" and choose the OpenIFS_WordMacros.dotm (OpenIFS_WordMacros.dot) template file. Select the macro objects to copy from the OpenIFS_WordMacros.dotm (OpenIFS_WordMacros.dot) and click "Copy", then "Close". Now all macros you copied are available in your Normal.dotm (Normal.dot) and you can use them to create your own catalogue.
  2. Open a blank file in Word (File > New > Blank document).
  3. Go to View > Macros > View macros. You should see 8 new macros in the Normal.dotm (Normal.dot) template:

    There are 3 basic macros constructing the catalogues for comparison of the forecast results with different initial conditions (*_initialconditions), different resolutions (*_resolutions) and different starting dates (*_startdates). There are separate macros for the two case studies (*Desmond* and *Xaver*) regarding the different starting dates, because experiments for storm Desmond and storm Xaver were initialized from 5 and 3 different dates, respectively. There are additional macros for precipitation figures as in this case 24-hour amount is evaluated instead of precipitation between 2 time steps (*insertprecpics*).
  4. Choose a case study and a meteorological variable you intend to investigate, for instance the effect of the different resolutions on temperature at 850 hPa in Desmond case initialized at 00 UTC on 3 December 2015. Select the corresponding macro which is aa_insertpicsOIFS_resolutions and click "Edit". The macro source code can be seen in the opening window:
  5. This macro creates a table with figures for a given meteorological variable in every 3 hours between 00 UTC 5 December and 00 UTC 6 December from 3 OpenIFS runs carried out on T255L91, T637L137 and T1279L137 resolutions and also from the ERA-Interim and ERA5 re-analysis data (see Figure 2).
  6. To make the catalogue, you will need the figures for the temperature at 850 hPa from the gryg, gs22 and gs23 experiments. Let us suppose that your figures are located here: ${LOCAL_FIGURE_PATH}/t_850_${expID}_20151203+${step}, where LOCAL_FIGURE_PATH is the folder of the figures (with full path), expID is the 4-digit experiment ID and step is the forecast lead time going here from 48 to 72 hours. There are default settings in the macro code (see the highlighted line in the window above), which you have to adjust to your settings regarding the path of the figures (LOCAL_FIGURE_PATH), the name of the meteorological variable (t_850), the experiment IDs (gryg, gs22, gs23), the starting date (20151203) and the steps in the figure filename.
  7. All the necessary changes can be made via automatic replacement in a few steps. Press CTRL+H and give the string to be replaced (e.g., gust_0) and the replacement string (t_850). After all the changes are done, the macro is ready to run with the green triangle: .
  8. The macro produces an automatic caption above the table with the default settings. You can change or remove this title manually (or if you are professional in writing Word macros, you can edit the corresponding code directly in the  macro).
  9. After all steps and adjustments, you can save the document as a .docx (.doc) file.
  10. The same procedure can be repeated for further variables, starting dates and case studies.


Info

The instructions above are valid in MS Office 2013. The steps can be slightly different in other MS Office versions.



Column
width2%



Column
width30%


Align
alignright

Anchor
figure2
figure2

Figure 2: Illustration of the catalogue constructed from the output figures using Word macros. Here: 3-hourly 10-meter wind gust (m/s) from ERA-Interim and ERA5 re-analyses and from T255L91, T369L137T639L137, T1279L137 OpenIFS forecasts initialized from ERA-Interim on 4 December 2015.





Expand
title2. Click here to see the steps to generate a catalogue using HTML templates


Column
width58%

The HTML templates are prepared separately for the two case studies. They are zipped and available in the ECMWF download server.

  1. Assuming that all the output pictures the user created for storm Xaver are placed in the same directory, the .tar.gz file has to be downloaded and uncompressed also here:

    Code Block
    languagebash
    % INPUTDIR=http://download.ecmwf.int/test-data/openifs/reference_casestudies/
    % wget -c ${INPUTDIR}figs/Xaver/png-ps/Xaver_OutputBrowsing.tar.gz   # to download the templates
    % tar -xzvf Xaver_OutputBrowsing.tar.gz                              # to unpack the archive file


  2. The templates can be activated with opening any of the .html files (e.g., resolution_ERAI.html) in a web browser (Firefox or else) and further instructions can be read there (see Figure 3 as an example).

  3. To retrieve the HTML templates for storm Desmond:

    Code Block
    languagebash
    % INPUTDIR=http://download.ecmwf.int/test-data/openifs/reference_casestudies/
    % wget -c ${INPUTDIR}figs/Desmond/png-ps/Desmond_OutputBrowsing.tar.gz   # to download the templates
    % tar -xzvf Desmond_OutputBrowsing.tar.gz                                # to unpack the archive file


  4. To activate the templates for storm Desmond, repeat step 2.


Column
width2%



Column
width40%


Align
alignright

Anchor
figure3
figure3
 

Figure 3: Illustration of the catalogue constructed from the output figures using HTML templates. Here: loading the resolution_ERAI.html comparing the impact of the T255L91, T369L137T639L137, T1279L137 resolutions on the OpenIFS forecasts for storm Xaver.




Back to top

Excerpt Include
Credits
Credits
nopaneltrue

...