## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", eval = FALSE ) ## ----setup-------------------------------------------------------------------- # library(copernicusR) # # # Check if everything is ready # copernicus_is_ready() # # # Set up using your credentials (replace with your actual values) # setup_copernicus(username = "", password = "") ## ----download----------------------------------------------------------------- # # Download sea surface temperature # file <- copernicus_download( # dataset_id = "cmems_mod_glo_phy_anfc_0.083deg_P1D-m", # variables = "thetao", # start_date = "2024-01-01", # end_date = "2024-01-01", # bbox = c(-10, 0, 35, 45), # Mediterranean subset # output_file = file.path(tempdir(), "test_download.nc") # )