copernicusmarine
Subset and download marine data from EU Copernicus Marine Service Information. Import data on the oceans physical and biogeochemical state from Copernicus into R without the need of external software.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (19.8%) to scientific vocabulary
Keywords
data
spatial
Last synced: 6 months ago
·
JSON representation
Repository
Subset and download marine data from EU Copernicus Marine Service Information. Import data on the oceans physical and biogeochemical state from Copernicus into R without the need of external software.
Basic Info
- Host: GitHub
- Owner: pepijn-devries
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://pepijn-devries.github.io/CopernicusMarine/
- Size: 16.6 MB
Statistics
- Stars: 29
- Watchers: 2
- Forks: 4
- Open Issues: 4
- Releases: 5
Topics
data
spatial
Created about 3 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Changelog
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
library(CopernicusMarine)
```
# CopernicusMarine
[](https://github.com/pepijn-devries/CopernicusMarine/actions/workflows/R-CMD-check.yaml)

[](https://CRAN.R-project.org/package=CopernicusMarine)
[](https://cran.r-project.org/web/checks/check_results_CopernicusMarine.html)
[](https://pepijn-devries.r-universe.dev/CopernicusMarine)
[](https://app.codecov.io/gh/pepijn-devries/CopernicusMarine?branch=master)
## Overview
[Copernicus Marine Service Information](https://marine.copernicus.eu/about) is a programme subsidised by the
European Commission. Its mission is to provide free authoritative information on the oceans physical and
biogeochemical state. The `CopernicusMarine` R package is developed apart from this programme and facilitates
retrieval of information from . With the package you can:
* List available marine data for Copernicus and provide meta-information.
* Download and use the data directly in R.
## Why use `CopernicusMarine`
Copernicus Marine offers access to their data services through a
[Python application interface](https://pypi.org/project/copernicusmarine/).
For R users this requires complex installation procedures and is difficult to maintain in
a stable R package. The `CopernicusMarine` R package has
a much simpler installation procedure (see below) and does not depend on
third party software, other than packages available from [CRAN](https://cran.r-project.org/).
## Installation
Install CRAN release:
```{r eval=FALSE}
install.packages("CopernicusMarine")
```
Install latest developmental version from R-Universe:
``` r
install.packages("CopernicusMarine", repos = c('https://pepijn-devries.r-universe.dev', 'https://cloud.r-project.org'))
```
## Usage
The package provides an interface between R and the Copernicus Marine services. Note that for some of these
services you need an account and have to comply with
[specific terms](https://marine.copernicus.eu/user-corner/service-commitments-and-licence). The usage section
briefly shows three different ways of obtaining data from Copernicus:
* [Downloading a subset](#sec-subset)
* [Downloading a full dataset](#sec-full)
* [Using the WMTS server](#sec-wtms)
Please check the manual for complete documentation of the package.
Downloading a subset
Unfortunately, downloading subsets is not operational in R due to some
[technical issues](https://github.com/pepijn-devries/CopernicusMarine/issues/42).
It seems that it might take some time to get this fixed. In the meantime,
you could have a look at this
[work-around](https://github.com/pepijn-devries/CopernicusMarine/issues/42#issuecomment-2079745370).
Downloading a complete Copernicus marine product
If you don't want to subset the data and want the complete set, you can download
complete native files, if these are available for your product.
You can list available files with:
```{r, eval=TRUE}
native_files <-
cms_list_native_files(
"GLOBAL_ANALYSISFORECAST_PHY_001_024",
"cmems_mod_glo_phy-cur_anfc_0.083deg_P1D-m")
native_files
```
Downloading a specific (or multiple file) can be done with:
```{r, eval=FALSE}
cms_download_native(
destination = tempdir(),
product = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
layer = "cmems_mod_glo_phy_anfc_0.083deg_PT1H-m",
pattern = "m_20220630"
)
```
The file, whose file name matches the pattern, will be stored in the specified destination folder.
By default the progress is printed as files can be very large and may take some time to download.
Copernicus Web Map Tile Services (WMTS)
Web Map Tile Services (WMTS) allow to quickly plot pre-rendered images onto a map. This may not be useful when
you need the data for analyses but is handy for quick visualisations, inspection or presentation of data.
In R it is very easy to add WMTS layers to an interactive map using [leaflet](https://rstudio.github.io/leaflet/).
This page is rendered statically and resulting in a non-interactive map.
```{r leaflet, eval=TRUE, message=FALSE, warning=FALSE}
leaflet::leaflet() |>
leaflet::setView(lng = 3, lat = 54, zoom = 4) |>
leaflet::addProviderTiles("Esri.WorldImagery") |>
addCmsWMTSTiles(
product = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
layer = "cmems_mod_glo_phy-thetao_anfc_0.083deg_P1D-m",
variable = "thetao"
)
```
### Citing the data you use
A Copernicus account comes with several terms of use. One of these is that you
[properly cite](https://help.marine.copernicus.eu/en/articles/4444611-how-to-cite-copernicus-marine-products-and-services)
the data you use in publications. In fact, we also have credit the data used in this documentation, which can be easily
done with the following code:
```{r, eval=TRUE}
cms_cite_product("GLOBAL_ANALYSISFORECAST_PHY_001_024")$doi
```
## Resources
```{r, eval=TRUE, echo=FALSE}
cop_det <- cms_product_details("GLOBAL_ANALYSISFORECAST_PHY_001_024")
```
* [E.U. Copernicus Marine Service Information](https://data.marine.copernicus.eu)
* `r sprintf("[%s - %s (%s); DOI:%s](https://doi.org/%s)", cop_det$title, cop_det$id, cop_det$properties$creationDate, cop_det[["sci:doi"]], cop_det[["sci:doi"]])`
## Code of Conduct
Please note that the CopernicusMarine project is released with a [Contributor Code of Conduct](https://pepijn-devries.github.io/CopernicusMarine/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
Owner
- Login: pepijn-devries
- Kind: user
- Twitter: pepijn_devries
- Repositories: 3
- Profile: https://github.com/pepijn-devries
GitHub Events
Total
- Issues event: 4
- Watch event: 3
- Delete event: 2
- Issue comment event: 33
- Push event: 79
- Pull request event: 41
- Fork event: 1
- Create event: 1
Last Year
- Issues event: 4
- Watch event: 3
- Delete event: 2
- Issue comment event: 33
- Push event: 79
- Pull request event: 41
- Fork event: 1
- Create event: 1
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| pepijn-devries | p****2@g****m | 32 |
| Vries | p****s@w****l | 28 |
| Riccardo Soldan | 4****2 | 1 |
Committer Domains (Top 20 + Academic)
wur.nl: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 27
- Total pull requests: 66
- Average time to close issues: about 2 months
- Average time to close pull requests: 5 days
- Total issue authors: 14
- Total pull request authors: 2
- Average comments per issue: 2.81
- Average comments per pull request: 0.33
- Merged pull requests: 59
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 39
- Average time to close issues: 8 days
- Average time to close pull requests: 3 days
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 1.25
- Average comments per pull request: 0.49
- Merged pull requests: 33
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- pepijn-devries (10)
- DevrekerD (2)
- dancrear (2)
- MauroMardones (2)
- raymondben (2)
- ValentinTeillard (1)
- teuzindahuz (1)
- RSO9192 (1)
- sermomon (1)
- Ge0rges (1)
- ericward-noaa (1)
- elifrag (1)
- LuisLauM (1)
- linnetjessell (1)
Pull Request Authors
- pepijn-devries (64)
- RSO9192 (2)
Top Labels
Issue Labels
enhancement (5)
duplicate (2)
bug (1)
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- cran 347 last-month
-
Total dependent packages: 1
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 19
- Total maintainers: 1
proxy.golang.org: github.com/pepijn-devries/CopernicusMarine
- Documentation: https://pkg.go.dev/github.com/pepijn-devries/CopernicusMarine#section-documentation
- License: gpl-3.0
-
Latest release: v0.2.0
published about 2 years ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
proxy.golang.org: github.com/pepijn-devries/copernicusmarine
- Documentation: https://pkg.go.dev/github.com/pepijn-devries/copernicusmarine#section-documentation
- License: gpl-3.0
-
Latest release: v0.2.0
published about 2 years ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
cran.r-project.org: CopernicusMarine
Search Download and Handle Data from Copernicus Marine Service Information
- Homepage: https://github.com/pepijn-devries/CopernicusMarine
- Documentation: http://cran.r-project.org/web/packages/CopernicusMarine/CopernicusMarine.pdf
- License: GPL (≥ 3)
-
Latest release: 0.2.6
published 7 months ago
Rankings
Forks count: 21.9%
Stargazers count: 22.5%
Average: 27.8%
Downloads: 29.3%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5.0 depends
- crayon * imports
- dplyr * imports
- httr * imports
- jsonlite * imports
- leaflet * imports
- purrr * imports
- readr * imports
- rvest * imports
- sf * imports
- stringr * imports
- utils * imports
- xml2 * imports
- lifecycle * suggests
- stars * suggests
- testthat >= 3.0.0 suggests
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite