inst/doc/getting-started.R

## ----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 = "<your_username>", password = "<your_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")
# )

Try the copernicusR package in your browser

Any scripts or data that you put into this service are public.

copernicusR documentation built on Aug. 8, 2025, 7:06 p.m.