1.6.6 • Published 8 months ago

wy-water v1.6.6

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

wy-water

The wy-water package provides functionality to fetch and process water data, specifically river flow data from the USGS API for sites in Wyoming. This package helps developers extract river metrics like current temperature, flow, gage height, and dissolved oxygen values. It also offers functionality to fetch daily river metrics and instantaneous river metrics.

Main Features:

  1. Fetch Data: Retrieve data from specific endpoints using the base USGS API.
  2. Extract Current Metrics: Obtain current metrics for various river sites in Wyoming.
  3. Daily River Metrics: Retrieve and process metrics taken daily.
  4. Instantaneous River Metrics: Retrieve and process metrics taken instantaneously.

Usage:

Importing the module:

import {
  getRiverFlowData,
  getWyomingSites,
  getDailyRiverMetrics,
  getInstantaneousRiverMetrics,
} from "wy-water";

Fetching current metrics for Wyoming sites:

const wyomingSitesData = await getWyomingSites();

Fetching daily river metrics:

const dailyMetrics = await getDailyRiverMetrics(siteCode, period);

Fetching instantaneous river metrics:

const instantaneousMetrics = await getInstantaneousRiverMetrics(siteCode, period);

Data Types:

  • Value: Represents a basic metric containing value, unit, and the time when it was recorded.
  • MaxMinMean: Represents maximum, minimum, and mean values of a particular metric.
  • CurrentValue: Represents current values for temperature, flow, gage height, and dissolved oxygen for a site.
  • DailyValue: Represents daily metrics for streamflow, gage height, temperature, and dissolved oxygen.
  • InstantaneousValue: Represents instantaneous metrics for streamflow, gage height, temperature, and dissolved oxygen.

Please refer to types.ts for detailed type definitions and structure.

Contributing: If you wish to contribute to the wy-water package, please submit a pull request or open an issue for discussion.

1.6.4

9 months ago

1.6.3

9 months ago

1.6.2

9 months ago

1.6.1

9 months ago

1.6.0

9 months ago

1.5.0

9 months ago

1.4.0

9 months ago

1.6.6

8 months ago

1.6.5

9 months ago

1.3.0

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago