Skip to main content

Script to resample TopNet streamq time-series

Project description

Post-processing utils for TopNet

  • Python Requirements: xarray netcdf4

  • Other Requirements: ncatted needs to be avialable (part of NCO)

Resampling of streamq files

resample_streamq.py resamples a streamq file to daily, monthly or weekly time step.

  • prerequisite: run the fix_streamq.sh script on the streamq file. This will remove the time:bounds attribute on the target netcdf file.

  • It can also have an start and end date.

Example:

resample_streamq streamq.nc {1D,1M,W} [-start_date "mm/dd/yyyy hh:mm:ss" -end_date "mm/dd/yyyy hh:mm:ss" --variables [list of variables to resample]

Currently we have the following available variables to resample:

  • Resample by sum: aprecip, drainge, soilevp, potevap, canevap, snowevp

  • Resample by averaging: river_flow_rate_mod

Resampling of tseries files

resample_tseries.py in the same way as the streamq files. Usage is the same.

Currently we have the following available variables to resample:

  • Resample by sum: aprecip, drainge, soilevp, potevap, canevap, snowevp, lakeprec, lakevap

  • Resample by averaging: mod_streamq, lakeqin, lakeqout, lakevol, lakarea, lakedepth.

Streamq statistics

Use the script streamq_statistics to this. Groupings available: month, season and day.

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

topnet-resampling-0.2.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file topnet-resampling-0.2.tar.gz.

File metadata

  • Download URL: topnet-resampling-0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.0

File hashes

Hashes for topnet-resampling-0.2.tar.gz
Algorithm Hash digest
SHA256 511f581704785e8c55895dfe5a6c071dc06cd7e6febb6c660321177ca5547b41
MD5 3c05243d4266427e83c4fdef0c39dbdb
BLAKE2b-256 1dfeaf022b095e63b0759c6c20cdfc11feac6812c4001b481f7522cdb5bffeeb

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