# Metview Macro

#  **************************** LICENSE START ***********************************
# 
#  Copyright 2015 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 ************************************

fs = read("relative_humidity.grib")

positional_title = mtext(
    text_mode           : "positional",
    text_box_x_position : 4,
    text_box_y_position : 1,
    text_box_x_length   : 22,
    text_box_y_length   : 1,
    text_font           : "arial",
    text_font_size      : 0.4,
    text_font_style     : "italic",
    text_colour         : "kelly_green",
    text_box_blanking   : "on",
    text_border         : "on"
    )

empty_title = mtext(
    text_line_count      : 0
    )

note1 = mtext(
    text_line_1         : "Metview training course",
    text_mode           : "positional",
    text_box_x_position : 5,
    text_box_y_position : 12,
    text_box_x_length   : 12,
    text_box_y_length   : 1.5,
    text_font           : "arial",
    text_font_size      : 0.7,
    text_font_style     : "bold",
    text_colour         : "red",
    text_box_blanking   : "on"
    )

note2 = mtext(
    text_line_1         : "26-30 September 2016",
    text_mode           : "positional",
    text_box_x_position : 11,
    text_box_y_position : 7,
    text_box_x_length   : 10,
    text_box_y_length   : 2,
    text_font_size      : 0.7,
    text_font_style     : "bolditalic",
    text_colour         : "black",
    text_box_blanking   : "on",
    text_border         : "on"
    )

plot(fs,positional_title,empty_title,note1,note2)
