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 hashes)
Built Distribution
Close
Hashes for CVHSSmoothing-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a595729d483ea0738b4b2aed9a5814d4e78cb643eb1857269154af73e8b253 |
|
MD5 | b729ff4e73fca83e3b301f7c7c993dee |
|
BLAKE2b-256 | 3cd049dfd9f78093e0f5557cf48df8cbe48de27eae4a0dc5298fee6950d96f46 |