Skip to main content

Process and analyze US sewershed data from CWNS

Project description

US Sewersheds

Process and analyze US sewershed data from the Clean Watersheds Needs Survey (CWNS).

Overview

This repository includes code to visualize sewershed interconnections in the US based on the 2022 Clean Watershed Needs Survey. The us_sewersheds folder includes two scripts:

  1. merge_cwns_data.py
    • Merges multiple sources for population served into the primary facilities list.
    • Functions:
      • main(state=None): Main processing function that can process all states or a single state.
      • merge_population_data(facilities_df, ww_df, sso_df): Merges population data from multiple sources.
      • build_sewershed_map(facilities_df): Creates network connections between treatment facilities.
    • Required inputs:
      • data/2022CWNS_NATIONAL_APR2024: Clean Watersheds Needs Survey 2022 dataset
        • FACILITIES.csv: Main facilities data
        • FACILITY_PERMIT.csv: Facility permit information
        • AREAS_COUNTY.csv: County area information
        • FACILITY_TYPES.csv: Facility type information
        • FLOW.csv: Flow data
        • POPULATION_WASTEWATER.csv: Wastewater population data
        • POPULATION_WASTEWATER_CONFIRMED.csv: Confirmed wastewater population data
        • POPULATION_DECENTRALIZED.csv: Decentralized population data
        • DISCHARGES.csv: Discharge information
  2. sewersheds_app.py
    • Deploys Streamlit application to visualize different sewersheds in the US, by state and county

Installation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

us_sewersheds-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

us_sewersheds-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file us_sewersheds-0.1.1.tar.gz.

File metadata

  • Download URL: us_sewersheds-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for us_sewersheds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e130a2cc24555ac280f6da1341e07ed3201a1245f20ec663b8c279fa70b76044
MD5 70592181eaf8f86584df30cc70903ba2
BLAKE2b-256 a8bb73d390326809769cfbf48a4e91fab7cd8d2b94faeed1ceb3e1d9b7f17566

See more details on using hashes here.

Provenance

The following attestation bundles were made for us_sewersheds-0.1.1.tar.gz:

Publisher: publish.yml on dalyw/us-sewersheds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file us_sewersheds-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: us_sewersheds-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for us_sewersheds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6a26e9f79bfc1c2d14fc6ecfdb67e1fdc7c25fe47cc132e9b832d8040f49cf
MD5 f7cf8a062c2295a17bcb28a03d2024c4
BLAKE2b-256 df460462077e9144d069dcecb5889b3dd01cfa20aa74560371340c0f252791bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for us_sewersheds-0.1.1-py3-none-any.whl:

Publisher: publish.yml on dalyw/us-sewersheds

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page