GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ERDDAP/erddap: 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).

BranchesTags
Open more actions menu

Latest commit

 

History

1,038 Commits
1,038 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.mvn
.mvn
 
 
WEB-INF
WEB-INF
 
 
development
development
 
 
docker
docker
 
 
dokka
dokka
 
 
download
download
 
 
images
images
 
 
src
src
 
 
translation
translation
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
CREDITS.md
CREDITS.md
 
 
DEPLOY_INSTALL.md
DEPLOY_INSTALL.md
 
 
DEPLOY_UPDATE.md
DEPLOY_UPDATE.md
 
 
DOCKER.md
DOCKER.md
 
 
Dockerfile
Dockerfile
 
 
GOVERNANCE.md
GOVERNANCE.md
 
 
LICENSE
LICENSE
 
 
PROGRAMMER_GUIDE.md
PROGRAMMER_GUIDE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
TECHNICAL_BOARD.md
TECHNICAL_BOARD.md
 
 
docker-compose.yml
docker-compose.yml
 
 
makeErddapWar.bat
makeErddapWar.bat
 
 
pom.xml
pom.xml
 
 
spotbugs-security-exclude.xml
spotbugs-security-exclude.xml
 
 
spotbugs-security-include.xml
spotbugs-security-include.xml
 
 
versionrules.xml
versionrules.xml
 
 

Repository files navigation

ERDDAP™: Easier Access to Scientific Data

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.

ERDDAP SST data example graph page

Example screenshot of ERDDAP™'s web user interface 'Make-a-Graph' page

Developing with ERDDAP™

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:

  • Jetty Servlet Container - see: ERDDAP™ Development with Maven and Jetty.
  • Docker/Tomcat (building and running an ERDDAP™ development Docker image) - see: ERDDAP™ Development with Docker/Tomcat

For operational ERDDAP™ deployment, Apache Tomcat is recommended. See Deploying ERDDAP™ Operationally for instructions.

Running JUnit tests

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.

Running integration tests

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.

External server 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™.

Useful test invocation commands

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

Metrics are collected using Prometheus. You can see the metrics on a local server at /erddap/metrics.

Building a war

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.

Running the code formatter

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.

Contributing Code to ERDDAP™

Below are relevant links for getting involved with the ERDDAP™ community and contributing to ERDDAP:

  • Review conversations and ask questions at https://groups.google.com/g/erddap or at https://github.com/erddap/erddap/discussions
  • Review and submit issues to https://github.com/erddap/erddap/issues
  • To propose feature requests, follow this guidance: #93

Deploying ERDDAP™ Operationally

Instructions for installing ERDDAP™ in Apache Tomcat are available at: https://erddap.github.io/docs/server-admin/deploy-install.

About

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).

Topics

dataenvironmentalerddapnoaascientificserver

Resources

Readme
CC0-1.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

125 stars

Watchers

23 watching

Forks

76 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.