Smoothing
Cubic Spline Hydrograph Interpolation
This utility is designed to upsample a daily hydrogrph to hourly using cubic spline interpolation.
The utility is designed to work with the following sturcture
Smoothing
├───core - utility codes
├───OUTFILES - directory for data processing outputs
├───USBC_1DAY - directory for input daily time series
└───USBC_PEAKS - directory for input peak flow time series
The input text files are structured as text files saved from MS excel.
A KERN
B ISABELLA
C GMT-08:00 FLOW-RES IN
E
F POR
Units CFS
Type PER-AVER
1 01Oct1952 403
2 02Oct1952 395
3 03Oct1952 385
4 04Oct1952 384
Basic Usage
import pandas as pd
from core.Spline import spline
from core.dss_util import import_smooth_ts
locations = (
"ISB_POR",
)
inputfile = {}
outfile = {}
peaksfile = {}
for i in locations:
inputfile[i] = r"USBC_1DAY/%s.txt" %(i)
outfile[i] = r"%s_UNREG_SMTHD" %(i)
peaksfile[i] = False
out_dss = r"OUTFILES\isabella_smooth.dss"
for location in locations:
spline(inputfile[location], outfile[location], peaksfile[location])
import_smooth_ts(outfile[location],out_dss,'/ISABELLA/ISABELLA LAKE/FLOW-RES-IN//1HOUR/SYNTHETIC/', day_offset=1)
Metadata
Release files for CVHSSmoothing 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CVHSSmoothing-1.1.tar.gz | 9.1 kB | Without provenance | Details for CVHSSmoothing-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CVHSSmoothing-1.1-py3-none-any.whl | Python 3 | none | any | Details for CVHSSmoothing-1.1-py3-none-any.whl |
Total release size: 23.7 kB
Release files / CVHSSmoothing-1.1.tar.gz
| Download URL | CVHSSmoothing-1.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41c6322e274235292fa729cb7699ed0c3929645a281a872ea3ba4f66a265a88b
|
|
BLAKE2b-256 checksum How to use checksums |
606cf5341c9acb7e2235416c540f755a53520931a2ab6a5cc45fa70adc9fd255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / CVHSSmoothing-1.1-py3-none-any.whl
| Download URL | CVHSSmoothing-1.1-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2a595729d483ea0738b4b2aed9a5814d4e78cb643eb1857269154af73e8b253
|
|
BLAKE2b-256 checksum How to use checksums |
3cd049dfd9f78093e0f5557cf48df8cbe48de27eae4a0dc5298fee6950d96f46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for CVHSSmoothing 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.