Interactive maps with folium and ipyleaflet in python


Introduction

As part of our studyGroup session “Software surgery session on python”, we had a use case for creating contour plot on interactive maps with python.

After some discussions on which packages to use, we made an example using folium. It could be interesting to check it out with ipyleaflet as part of a StudyGroup work along session.

Data

Data to display corresponds to surface temperature fields generated by a model called CAM5 that is part of CESM, a Community Earth System Model developed in US and freely available.

The initial dataset (from the user) was bigger and contained lots of variables. To ease this lesson, we have extracted the surface temperature (TS) and worked with 2 years of data only (24 months) while originally, the user had 10 years of simulation.