Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #168

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Docs #168

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Local docs build
doc/_build/
doc/api/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
18 changes: 9 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ xrft: Fourier transforms for xarray data
|pypi| |conda forge| |conda-forge| |Build Status| |codecov| |docs| |DOI| |license| |Code style|

**xrft** is an open-source Python package for
taking the discrete Fourier transform (DFT) on xarray_ and dask_ arrays.
taking the discrete Fourier transform (DFT) on xarray_ and Dask_ arrays.

.. _xarray: http://xarray.pydata.org/en/stable/
.. _dask: https://dask.org
.. _Dask: https://dask.org

It is:

- **Powerful**: It keeps the metadata and coordinates of the original xarray dataset and provides a clean work flow of DFT.
- **Easy-to-use**: It uses the native arguments of `numpy FFT`_ and provides a simple, high-level API.
- **Fast**: It uses the `dask API of FFT`_ and `map_blocks`_ to allow parallelization of DFT.
- **Powerful**: It keeps the metadata and coordinates of the original xarray dataset and provides a clean workflow of DFT.
- **Easy-to-use**: It uses the native arguments of `NumPy FFT`_ and provides a simple, high-level API.
- **Fast**: It uses the `Dask FFT API`_ and `map_blocks`_ to allow parallelization of DFT.

.. _numpy FFT: https://docs.scipy.org/doc/numpy/reference/routines.fft.html
.. _dask API of FFT: http://docs.dask.org/en/latest/array-api.html?highlight=fft#fast-fourier-transforms
.. _map_blocks: http://docs.dask.org/en/latest/array-api.html?highlight=map_blocks#dask.array.core.map_blocks
.. _NumPy FFT: https://docs.scipy.org/doc/numpy/reference/routines.fft.html
.. _Dask FFT API: https://docs.dask.org/en/latest/array-api.html#fast-fourier-transforms
.. _map_blocks: https://docs.dask.org/en/latest/generated/dask.array.map_blocks.html#dask.array.map_blocks

Please cite the `doi <https://doi.org/10.5281/zenodo.1402635>`_ if you find this
Please cite the `DOI <https://doi.org/10.5281/zenodo.1402635>`_ if you find this
package useful in order to support its continuous development.

Get in touch
Expand Down
598 changes: 402 additions & 196 deletions doc/DFT-iDFT_example.ipynb

Large diffs are not rendered by default.

59 changes: 46 additions & 13 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
API reference
#############

This page provides an auto-generated summary of xrft's API. For more details
This page provides a summary of **xrft's top-level API**. For more details
and examples, refer to the relevant chapters in the main part of the
documentation.

Expand All @@ -15,26 +15,59 @@ documentation.
missing data. It's the user's responsibility to ensure data are free of NaN
or that NaNs have been filled somehow.

xrft
====
FFT routines
============

.. automodule:: xrft.xrft
:members:
.. autosummary::
:toctree: api/

fft
ifft
power_spectrum
cross_spectrum
cross_phase
isotropize
isotropic_power_spectrum
isotropic_cross_spectrum


Deprecated names:

.. autosummary::
:toctree: api/

dft
idft
isotropic_powerspectrum
isotropic_crossspectrum

detrend
=======

You also may wish to use xrft's detrend function on its own.
Detrending
==========

.. automodule:: xrft.detrend
:members:
You may wish to use xrft's detrend function on its own.

padding
.. autosummary::
:toctree: api/

detrend

Padding
=======

Pad and unpad arrays and its coordinates so they can be used for computing
FFTs.

.. automodule:: xrft.padding
:members:
.. autosummary::
:toctree: api/

pad
unpad

Misc.
=====

.. autosummary::
:toctree: api/

fit_loglog
Loading