Skip to main content

USGS MovingBedExtraction - Parser to generate summary data from ADCP files for the USGS.

Project description

ADCP-Moving-Bed-Extraction

Pulls extraction files from ADCP files for the USGS. Can be run on a given folder with subdirectories. For all the subdirectories - the script will scan through all files looking for two conditions:

  1. File extension is xml
  2. QRev (case sensitive) is present in the file name.

An error log will be generated to the folder. There may be some bad field data / assumptions taken, and the script will do its best to inform you of those decisions.

Installation

pip install usgs_mbe

Usage

usgs_mbe --test-folder=/path/to/folder

or - more simply -

usgs_mbe

If you're calling from Python (I.e., through Anaconda / PyCharm / etc.), you can do

import usgs_mbe
usgs_mbe.parse_folder(r"path/to/folder")

Output

A csv file in each subfolder with the following columns:

MovingBedSpeed
MovingBedSpeedUnit
TestTimestamp
MovingBedTestResults
StationName
siteid
MovingBedTestQuality
Duplicates -- If multiple values were found - this indicates that the first was taken.
gage_height_va -- USGS value for the closest height to the TestTimestamp.

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

usgs_mbe-0.1.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

usgs_mbe-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file usgs_mbe-0.1.4.tar.gz.

File metadata

  • Download URL: usgs_mbe-0.1.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Darwin/19.6.0

File hashes

Hashes for usgs_mbe-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b089703b86fdc7690094880c08628f2afc7f7ca673b53a5d88ff1b3e05e2cd2e
MD5 5d3789321e2506079b11adc251a224ec
BLAKE2b-256 67e4272ba31c4b0111f5242612759be503e8d6eacf26d31b11ad6e64aff3e226

See more details on using hashes here.

File details

Details for the file usgs_mbe-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: usgs_mbe-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Darwin/19.6.0

File hashes

Hashes for usgs_mbe-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62557c4c384c136c90e090703e3694a40a8800ebbb8f804038320e50e9ba6870
MD5 d117b014c24062bc9c9589dea2b89066
BLAKE2b-256 c0bb18cff353430cbe8aa0be9d75d70e0b1bd864aed2cdbcb8e1af772036505c

See more details on using hashes here.

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