ERDDAP Data Server

There are two ways to find a dataset in ERDDAP.

  1. Search by Server Types "ERDDAP" from the data page and then use the link of the desired dataset.




    For example, for "Argo", click link and click data on "Argo Float Data (Dapper)" row.
  2. Select ERDDAP under Servers in the menus.
    Click "View a List of All 12 Datasets"




    For example, click data on "Argo Float Data (Dapper)" row.
  3. For private datasets only, Authenticated ERDDAP required with username and password:
    Click "log in" on the upper right corner on ERDDAP index page.

  4. Type User Name / Password to use the private datasets.
    Note: This login session is independent from GDS/LAS/DChart.

ERDDAP dataset page

ERDDAP with Python or MATLAB

Python (external link) is a widely-used computer language that is very popular among scientists.
In addition to the Pydap Client, you can use Python to download various files from ERDDAP
as you would download other files from the web:

import urllib  urllib.urlretrieve
("http://baseurl/erddap/tabledap/datasetID.fileType?query",
"outputFileName")
Or download the content to an object instead of a file:
import urllib2  response = urllib2.open
("http://baseurl/erddap/tabledap/datasetID.fileType?query")
theContent = response.read()

APDRC example in Python tutorial page.

MATLAB (external link) .mat (external link) - Matlab users can use tabledap's .mat file type to download data from within
MATLAB. Here is a one line example:

load(
urlwrite('http://apdrc.soest.hawaii.edu/erddap/tabledap/
argo_all.mat?longitude%2Clatitude%2Ctime%2Cpres%2Ctemp
&time%3E=1998-09-01&time%3C=1998-09-02',
'test.mat'));
The data will be in a MATLAB structure. The structure's name will be the datasetID
(for example, argo_all).
The structure's internal variables will be column vectors with the same names
as in ERDDAP (for example, use fieldnames(argo_all)).

ERDDAP stores datetime values in .mat files as "seconds since 1970-01-01T00:00:00Z".
To display one of these values as a String in Matlab, you can use, e.g.,

unique_time = unique(argo_all.time);
datestr(unique_time(1)/86400 + 719529)

ans =
01-Sep-1998 04:21:35

86400 converts ERDDAP's "seconds since" to Matlab's "days since". 719529 converts
ERDDAP's base time of "1970-01-01T00:00:00Z" to Matlab's "0000-01-00T00:00:00Z".

You can then make a plot of pressure vs. temperature on Sep 1, 1998. For example:

time1_i = find([argo_all.time] == unique_time(1));
plot(argo_all.temp(time1_i),argo_all.pres(time1_i))
set(gca,'YDir','Reverse')

APDRC example in MATLAB tutorial page.