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.5.post2.tar.gz (9.3 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.5.post2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file kf_filter-0.0.5.post2.tar.gz.

File metadata

  • Download URL: kf_filter-0.0.5.post2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for kf_filter-0.0.5.post2.tar.gz
Algorithm Hash digest
SHA256 88bd2ec2be79098ae48466ef548629f339d75a1b527f0e9d8fcd00a398ff328e
MD5 e6756e989b1fc66ec7da21e976151376
BLAKE2b-256 a0ee4e92ef74868027fb7ceb3b1cbdecbb24eac17208e38c884d2dea3cb949a0

See more details on using hashes here.

File details

Details for the file kf_filter-0.0.5.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for kf_filter-0.0.5.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e15652595988130954ef1443517e2217bef17e0cd43d03a05da1c9d5147ed7f
MD5 6abffc5ce492bab45e6a1c8dfedc489e
BLAKE2b-256 6f10d037a73e3b54003365b5c3a97aab809a8d1e01c94fbcd5ad58f842de8016

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