An official website of the United States government.

We've made some changes to EPA.gov. If the information you are looking for is not here, you may be able to find it on the EPA Web Archive or the January 19, 2017 Web Snapshot.

HMS: Hydrologic Micro Services

Workflow - Time of travel

This page contains detailed information for the time of travel component.

On this page:

Description

This workflow calculates the time of travel for a contaminant through a network of streams based on the velocity and flow through the network. The workflow requires the user to select which stream segments the network starts and ends on. Because this workflow is a forecast tool, the time span for the workflow consists of an 18 hour time span starting from the current local time. The connected stream network is automatically generated based on the input streams, and flow data for the network can either be provided by the user or retrieved from the National Water Model data source. The resulting time series of data can be downloaded as a CSV or JSON, either per catchment or as one combined time series.

Capabilities

Version - 0.1

  1. Capability 1.
  2. Capability 2.
  3. Capability 3.
  4. Capability 4.
  5. Capability 5.

Input Parameters

Attributes of the HMS Time Of Travel input object
ParameterDataTypeDescriptionComments
Start COMIDNumberCOMID for the starting NHD stream catchment.Output time-series is returned for each catchment in the connected network between the two selected NHDPlusV2.1 catchments.
End COMIDNumberCOMID for the ending NHD stream catchment.
Source of Streamflow DataDrop-down listStreamflow data sourceValid sources: National Water Model, Input Table
Contaminant InflowNumberAmount of contaminant inflow present at the given timestep in cubic meters per second.Used only when 'Input Table' is selected for 'Source of Streamflow Data'.

Output Parameters

Attributes of the HMS Time Of Travel output object
ColumnDataTypeDescription
datasetStringPrimary dataset of the requested timeseries. Some API calls return more than one dataset, either for a workflow API or other relevent dataset.
dataSourceStringPrimary source of the requested timeseries.
metaDataDictionaryMetadata for the output timeseries, includes metadata from the source as well as HMS metadata.
dataDictionaryOutput timeseries data is returned as a dictionary, where the key is the datetime stamp and value is a list of values for the source/dataset.

Web Service Details

Swagger UI


HTTP API

MethodURL
POSThttps://qed.epa.gov/hms/rest/api/v3/workflow/timeoftravel/

Change Log

Version: 0.1 Beta : May 29, 2019

  1. Production UI and documentation initial setup.

Code Samples

Usage Title 1

Problem Statement: NA 1.

Desired Information: NA 1.

Information Returned from Service: NA 1.

Sample code for accessing API