ERDDAP Easier access to scientific data | Brought to you by NOAA NMFS SFSC ERD |
tabledap request URLs must be in the form
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/ datasetID fileType {?query}
For example,
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.htmlTable?longitude,latitude,time,sea_surface_temperature&longitude>180&longitude<180.2&latitude>0&latitude<0.2&time>2007-06-01T00:00:00Z
Details:
Data fileTypes | Description | Info | Example |
---|---|---|---|
.asc | View the data as OPeNDAP-style comma-separated ASCII text. | info | example |
.csv | Download the data as comma-separated ASCII text table (missing value = 'NaN'; times are ISO 8601 strings). | info | example |
.das | View the data's metadata via an OPeNDAP Dataset Attribute Structure (DAS). | info | example |
.dds | View the data's structure via an OPeNDAP Dataset Descriptor Structure (DDS). | info | example |
.dods | OPeNDAP clients use this to download the data in the DODS binary format. | info | example |
.geoJson | Download longitude,latitude,otherColumns data as a GeoJSON file. | info | example |
.graph | View a Make A Graph web page. | info | example |
.html | View an OPeNDAP-style HTML data access form. | info | example |
.htmlTable | View an HTML file with the data in a table (times are ISO 8601 strings). | info | example |
.json | Download the data as a JSON table (missing value = 'null'; times are ISO 8601 strings). | info | example |
.mat | Download a MATLAB binary file. | info | example |
.nc | Download a NetCDF binary file with COARDS/CF/THREDDS metadata. | info | example |
.ncHeader | View the header (the metadata) for the NetCDF file. | info | example |
.tsv | Download the data as tab-separated ASCII text table (missing value = 'NaN'; times are ISO 8601 strings). | info | example |
.xhtml | View an XHTML file with the data in a table (times are ISO 8601 strings). | info | example |
MATLAB
MATLAB users can download data from within MATLAB.
Here is a one line example:
load(urlwrite('http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.mat?longitude,latitude,time,sea_surface_temperature&longitude>180&longitude<180.2&latitude>0&latitude<0.2&time>2007-06-01T00:00:00Z', 'test.mat'));The data will be in a MATLAB structure. The structure's name will be the datasetID (for example, "pmelTao").
plot(pmelTao.time, pmelTao.sea_surface_temperature)
Making an Image with a Graph or Map of Tabular Data
If a tabledap request URL specifies a subset of data which is suitable for making a graph or a map,
and the fileType is an image fileType, tabledap will return an image with a graph or map.
tabledap request URLs can include optional graphics commands which let you customize the graph or map.
As with other tabledap request URLs, you can create these URLs by hand or have a computer program do it.
Or, you can use the Make A Graph web pages, which simplify creating these URLs (see the "graph" links in the table of tabledap datasets).
The fileType options for downloading images of graphs and maps of table data are:
Image fileTypes | Description | Info | Example |
---|---|---|---|
.kml | View a .kml file, suitable for Google Earth, with a reference to the data you selected. | info | example |
.smallPdf | View a small .pdf image file with a graph/map of the data you selected. | info | example |
View a standard, medium-sized .pdf image file with a graph/map of the data you selected. | info | example | |
.largePdf | View a large .pdf image file with a graph/map of the data you selected. | info | example |
.smallPng | View a small .png image file with a graph/map of the data you selected. | info | example |
.png | View a standard, medium-sized .png image file with a graph/map of the data you selected. | info | example |
.largePng | View a large .png image file with a graph/map of the data you selected. | info | example |
Or, if you change the fileType in the URL from .png to .graph, you can see a Make A Graph web page with that request loaded:
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.graph?time,sea_surface_temperature&longitude>180&longitude<180.2&latitude>0&latitude<0.2&time>2008-04-01T00:00:00Z&.draw=linesAndMarkers&.marker=1|3&.color=0xFF9900&.colorBar=|C|Linear|0|32|
That makes it easy for humans to modify an image request to make a similar graph or map.
Or, if you change the fileType in the URL from .png to a data fileType (e.g., .htmlTable), you can download the data that was graphed:
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.htmlTable?time,sea_surface_temperature&longitude>180&longitude<180.2&latitude>0&latitude<0.2&time>2008-04-01T00:00:00Z&.draw=linesAndMarkers&.marker=1|3&.color=0xFF9900&.colorBar=|C|Linear|0|32|
Or, if you change the fileType in the URL from .png to .graph, you can see a Make A Graph web page with that request loaded:
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.graph?longitude,latitude,sea_surface_temperature,time&time>=2007-06-01T00:00:00Z&time<2007-06-02T00:00:00Z&.draw=markers&.marker=5|5&.color=0x000000&.colorBar=Rainbow|C|Linear|0|32|
Or, if you change the fileType in the URL from .png to a data fileType (e.g., .htmlTable), you can download the data that was mapped:
http://coastwatch.pfeg.noaa.gov/erddap/tabledap/pmelTao.htmlTable?longitude,latitude,sea_surface_temperature,time&time>=2007-06-01T00:00:00Z&time<2007-06-02T00:00:00Z&.draw=markers&.marker=5|5&.color=0x000000&.colorBar=Rainbow|C|Linear|0|32|