Skip to main content

Filtering on the wavenumber-frequency domain based on WK99.

Project description

KF Filter

A Python package for filtering equatorial waves in the wavenumber-frequency domain.

Example Filter Visualization

Features

  • Implements wavenumber-frequency filtering for equatorial waves.
  • Supports filtering for MJO and TD as well.
  • Provides visualization tools for filter masks.

Installation

The easiest way to install is through pip.

pip install kf-filter

Usage

import xarray as xr
from kf_filter import KF

# Load your data as an xarray DataArray
data = xr.open_dataset("your_data.nc")["variable_name"]

# Initialize the KF filter
kf_filter = KF(data, sampling_per_day=2, time_taper_frac=0.1)

# Apply a Kelvin wave filter
filtered_data = kf_filter.kelvin_filter()

# Visualize the filter
kf_filter.visualize_filter("kelvin")

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

kf_filter-0.0.4.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kf_filter-0.0.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file kf_filter-0.0.4.tar.gz.

File metadata

  • Download URL: kf_filter-0.0.4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for kf_filter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f170127570ed88e11fd36b23fb87fe4a7a6f0d8ec842e70a0a9afd3efc7d0c26
MD5 876ab335a1067bb14f12e8dc6a549d01
BLAKE2b-256 0887688d94fdc665809232ef2ff746d9c610ccd8b15ed76b5b27c31d31b82baa

See more details on using hashes here.

File details

Details for the file kf_filter-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: kf_filter-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for kf_filter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d33804efb02ee5f1fd87bc2a20885656da88e7f9ba15788635eaa87a63e584
MD5 f511b8d8f6e07d4a1259881666cb2c2c
BLAKE2b-256 29215084af1d7943333a29d12d968cec9e86ea36848bf7ecd82ab5bbd5eb66d8

See more details on using hashes here.

Supported by

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