Skip to main content

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


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.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

CVHSSmoothing-1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file CVHSSmoothing-1.0.tar.gz.

File metadata

  • Download URL: CVHSSmoothing-1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for CVHSSmoothing-1.0.tar.gz
Algorithm Hash digest
SHA256 921ca676c334e643bf273c9f170a2ee955acaa69748f5181ded0a655bfb323d1
MD5 782da5fea08383942b53b2eecf280a70
BLAKE2b-256 752fcb18bd21c744400373dbc8c6bfe82d1c08af7a355a14afdcf2b959a6937f

See more details on using hashes here.

File details

Details for the file CVHSSmoothing-1.0-py3-none-any.whl.

File metadata

  • Download URL: CVHSSmoothing-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for CVHSSmoothing-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c1c14cb6e87ae8352ff63ba1ff1bf344b994d04b9544901ca2b21427616b2b0
MD5 64b5add03e443efbb73d571d65ebaac5
BLAKE2b-256 efe49ffa9f821e98ae0d77ec4fdfa480014affdea3d5c2046c92fdc80fab3839

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page