RCMEMS provides an R interface to the Copernicus Marine Environment Monitoring Service (CMEMS) by wrapping around the more-standard Python-based Motu Client.
RCMEMS acts as an R wrapper around the "motuclient" developed by CLS in Tolouse, France. You will also need to download and install this client by following the instructions here:
https://github.com/clstoulouse/motu-client-python
RCMEMS has been rewritten to reflect changes in version 1.8.4 of the client. It is no-longer backwards compatible with previous versions.
Motuclient is written in the Python language, which you will also need to install if you don't have it already. You can get Python from here:
As a general rule, it is simplest to install the motuclient module in python (i.e. using the "pip" command).
Remember that you will also need to provide the details of your user-account on CMEMS, so make sure you have that handy too. Sign up here:
http://marine.copernicus.eu/services-portfolio/register-now/
You can install this package directly from the GitHub repository using the following command:
devtools::install_github("markpayneatwork/RCMEMS")
Including usernames and passwords in scripts is generally not a particularly good idea, especially if you are also publishing the code on e.g. GitHub. The Motu-client provides a way around this, by letting you specify the passwords in a separate file on your machine. See the motu documentation for more details:
https://github.com/clstoulouse/motu-client-python#Configuration
Once installed, using RCMEMS involves the following steps
CMEMS.config()
parse.CMEMS.script()
function.update()
functionCMEMS.download()
function.The package is (reasonably) well documented, so check the help files first. The help documentation for the motu-client can also be useful at times. If all else fails after reasonable efforts, please feel free to file a bug-report here (under "Issues") - that way, everyone can see the problem and hopefully learn from it. I'm happy to offer help, but prefer it to go through the Issue tracker.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.