Learn R Programming

CopernicusClimate

Overview

The Copernicus Climate Change Service (C3S) has the mission of providing information about the past, present and future climate, as well as tools to enable climate change mitigation and adaptation strategies.

The C3S Climate Data Store provides open and state-of-the-art climate data to scientists. This package allows users to download data from the data store and handle it in R.

Installation

Install CRAN release:

install.packages("CopernicusClimate")

Install latest developmental version from R-Universe:

install.packages("CopernicusClimate", repos = c('https://pepijn-devries.r-universe.dev', 'https://cloud.r-project.org'))

Example

In order to download data from C3S you first need to submit a request with cds_submit_job(). After your request has been processed by C3S, you can download the data with cds_download_jobs(). This workflow is demonstrated in the code snippet below. For a more detailed description of the workflow see vignette("download").

library(CopernicusClimate)
library(stars)   ## For loading spatial raster data
library(ggplot2) ## For plotting the data

if (cds_token_works()) { ## Make sure there is an operational access token
  
  ## Submit a download job:
  job <-
    cds_submit_job(
      "sis-agrometeorological-indicators",
      statistic = "day_time_mean",
      variable = "2m_temperature",
      year = "2025",
      month = "01",
      day = "01")
  
  ## Actually download the data:
  data_file <- cds_download_jobs(job$jobID, tempdir())
  
  ## Unzip the downloaded data:
  data_unzipped <- unzip(data_file$local, list = TRUE)
  unzip(data_file$local, exdir = tempdir())
  data_stars <- read_mdim(file.path(tempdir(), data_unzipped))
  
  ## Plot the downloaded data
  ggplot() +
    geom_stars(data = data_stars) +
    coord_sf() +
    labs(fill = "T(air 2m) [K]", x = NULL, y = NULL) +
    scale_fill_viridis_c(option = "inferno", na.value = "transparent")
}

More of Copernicus

More R packages for exploring other Copernicus data services:

Code of Conduct

Please note that the CopernicusClimate project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('CopernicusClimate')

Monthly Downloads

472

Version

0.0.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Pepijn de Vries

Last Published

December 5th, 2025

Functions in CopernicusClimate (0.0.4)

cds_list_datasets

List or search Climate Data Service datasets
cds_python_to_r

Translate Python Climate Data Store request to R request
cds_build_request

Prepare a request for downloading a dataset
cds_dataset_form

Obtain an overview of options to subset a dataset
cds_delete_job

Delete/cancel jobs submitted to the Climate Data Service
cds_account_metrics

Get Prometheus metrics for account
cds_accept_licence

Accept a specific licence
cds_accepted_licences

List accepted licences
CopernicusClimate-package

CopernicusClimate: Search Download and Handle Data from Copernicus Climate Data Service
cds_cite_dataset

Cite a dataset
cds_check_authentication

Check if authentication works with a specific token
cds_list_licences

Obtain a list of licences that can be accepted
cds_list_jobs

List jobs submitted to the Climate Data Service
cds_starred

Add or remove a star to a dataset, or list starred datasets
cds_catalogue_vocabulary

List catalogue vocabulary
cds_submit_job

Submit a download job for a dataset
cds_get_account

Get account details
cds_get_token

Get or set a Climate Data Service API key
cds_download_jobs

Download specific jobs
cds_estimate_costs

Check the cost of a request against your quota