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.1.tar.gz (8.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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kf_filter-0.0.1.tar.gz
  • Upload date:
  • Size: 8.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.1.tar.gz
Algorithm Hash digest
SHA256 f4eb029675808022f28b85feb92f48f3dd15a8f3f176e873451974d04299124d
MD5 552f667a927570b3c56c359e60cbf67e
BLAKE2b-256 d6b7cc938005e85717a74ac6922d4a065f04e70c9286890e3505dfb57c92eeb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kf_filter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44001eb58c5ecc40656d78a3df36b422d1adfafca6574ab59bf6105d6b0bf6d5
MD5 213ea36a5dbfa546583917ff340c5f23
BLAKE2b-256 e28c4563b6989673eed22911325e46141a54df23f9a471dd82b511db7c28fef7

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