Written by Cara Wilson and Dale Robinson (CWWC). Adapted by Ron Vogel (CWEC) and Melanie Abecassis (OWCP)
Objective: Showcase the breadth of datasets available on various ERDDAPs and demonstrate how to graph and download data from ERDDAP.
ERDDAP was developed by Bob Simons from the NOAA SouthWest Fisheries Science Center.
ERDDAP is a platform to distribute data to users. Various institutions have installed ERDDAP to allow their users to visualize and download data.
ERDDAP offers a consistent way to get data from a variety of different data sources. A variety of data types can be distributed on ERDDAP: in situ, satellite, or model data among others.
ERDDAP lets you download data in your preferred data file format (netcdf, csv, ESRIcsv, JSON, ODVtext, mat, text and more).
ERDDAP lets you create images in your preferred image file format (png, transparent png, pdf, kml).
It supports temporal and spatial subsetting.
It is “RESTful”, meaning the URL completely defines the data you want, in the format you want. This means you can transfer the URL to another application and access the same data from there, for example, in your own webpage, or from your analysis software. You can even email the URL to a colleague and they can access the same data, image or plot that you generated.
So ERDDAP works for both humans and machines!
If you are unsure of which ERDDAP hosts the dataset you are interested in, you can use the following search engine, which compiles data hosted by 49 different ERDDAP instances across the world: http://erddap.com/
Following the 2018 lower Puna eruption, an algae bloom was observed off the east coast of the Big Island in June 2018 (visible near the easternmost point of the island if you zoom in).
Let’s see what the chlorophyll concentration data looks like for that period.
- Type “VIIRS chlorophyll” in the search box. This will generate a list of choices
- Hover with your mouse on the question mark in the “Summary” column for some of the rows. This is where you can find a brief description of each dataset
- Click on the “graph” link to the left of the dataset named “Chlorophyll a Concentration, NPP VIIRS - CoastWatch - Weekly, 2012-present”
Here is what you should see.
You'll notice that for this dataset, longitudes go from 0º to 360º instead of -180º to 180º. This allows users to download data for regions across the dateline. Other data sources, not focused on the Pacific, provide the data with longitudes between -180º and 180º.
Notice also that for this dataset, latitudes go from North to South. Some datasets list the latitudes from south to north.
You should always check the range of longitudes and latitudes for each dataset you are working with to make sure you are downloading data for the correct region and to avoid error messages.
- Enter 18.5 and 20.5 as the south and north latitude and 203.5 and 206 as the start and stop longitude.
- set the date to 06/02/2018
- Adjust the colorbar minimum to 0.005
- Adjust the Scale parameter to "Log"
- Click on “redraw the graph”
Scroll through the different time steps using the + button next to the date to see the full extent of the bloom (notice that there is a lot of cloud cover close to the island, that's the grey areas). You can also adjust the color scale by setting different values for colorbar minimum and maximum. Don't forget to click on "Redraw the Graph" after you change settings.
Under the "redraw the Graph" button, set the file type to ".largePng" and click on the "download" button. Try different file type options (html, PDF, ...).
After making all these changes, when the map looks the way you want it to, you can easily share it, or save it by simply copying the URL in your browser.
There are two types of data stored on ERDDAP – gridded data (i.e. satellite data) and tabular data (i.e. station or profile data). ERDDAP uses two different functions to deal with the different types of data. Griddap works with gridded data and Tabledap works with tabular data.
You can see that there is a "GridDAP" column and a "TableDAP" column, corresponding to different datasets.
Go to the OceanWatch Central Pacific ERDDAP and click on the "graph" link to the left of the dataset named "PIFSC CTD Data".
This form allows you to plot a subset of the CTD data that was collected over a number of cruises, using a set of constraints.
Let's look at cruise "HA1101".
- In the first row of the "Constraints" column, select the variable "LEG_NAME" using the drop down menu.
- Under "Optional constraint #1", another drop down menu appears, allowing you to select specific cruise legs. Select "HA1101_LEG_I".
- Add a second constraint, to look at depths ("DEPTH_SW_M") shallower than 20m.
- Set the color scale to reflect water temperature by selecting the "Temperature" variable in "Color", under "graph type".
- click on "redraw graph".
Let's now make a traditional temperature/salinity plot:
- Below "graph type", select "salinity" as the "X Axis", and "temperature" as the "Y Axis", and "DEPTH_SW_M" as the "Color".
- Remove the depth constraint by selecting the blank space at the top of the drop down menu
- Under "Graph settings", select "circle" as the marker type, white as the "color", and set the color bar maximum to 600 (that is about the maximal depth in the dataset)
- click on "redraw graph"
- Select the "mod" variable - that's the absolute value of wind speed
- Change the region to 10-40N, 260-300E
- Change the date to 08/26/2005
- Change the color scale
- click on "redraw graph"
- Change the "Graph Type" to "vectors"
- Change "Vector X" to "xwind" and "Vector Y" to "y_wind"
Go to the OceanWatch Central Pacific ERDDAP and click on the "graph" link to the left of the dataset named "Sea Surface Temperature, Coral Reef Watch, CoralTemp v3.1- Monthly, 1985-present".
- Make a map of SST for January 1997, for the region: -20 - 20N, 180 to 300E, and adjust the color scale to 18-30ºC
- Click on "Redraw the Graph"
SST for January 1997
- Make a map of SST for January 1998, for same region and adjust the color scale
- Click on "Redraw the Graph"
We can clearly see the tongue of warm water due to the 1998 El Niño.
Now let's make a Hovmöller plot:
- Below "Graph Type", select "time" in the drop down menu for "Y Axis".
- Adjust the date range to jan. 1995 - Dec. 2000
- Adjust the latitude to 0º, and the longitude to 180 to 300º
- Adjust the color scale to 18-30ºC
- Click on "Redraw the Graph"
Again, the winter of 1998 was clearly anomalous compared to other years.
Do you have a graph you like? Want to save it or send it to someone? Change the drop-down menu next to “set the File Type” to png and click on “download the data”, that will create a png file with just that image in it.
You can copy the url and send it to someone which will recreate the image. The url can also be edited.
We’ll walk through some examples using the url created in Example #1:
- Base ERDDAP URL:
- Dataset ID:
noaa_snpp_chla_weeklyWe could use
- File type:
largePngwill create a png file of the image
csvwill download a CSV file to your computer. A complete list of the available file format options can be viewed in the dropdown menu next to “Set the File Type”
htmlwill bring up the form to download the data
- Variable name:
chlor_aSome datasets contain several variables. For example, wind data typically has a wind speed variable, a u-component variable and a v-component variable.
- Changing the date to
lastwill ensure the graph always plots the most recent data
- Latitude range:
- Longitude range:
- Everything beginning with
&.drawadjusts the look of the image
- First, create a map of a monthly composite of AQUA MODIS chlorophyll concentration around Hawaii for the date of your choice.
- Create a time series of monthly chlorophyll concentration for a location close to Honolulu. Hint: you will need to change the "Graph Type". Make sure to select of few years worth of data. Make sure your longitude is within the correct range and your latitudes in the correct order
- If there are gaps or outlier values, try again for a location further south (i.e. slightly further from the coast and shallow water)
- Do you see any seasonal variation?
- Download the time series data as a .csv file
- Select a date for a period of low chlorophyll and create a map in a new browser window for that date
- Open a new browser window, copy and paste the URL for the first map and create a map for a period of high chlorophyll by changing only the date in the URL
- Compare the two maps and save them as .png
You can easily download any of the data on ERDDAP in a variety of different formats: .nc, .mat, .asc, etc.
To the left of any dataset on the main ERDDAP page, click on “data” instead of "graph". ERDDAP generates a Data Access Form, where you can specify constraints to get the data you need: time range, latitude range, longitude range, altitude, data variables, and file type. You can then access the resulting data file via a URL, or use the Submit button to download the file to your computer.
If you are making a graph of the data (on the page that says “Make A Graph”) just click on the “Data Access Form” link above the graph. You can also access this form by replacing the “.graph” in the url with “.html”.
If you do not work with any software but still want to match satellite data to some in-situ data, you can use the browser-based Interpolate Tool.
To access the tool, you need to append "/convert/interpolate.html" to the ERDDAP base URL: https://oceanwatch.pifsc.noaa.gov/erddap/convert/interpolate.html https://coastwatch.pfeg.noaa.gov/erddap/convert/interpolate.html
To use the tool, you need to format your in-situ data locations and dates correctly, to match what you see in the pre-set example:
This can be done in Excel. Select all your dates, click right and select "Format Cells". In the left-side column, click on "Date", then on "Custom":
You can then edit the Date format by typing: yyyy-mm-dd
Most satellite data you will work with is at best daily, so you can ignore the time component. If you need the time component, if you have a separate column for date and time, create an additional column, and make it the sum of your date and time column. Then format the new column using the format: yyyy-mm-ddThh:mmZ
Now, identify, which ERDDAP dataset you want to work with, for example: Daily SST: https://oceanwatch.pifsc.noaa.gov/erddap/griddap/CRW_sst_v1_0.graph
Note the dataset ID in red, the name of the variable in green, and make sure that your longitudes match the longitude format (0-360º vs -180 to 180º). Transform your longitudes if needed. Save your file as a CSV file. Then open it in notepad, and copy paste the data into the browser. Edit the dataset ID and variable name in the "request CSV" line, as well as any other option. Edit The "File type" for the output and click on "Convert".
The resulting file will have a value of SST for each data point!
Now you try it with this example file! https://oceanwatch.pifsc.noaa.gov/files/hawaii2020/track.csv