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.1:

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

(0.5.0 was immediately superseded by 0.5.1 after finding some errors)

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.
  • Time coordinates are never converted to 32-bit (convert_64_to_32), and the compliance check flags 32-bit time.
  • Refactoring and cleaning up of the code.
  • Minor fixes/improvements to despiking and time averaging functions.
  • 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.1

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.1
File Size Uploaded
kval-0.5.1.tar.gz 3.8 MB Details

Built distribution (wheel)

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

Total release size: 3.9 MB

Release files / kval-0.5.1.tar.gz

Download URL kval-0.5.1.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8276c6a284fc6c2107e27f2873c3b538b2dea027ae60764a6570d1af5e0e9c40
BLAKE2b-256 checksum
How to use checksums
5265d2c05ffd718e2bf029ff7839cbc650b3d8f12a7878ce832e7745ca3f9f81
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.1-py3-none-any.whl

Download URL kval-0.5.1-py3-none-any.whl
Size 173.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2858836a3e06d21213f0f9a17bd90a3047392a6192f724bcde4cb88ca1de435
BLAKE2b-256 checksum
How to use checksums
104526ddd88c1da9d8d1a91139fcc07e60a064994fcaef921d661fa7b6900732
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

This release

0.5.1 This release

2 release files

0.5.0

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