Skip to main content

image

Collection of Python tools for working with oceanography data processing and analysis.

Maintained by the Oceanography section at the Norwegian Polar Institute and supported by the HiAOOS project.


Documentation page (in development)


Installation

Conda:

conda install -c npiocean -c conda-forge kval

Pip 1 :

pip install kval

DOI

About the latest release, 0.5.0:

NOTE 0.5 introduces breaking changes from 0.4. Existing code may need updating. See Breaking changes below.

New

  • kval.plot.tsplot: T-S diagram plotting.
  • moored.plot works on 2D variables.
  • Function for combining moored datasets, and time averaging (xr_funcs.time_average).
  • Other minor support functions.

Fixes

  • Interactive plots no longer go blank when called more than once in the same notebook. This was caused by a bug in ipykernel 7 (ipykernel#1564), so kval now requires ipykernel<7.
  • Interactive hand edits are now applied correctly, and interactive figures display consistently.
  • Better drift correction (non-uniform time steps) and time utilities (fractional seconds).
  • Various fixes to SBE and RBR file reading, CF-compliance checking (now CF-1.11), and metadata.
  • Refactoring and cleaning up of the code.
  • Extended pytest coverage.

Dependencies

  • Temporary caps: ipykernel<7 and matplotlib<3.11. These will be relaxed when the upstream issues are resolved.
  • Now requires compliance-checker>=6.1; gsw and netcdf4 are listed explicitly.

Breaking changes

  • Python 3.10 is no longer supported (now 3.11–3.13).
  • Renamed modules:
    • kval.data.ctd → kval.data.ctdprof
    • kval.maps → kval.plot
    • kval.metadata.check_conventions → kval.metadata.compliance
  • Renamed arguments: var_name/varnm → variable, and D → ds. Affects code that passes these as keyword arguments.
  • The PROCESSING variable has been removed. Processing steps are now recorded in a processing_history attribute.
  • Metadata functions no longer assume NPI-specific attributes.

kval is in active development.


  1. Conda is recommended for Windows users as we have experienced errors with the dependent library compliance-checker on Windows+pip. ↩

Metadata

Release files for kval 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kval 0.5.0
File Size Uploaded
kval-0.5.0.tar.gz 3.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for kval 0.5.0
File Interpreter ABI Platform
kval-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 MB

Release files / kval-0.5.0.tar.gz

Download URL kval-0.5.0.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
d8262dbdedaf530319a934930408fa34a05b50eb88e3c00cb4f9b55200d3ec7f
BLAKE2b-256 checksum
How to use checksums
f59c91b75d175bb5a7e9db69fa3a9a231695a5c687096a2a6a8206222556a3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / kval-0.5.0-py3-none-any.whl

Download URL kval-0.5.0-py3-none-any.whl
Size 167.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d559729919bbf861aae305d68ec2a9a36f8f7013a47a8943cfb3cf68c853597
BLAKE2b-256 checksum
How to use checksums
cb648b94db2d9a986a196b6effa46ca40274858f418102dc7e6a99df7f87dcb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.1

2 release files

This release

0.5.0 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page