# (C) Copyright 1996-2016 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmental organisation nor # does it submit to any jurisdiction. # importing Magics module from Magics.macro import * ref = 't1000-global-reduced-gg' # Setting of the output file name output = output(output_formats=['png'], output_name_first_page_number='off', output_name=ref) # Setting the coordinates of the geographical area projection = mmap(subpage_map_projection='cylindrical', page_id_line = 'off' ) # Coastlines setting coast = mcoast(map_grid='on', map_grid_colour='tan', map_coastline_colour='tan') # Import the z500 data data = mgrib(grib_input_file_name='t1000-global-reduced-gg.grb') # Define the simple contouring for z500 contour = mcont( legend='on', contour_shade='on', contour_shade_method='area_fill', contour_line_colour='navy', contour_line_thickness=2, contour_label='on', contour_highlight_colour='navy', contour_highlight_thickness=6, ) title = \ mtext(text_lines=["Reduced Gaussain Grid..." , "only a subarae " , ], text_justification='left', text_font_size=0.8, text_colour='charcoal') # To the plot plot( output, projection, data, contour, coast, mtext(), mlegend(legend_display_type= "continuous"), )