Cubic spline interpolation of hydrographs
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CVHSSmoothing-1.1.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file CVHSSmoothing-1.1.tar.gz
.
File metadata
- Download URL: CVHSSmoothing-1.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c6322e274235292fa729cb7699ed0c3929645a281a872ea3ba4f66a265a88b |
|
MD5 | aeeb9182bf70c1aed002223962ff6ea1 |
|
BLAKE2b-256 | 606cf5341c9acb7e2235416c540f755a53520931a2ab6a5cc45fa70adc9fd255 |
File details
Details for the file CVHSSmoothing-1.1-py3-none-any.whl
.
File metadata
- Download URL: CVHSSmoothing-1.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a595729d483ea0738b4b2aed9a5814d4e78cb643eb1857269154af73e8b253 |
|
MD5 | b729ff4e73fca83e3b301f7c7c993dee |
|
BLAKE2b-256 | 3cd049dfd9f78093e0f5557cf48df8cbe48de27eae4a0dc5298fee6950d96f46 |