ECMWF logo Support Portal
changes.mady.by.user Sylvie Lamy-Thepaut
Saved on Mar 06, 2013
...
mgrib action to load the data
contour_highlight_colour= "black", contour_highlight_thickness= 4, contour_hilo= "off", contour_interval= 5., contour_label= "on", contour_label_frequency= 2, contour_label_height= 0.4, contour_level_selection_type= "interval", contour_line_colour= "black", contour_line_thickness= 2, legend='on', contour_legend_text= "Mean Sea Level Pressure",
from Magics.macro import * #setting the output output = output( output_formats = ['png'], output_name = "map_step2step3", output_name_first_page_number = "off" ) #settings of the geographical area area = mmap(subpage_map_projection="cylindrical", subpage_lower_left_longitude=-110., subpage_lower_left_latitude=20., subpage_upper_right_longitude=-30., subpage_upper_right_latitude=70., ) #settings of the caostlines coast = mcoast(map_coastline_land_shade = "on", map_coastline_land_shade_colour = "cream", map_grid_line_style = "dash", map_grid_colour = "grey", map_label = "on", map_coastline_colour = "grey") #Loading the msl Grib data msl = mgrib(grib_input_file_name="msl.grib") #Defining the controur contour = mcont(contour_highlight_colour= "black", contour_highlight_thickness= 4, contour_hilo= "off", contour_interval= 5., contour_label= "on", contour_label_frequency= 2, contour_label_height= 0.4, contour_level_selection_type= "interval", contour_line_colour= "black", contour_line_thickness= 2, legend='on', contour_legend_text= "Mean Sea Level Pressure", ) plot(output, area, coast)
Image RemovedImage Added