MENU

Fun & Interesting

Import Copernicus climate data via API, process netCDF and map with ggplot2

Milos Makes Maps 6,039 2 years ago
Video Not Working? Fix It Now

This tutorial shows you how to access Copernicus Climate Data Store API through KrigR package in R, retrieve climate data in netCDF format, and create powerful static and animated visualizations for any country in the world using ggplot2 and gganimate 0:00 Prologue 0:50 Intro 02:03 Set working directory 04:14 Install KrigR 06:06 Load libraries 11:59 API id & key 12:49 Copernicus Climate Data Store 18:08 Registration 20:32 KrigR - documentation 26:12 KrigR - build query 32:32 KrigR - download data 33:55 netCDF 37:43 Plot June 2022 temperature for Poland 41:32 Quick & dirty map 42:51 netCDF to dataframe 44:46 Pivot dataframe 47:25 Create dates from layer names 57:35 Breaks 01:02:10 Spectral palette 01:06:22 ggplot2 code 01:14:17 ggplot2 theme 01:21:26 Panel map of poland 01:22:39 gganimate 01:29:31 Save map as gif 01:30:13 Timelapse temperature map 01:31:33 Closing Check the full code in my GitHub repo: https://github.com/milos-agathon/visualize-temperature-with-r Follow my work on Instagram: https://www.instagram.com/milos_makes_maps/ Let's connect on Twitter: https://twitter.com/milos_agathon If you like my work, consider buying me a coffee: https://www.buymeacoffee.com/milospopovic Music credits go to: David Hyde: https://soundcloud.com/davidhydemusic Music provided by RFM

Comment