Date: Thu, 28 Mar 2024 09:03:56 +0000 (UTC) Message-ID: <445814296.21896.1711616636163@confluence-1.confluence.confluence.svc.cluster.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_21895_621629117.1711616636163" ------=_Part_21895_621629117.1711616636163 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The visualization package is available in = the casestudies directory of the Ope= nIFS cycle 40r1v2 release as well as in the ECMWF download server: http://download.ecmwf.int/test-data/openifs= /reference_casestudies/programs/metview. Both contain the following fol= ders and file:
Folder or file |
|
Description |
|
: |
place of Metview visualization macros |
||
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/definitions/" target=3D"_blank">definitions |
:= |
p= lace of some external functions and macros used by the macros |
|
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/README.md" target=3D"_blank">README.md |
:= |
d= escription about the content of the visualization package |
Using the visualization package requires Metview 4.7.1, GRIB-API= 1.18.0 or higher versions. Please make sure that the right progra= mme versions are installed on your computer.
Folder or file |
|
Description |
|
: |
Metview macro to visualize the initial conditions for 2 = T255L91 experiments and the difference between them |
||
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/plot_forecastrun.mv" target=3D"_blank">plot_foreca= strun.mv |
:= |
M= etview macro to visualize the results of forecast experiments |
|
: |
Metview macro to visualize the ERA-Interim or ERA5 da= ta |
||
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/dialog_plot_IC" target=3D"_blank">dialog_plot_IC= a> |
:= |
M= etview dialogue box (in macro language) to plot_IC.mv |
|
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/dialog_plot_forecastrun" target=3D"_blank">dialog_= plot_forecastrun |
:= |
M= etview dialogue box (in macro language) to plot_forecastrun.mv |
|
: |
Metview dialogue box (in macro language) to plot_ERAI_ERA5.mv= a> |
||
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/help_plot_IC" target=3D"_blank">help_plot_IC= p> |
:= |
h= elp file to plot_IC= .mv |
|
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/help_plot_forecastrun" target=3D"_blank">help_plot= _forecastrun |
:= |
h= elp file to plot_forecastrun.mv |
|
: |
help file to plot_ERAI_ERA5.mv |
||
<= a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies= /programs/metview/macros/scr_run_macros" target=3D"_blank">scr_run_macros= a> |
:= |
s= hell script to execute the Metview macros |
The visualization can be done by the Metview macros (*.mv files) in two ways: (1) interactively using a dial=
ogue box or (2) in batch mode. Before using the macros, the path of the
After opening Metview, with right mouse=
click on the macro icon and then selecting the Execute
option from the menu, a dialogue bo=
x pops up showing the possible settings:
In batch mode the macro can be executed following the next syntax:
% metvi= ew -b macro option1 option2 option3 ...
where macro is the macro to be ru= n (plot_IC.mv, plot_forecastrun.mv o= r plot_ERAI_ERA5.mv); option1, option2 etc. are the settings listed a= bove. A detailed help together with some useful examples is provided with s= imple execution of the macro:
% metvi= ew -b macro
The shell script scr_run_macros e= xecutes the macros from the UNIX/Linux shell and it can be tailored for the= own needs.
The prepared Metview macros use some external functions, macros and colo= ur definitions which are placed in the definitions directory.<= /p>
File name
Description
&n=
bsp;
&nbs=
p;
build_layout_2plus1 : layout defin=
ition with 2 left panels and 1 right panel
build_layout_single  =
;: layout definition a single panel
titlemain &nbs=
p; : title style for the main plot
titlemain_2L &nbs=
p; : 2-line title style for the main plot
<=
a href=3D"http://download.ecmwf.int/test-data/openifs/reference_casestudies=
/programs/metview/definitions/titlepanels" target=3D"_blank">titlepanels : title style =
for the individual panels
lege=
nd_main : le=
gend definition for a single page
legend_shade &nbs=
p; : legend definition for left panels
legend_diff &n=
bsp; : legend definition for right=
panel (for the difference field)
base_visdef&nb=
sp; : colour definitio=
ns for the different variables
diff_range  =
; : dynamic colour definitions for the difference fi=
elds
To reach these functions and colour definitions, the path of the definitions directory has to be added to th= e METVIEW_MACRO_PATH (e.g., in .bashrc).
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 definitio=
ns (base_visdef and diff_range) from this directory. The path of the
The input data are requested with the following content, format and name= convention:
Please note that the Metview macros expect only specifying ${INPUTDIR}/ as input directory without adding = any further subdirectories (i.e, ${expID}= span> or reference folders) into the= command line.
All the macros produce figures in single-page .ps files (see Figure 1) with the followi= ng file names:
The .ps fi= les can be transformed in raster format, e.g., into .png files using the c= onvert command. (Please note that co= nvert requires the ImageMagick software to be installed.) Setting the resolution to 120 DPI generates sh= arp images with limited file size:
% conve= rt -density 120 psfile pngfile
Running the Metview macros results in a large num= ber 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 asp= ect (e.g., to study the impact of resolution changes in the forecast) in a = concise format (click below and see Figure 2 for illus= tration). To quickly generate such an album, 2 possibilities are provided f= or the users: (1) the Macro functionality of Microsoft Office Word and (2) = HTML templates.
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 initi= alized from ERA-Interim at 00 UTC on 4 December 2015. |