From Raw Data to Crisp Temperature Maps: In-Depth Guide to Interpolating & Mapping ERA5 with KrigR

preview_player
Показать описание
Ready to dive into climate data analysis? In this tutorial, I’ll guide you step-by-step through using the KrigR package in R to effortlessly download ERA5 climate data, perform the powerful kriging technique, and calculate seasonal temperature averages and anomalies! 🌡️ But we won’t stop there—you'll learn how to bring your data to life with stunning time-lapse animations and static maps using ggplot2 and gganimate. Perfect for anyone looking to transform raw climate data into meaningful visual insights!

Chapters:

0:00 Hi!
00:21 Install KrigR
01:01 Packages
02:45 Package version
02:55 Country boundaries
04:04 Register with ECMWF
07:01 CDS username & token
08:50 ERA5 datasets
11:48 Available variables
12:52 Metadata
16:33 Get temperature data
23:38 Inspect temperature data
25:05 How to fix this error
25:38 Accept licences on CDS website
26:08 Quickly plot data point
26:56 Covariates
29:43 Kriging
34:21 Inspect kriging results
35:32 Plot kriging results
36:24 How to load the kriged raster
37:08 Crop kriged raster
39:15 Change layer names
40:32 Filter July temperatures
46:00 Raster to dataframe
49:05 Kelvin to Celsius
50:45 Breaks
52:58 Colors and map theme
59:51 Static map of July temperatures
01:09:36 Let's animate!
01:12:36 Show the timelapse map
01:13:20 Seasonal aggregation
01:20:36 Temperature anomaly map
01:29:32 See you!

Check the full code in my GitHub repo:

Follow my work on Instagram:

Let's connect on X:

If you like my work, consider buying me a coffee:

Climate Data Store (CDS):

European Centre for Medium-Range Weather Forecasts (ECMWF):
Рекомендации по теме
Комментарии
Автор

Awesome video! thanks a lot for it.
As a suggestion for a new video/project: I'd be super interested in calculating the urban heat island effect from remote sensing data :)

MatthiasFeist-de
Автор

great video! as a agriculture background I want to see you creating some remote sensed based map which related to agriculture. There is lot of data on CDS. But sometime the data bot fetched. Hope you can provide a solution and a great video on like vegetation index, leaf area index and more.

estiequealam
Автор

Great stuff as usual! Can you suggest which resources are being most used by R and rayshader? I checked, and they don’t have GPU support, so should I get more RAM or CPU power for faster output? As always, I love watching your videos. You’re making things accessible to people, and the impact you’re having is amazing. I always appreciate people who make things easier for others.

bhavya
Автор

Thank you for video. When i calculate covariates_ls, I get a error below

"Error: ! unable to find an inherited method for function 'varnames' for signature 'x = "NULL"'
Hide Traceback
x
1. \-KrigR::CovariateSetup(...)
2. \-terra::varnames(Covariates)
3. \-methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)

How can i solve the problem?

efdalkaya
Автор

Is there any way of obtaining a free API key for the ggmap r package?

sabers