Skip to content

Installation of `copernicusmarine`

Ben Tupper edited this page Nov 15, 2024 · 1 revision

updated 2024-11-15 BTT

To make copernicusmarine globally available across your platform try using pipx. pipx is like pip but it will install packages into environments to isolate each package. Follow the instructions to install pipx.

Install

$ pipx install copernicusmarine

Set credentials

$ copernicusmarine login --username YOUR_USERNAME_HERE --password YOUR_PASSWORD_HERE

Try it

This should create "output.nc" in your current directory. If you get prompted for a username/password you may need to log out of your shell and then log back in.

$ copernicusmarine subset -i cmems_mod_glo_phy-cur_anfc_0.083deg_P1D-m --log-level QUIET -v uo -v vo -x -72.00 -X -63.00 -y 39.00 -Y 46.00 -z 0.00 -Z 10.00 -t "2024-11-12" -T "2024-11-21" --overwrite -f output.nc -o . 
Clone this wiki locally