opendrift icon indicating copy to clipboard operation
opendrift copied to clipboard

CMES data access

Open ocecept opened this issue 3 years ago • 4 comments
trafficstars

Hi all;

Is the CMEMS example working in the last version?

I use to provided user and passwrd explicitly in older versions, but I can not do it now.

I tried to created the .netrc file as suggested:

machine nrt.cmems-du.eu login myuser password mypass

I keep it at my home folder, but the access to the CMEMS does not work.

I usually download all the data for research but the online access is very good for lectures.

Many thanks

Carlos

ocecept avatar Jun 17 '22 15:06 ocecept

Hi, Yes, it is working, but some additional information should probably be added to the example description:

  1. The .netrc file should be unreadable to others: chmod 500 .netrc
  2. It is also necessary to have a file .dodsrc in your home folder, which should contain a line like: HTTP.NETRC=<path to your .netrc-file>

Please tell me if this works for you, and I will add this piece of information to the example description.

knutfrode avatar Jun 17 '22 15:06 knutfrode

Hi,

After I did what you mentioned, now it works perfectly!

I had changed the .netrc to unreadable before, so adding the .dodsrc looks to do the trick.

Thanks a lot again

ocecept avatar Jun 17 '22 16:06 ocecept

Hi,

Just a small thing - in the docs (opendrift/examples/example_long_cmems.py) the file is a .dodrsc rather than .dodsrc - I'd not come across them before so it took me a sec to work out!

CalumF avatar Aug 08 '22 14:08 CalumF

You are right, there was a typo! This is now fixed: https://github.com/OpenDrift/opendrift/commit/6031e172f49a96cab1611705e0070bca7f0869ca

knutfrode avatar Aug 08 '22 14:08 knutfrode