You can run this notebook in Binder, in Colab.

Styles in magpye

Here is the gallery of the predefined styles, more to come soon …

Isolines

black_i5_label

Black isolines with interval of 5 with label

[1]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_lines("iso.grib", style="black_i5_label")
fig.gridlines()

fig.title(
    [
        "Style : black_i5_label",
         "Black isolines with interval of 5 with label"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[1]:
../_images/styles_styles_3_0.png

black_i5_LH

Black isolines with interval of 5

[2]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_lines("iso.grib", style="black_i5_LH")
fig.gridlines()

fig.title(
    [
        "Style : black_i5_LH",
         "Black isolines with interval of 5"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[2]:
../_images/styles_styles_5_0.png

black_i5

Black isolines with interval of 5

[3]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_lines("iso.grib", style="black_i5")
fig.gridlines()

fig.title(
    [
        "Style : black_i5",
         "Black isolines with interval of 5"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[3]:
../_images/styles_styles_7_0.png

red_i5

Red isolines with interval of 5

[4]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_lines("iso.grib", style="red_i5")
fig.gridlines()

fig.title(
    [
        "Style : red_i5",
         "Red isolines with interval of 5"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[4]:
../_images/styles_styles_9_0.png

Shading

blue_red_250

Method : contour shade, with contours Level list : (0.5/2/4/10/25/50/100/250) Colour : from blue to red Used for precipitation

[5]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_shaded("tp.grib", style="blue_red_250")
fig.coastlines(resolution="medium")
fig.gridlines()

fig.title(
    [
        "Style : blue_red_250",
         "Method : contour shade, with contours Level list : (0.5/2/4/10/25/50/100/250) Colour : from blue to red Used for precipitation"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[5]:
../_images/styles_styles_12_0.png

specific_humidity1

Contour shade (Range: 0 - 28)

[6]:
from magpye import GeoMap

fig = GeoMap(area_name="europe")

fig.coastlines(land_colour="cream",resolution="medium")
fig.contour_shaded("specific_humidity1.grib", style="specific_humidity1")
fig.coastlines(resolution="medium")
fig.gridlines()

fig.title(
    [
        "Style : specific_humidity1",
         "Contour shade (Range: 0 - 28)"
    ]
    )
fig.legend()
fig.footer("© European Centre for Medium-Range Weather Forecasts (ECMWF) Source: www.ecmwf.int Licence: CC-BY-4.0 and ECMWF Terms of Use (https://apps.ecmwf.int/datasets/licences/general/)", logo='ecmwf')

fig.show()

[6]:
../_images/styles_styles_14_0.png