ERDDAP is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP is a Free and Open Source (Apache and Apache-like) Java Servlet from NOAA NMFS SWFSC Environmental Research Division (ERD).
Welcome to the ERDDAP™ GitHub repository
ERDDAP™ is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP™ is a Free and Open Source Java Servlet developed by the NOAA NMFS SWFSC Environmental Research Division (ERD).
A live ERDDAP™ installation can be seen at: https://coastwatch.pfeg.noaa.gov/erddap/index.html.

Example screenshot of ERDDAP™'s web user interface 'Make-a-Graph' page
ERDDAP™ is a Java Servlet-based application and can be run in any compatible Java Servlet Container/Application Server, such as Apache Tomcat.
Local development and testing of ERDDAP™ code can be done without a production-scale installation. Two approaches are recommended:
For operational ERDDAP™ deployment, Apache Tomcat is recommended. See Deploying ERDDAP™ Operationally for instructions.
Simply run mvn test in a terminal to run the JUnit tests.
Note that by default tests that do an image comparison are enabled. To disable those tests add ImageComparison to the excludedGroups section of the surefire configuration. It is recommended you run the image tests before making changes to ERDDAP™ so you can generate a baseline set of images that will be later used for comparison.
These are slower tests, including those that interact with a locally running server. Run them with mvn verify.
If you have issues with tests, it could be good to try a mvn clean before running the tests.
While many of the tests interact with external servers, for example to load data. There are some tests that are almost entirely testing an external server and not ERDDAP™. These external tests are run using mvn verify -P external. In the code they are tagged with TagExternal. This is different from TagDisabledExternalERDDAP and TagDisabledExternalOther, which are used to label tests where the external source is either no longer available or extremely flaky.
The external tests should be run periodically (maybe around release time), but are unlikely to be relevant to day to day ERDDAP development™.
Run a single unit test
mvn -Dtest=EDDTableFromAsciiFilesTests#testBasic test
Attach a debugger to a single unit test (debugging port 8000 by default):
mvnDebug -DforkCount=0 -Dtest=EDDTableFromAsciiFilesTests#testBasic test
or
MAVEN_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8000" \
mvn -DforkCount=0 -Dtest=EDDTableFromAsciiFilesTests#testBasic test
Run a single integration test:
mvn -Dtest=foo -Dsurefire.failIfNoSpecifiedTests=false -Dgcf.skip -Dit.test=JettyTests#displayInformation verify
Attach a debugger to a single integration test (debugging port 8000 by default):
mvnDebug -DforkCount=0 -Dtest=foo -Dsurefire.failIfNoSpecifiedTests=false -Dgcf.skip \
-Dit.test=JettyTests#displayInformation verify
or
MAVEN_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8000" \
mvn -DforkCount=0 -Dtest=foo -Dsurefire.failIfNoSpecifiedTests=false -Dgcf.skip \
-Dit.test=JettyTests#testEDDGridNcoJsonMetadata verify
Metrics are collected using Prometheus. You can see the metrics on a local server at /erddap/metrics.
mvn package will create a war file.
If you'd like to skip the tests while building use mvn package -DskipTests. You can use the skipTests flags with other maven commands.
To format code locally you can run:
(Windows)
mvn validate git-code-format:format-code -D"gcf.globPattern=**/*"
(Other)
mvn validate git-code-format:format-code -Dgcf.globPattern=**/*
Code should be automatically formatted during a git pre-commit step to simplify reviews. It can still be useful sometimes to format code before making a git commit.
Below are relevant links for getting involved with the ERDDAP™ community and contributing to ERDDAP:
Instructions for installing ERDDAP™ in Apache Tomcat are available at: https://erddap.github.io/docs/server-admin/deploy-install.
Enable viewing xml snippet that defines a dataset
https://github.com/ERDDAP/erddap/issues/667
Labels: None
Add a query parameter to avoid updating history metadata attribute in file downloads
https://github.com/ERDDAP/erddap/issues/663
Labels: None
Add an orderByMMLTTB("time", "variable", number_of_buckets) to ERDDAP (refers to IOOS code sprint idea)
https://github.com/ERDDAP/erddap/issues/642
Labels: None
Implement Duplicate First Axis Value Strategy
https://github.com/ERDDAP/erddap/issues/566
Labels: None
useHeadersForUrl needed to be set to false when public Host header is not forwarded by reverse proxy (expected)
https://github.com/ERDDAP/erddap/issues/457
Labels: None
Implement EDDTableFromDuckDb
https://github.com/ERDDAP/erddap/issues/448
Labels: None
ERDDAP defers loading child dataset for EDDGridLonPM180
https://github.com/ERDDAP/erddap/issues/440
Labels: None
Update cache and cache clear strategy
https://github.com/ERDDAP/erddap/issues/434
Labels: None
Feature Request: Native Model Context Protocol (MCP) Server Integration
https://github.com/ERDDAP/erddap/issues/420
Labels: enhancement, GSoC
Do not open up a GitHub issue if the bug is a security vulnerability, and instead to refer to our security policy. Any sensitive issues will be removed from the public tracker.
Ensure the bug was not already reported by searching on GitHub under Issues.
If you have a feature request make a Github Discussion (see below for more information).
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and directions for reproducing the issue or an ERDDAP™ server demonstrating the expected behavior that is not occurring.
Open a new GitHub pull request (PR) with the patch.
Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
Before submitting, please read the Programmer Guide (coming soon) guide to know more about coding conventions.
Suggest your change in the ERDDAP™ GitHub discussions and start writing code. Before creating the GitHub discussion, it might be helpful to read this guidance.
Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.
See the ERDDAP™ GitHub discussions.
See the ERDDAP™ users Google group.