Swaz_725 Profile picture
Jan 7 21 tweets 7 min read
Tutorial Thread🧵 on how to create Climate maps using R Language specifically ClimateR🌧️🌤️ package created by Mike Johnson...In this tutorial I'm going to use The Kingdom of Saudi Arabia 🇸🇦#gischat #cartography #GIS #geospatial #Remotesensing #dataviz #R #rspatial #mapping
So At first Climate R is package created specifically to deal with climate illustration ......So in order to get it working you have to Have Remote package already and you have to Install Using the codes below. Codes for installing Climate R
So after that were going prepare the Tempreture illustration in which they are three ways of illustrating Mean Tempreture(One map),Annual Tempreture(Mutiple Maps) and Monthly Tempreture.
Before moving to the codes you have to prepare the area of interest usually I use countries shapefile ADM_0(As in Saudi Arabia) but you're not limited to that instead you can prepare map of States within Country or Region within Country....place them to local disk for easy path.
You have to be connected to Internet in order to fetch data online while coding
After that then we venture to the code in which our Main purpose is to Create Mean Tempreture🌤️.....for ten years 2011-2020(you are not limited) hence you download packages that you don't have as illustrated .....and follow the codes below Codes for Mean temperature
Within this code there is three things to notice ....the index part which collect the raster into 10 parts as shown above......The Masking part.....and the "YlOrRd" which is used for tempreture but if not satisfied you can replace it with combination below Color Palette
The Output would be as follows Mean Day Tempreture of Kingdom of Saudi Arabia from 2011-202
The on second is Yearly annual Tempreture...in which you follow codes below Codes for Yearly Annual Temperature
The output would be as follows Annual Day Tempreture of Saudi Arabia from year 2011 to 2022
And finally, the codes to determine mean monthly temperatures from year 2011 to 2020(Notice the change in index part has changed from here to accommodate the twelve months) Codes for Mean Monthly Temperature
Which would result to this output Mean Monthly Temperature For year 2011 to 2020
Now on rainfall 🌧️part parameter changes into "prcp" as shown in code below (Notice the change in brewer.pal in which it has changed to Blues to show Precipitation) Codes for Mean Annual Precipitation
Which would result into this output Mean Precipitation of Saudi Arabia from year 2011-2020
And the annual precipitation can be determined by the following codes Codes for yearly annual precipitation from year 2011-2020
Which would result into this output Yearly Annual Precipitation from 2011 to 2020
And finally for Monthly Mean Precipitation the codes are Codes for Monthly Mean
Which would give out an output as shown below Monthly Mean Precipitation of Saudi Arabia from 2011-2020
There is codes for Night Temperature Map(Tmin) .... probably next time we will venture to that ...but in summary change the parameters to tmin and Fun part in code change from Max to Min....thats all for today folks
Again Special credit to Monica Anna Tomaszewska for the help in Github and Mike Johnson for creating this wonderful Package

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Swaz_725

Swaz_725 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(