Setting up KrigR

Installing KrigR

First of all, we need to install KrigR.

Installation of an R-Package from GitHub is facilitated via the devtools package and its install_github() function. Thus, KrigR can be installed and loaded as follows:

As KrigR is currently undergoing substantial development in response to the establishment of a new CDS and deprecation of previous dependency packages, you have to install the latest development version.
devtools::install_github("https://github.com/ErikKusch/KrigR", ref = "Development")
library(KrigR)

CDS API Access

If you have used KrigR or CDS services before 2024-09-16, please be advised that a new CDS has been established and you will need to create a new account and register your new user credentials with KrigR to ensure continued use of it.

Before you can access Climate Data Store (CDS) products through KrigR, you need to register an account at CDS. Don’t forget to accept the terms and conditions:

Once you have created your account, you can find your API credentials on your personal page (which you access by clicking your name in the top-right corner of the webpage) on the CDS webpage:

Once you have done so, we recommend you register the user ID and API Key as characters as seen below (this will match the naming scheme in our workshop material):

API_User <- "youremail@somethingortheother"
API_Key <- "YourApiKeyGoesHereAsACharacterString"
You are now ready for KrigR.

If this is your first contact with KrigR, we recommend strongly you follow the workshop material in order. If you return to KrigR with specific questions or ideas, we recommend you make use of the search function at the top left of this page. If you are short on time, the quick start guide will be useful to you.

Previous
Next