from Magics.macro import *
#setting the output
output = output(
output_formats = ['png'],
output_name = "map_step3step4",
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#definition of the msl Gribinput data
mslprecip = mgrib(grib_input_file_name="mslprecip.grib"),
#Defining the controur
contour = mcont(contourgrib_highlightautomatic_colourscaling= "black",'off',
contour_highlight_thickness= 4,
contour_hilogrib_scaling_factor=1000.)
shading = mcont( contour_highlight= "off",
contour_intervalhilo= 5."off",
contour_label= "onoff",
contour_labellevel_frequencylist=[0.5, 2.,
4., 10., 25., 50., contour_label_height= 0.4,
100., 250.],
contour_level_selection_type= "intervallevel_list",
contour_line_colourshade= "blackon",
contour_lineshade_thicknessmethod= 2"area_fill",
legend='on'contour_shade_colour_method= "list",
contour_legend_text= "Mean Sea Level Pressure",
)contour_shade_colour_list= ["cyan", "greenish_blue", "blue", "bluish_purple", "magenta", "orange", "red", "charcoal"],
legend="on")
plot(output, area, coast, mslprecip, contourshading) |