# Metview Macro
# **************************** LICENSE START ***********************************
#
# Copyright 2018 ECMWF. This software is distributed under the terms
# of the Apache License version 2.0. In applying this license, ECMWF does not
# waive the privileges and immunities granted to it by virtue of its status as
# an Intergovernmental Organization or submit itself to any jurisdiction.
#
# ***************************** LICENSE END ************************************
#
# Retrieve data from MARS
data = retrieve(
class : 'od',
levelist : 925,
levtype : 'pl',
param : '130.128',
stream : 'oper',
type : 'fc',
date : '20181127',
time : '0000',
grid : [1,1],
step : '24',
expver : '1')
# Define title
title = mtext(
text_line_1 : "925 hPa temperature START: <grib_info key='base-date' format='%d.%m.%Y. %H' where='shortName=t' /> UTC STEP: <grib_info key='step' where='shortName=t' />h VALID FOR = <grib_info key='valid-date' format='%d.%m.%Y. %H' where='shortName=t' /> UTC",
text_colour : "charcoal")
# Define contouring
cont = mcont(
contour_automatic_setting : "style_name",
contour_style_name : "sh_all_fM52t48i4",
legend : "on")
# Define legend
legend = mlegend(
legend_text_colour : "charcoal")
# Generate plot
plot(data, title, cont, legend)
|