With this icon we can recreate the layers of the ecCharts web-based visualisation system in the Metview environment. The icon retrieves global forecast fields for a given ecCharts layer from the MARS archive then applies the required post-processing steps and visualises the results with one of the pre-defined ecCharts styles.
From script (Macro/Python) this icon can be called as
Please note that the output of the icon is not a single GRIB file but a list of the following items in the specified order:
- the GRIB fields retrieved from MARS
- a plot title definition (see Text plotting icon)
- a contouring definition (see Contouring icon) using the specified pre-defined style associated with the layer
- a legend (see Legend icon) definition
Saving GRIB data
To save a local copy of the retrieved GRIB data use the Save result action from the icon context menu.
Generating script code
The icon is equipped with the Generate Macro and Generate Python context menu actions.
With these actions the actual retrieval, post-processing and visualisation steps can be saved into the specified script format (the generated script will appear in the current folder).
This is an example showing the Macro code generated for layer t925.
What layers are available?
A fair number of ecCharts layers are available but several layers are not yet added to the icon. To figure out more about the supported layers use the layer browser in the icon editor as shown below:
The Eccharts Editor
Specifies the name of the ecCharts layer.
Specifies the contouring style for the selected layer. Each ecCharts layer is associated with a group of predefined styles. When a given layer is selected in Layer the icon editor only shows the available styles for that layer and the default style is automatically selected.
Specifies the is given in
YYYYMMDD format. Relative dates are allowed: e.g. -1 means yesterday, 0 means today, etc. The default is -1.
of the forecast. This is the same Date parameter as in the MARS retrieval icon. The date
Specifies the of the forecast. This is the same Date parameter as in the MARS retrieval icon. The default is 0.
Specifies the forecast steps in hours. Here a of values can be given.
Specifies the resolution of the resulting global grid in dx/dy format, where dx is the grid increment in West-East direction, while dy is the grid increment in South-North direction (both in units of degrees). The default value is: 1/1.
Fail On Data Error
When this parameter is set to yes an error in the data retrieval or the post-processing steps will force the icon to fail and a Macro/Python script running the
eccharts()function will fail as well. While if it is set to no the icon will not fail and the
eccharts command in Macro/Python will return nil/None. The default value is yes.