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

Improve online documentation #36

Open
bulli92 opened this issue Aug 2, 2015 · 0 comments
Open

Improve online documentation #36

bulli92 opened this issue Aug 2, 2015 · 0 comments

Comments

@bulli92
Copy link
Contributor

bulli92 commented Aug 2, 2015

Improve the Gallery and examples by putting them into ipynb

Use
a) examples in example directory
b) the following examples

Basic data analysis

Temporal mean


Calculating the temporal mean field of a variable is as simple as::

    air.timmean()

Spatial mean

The (area weighted) spatial mean is obtained as::

air.fldmean()

Masking an area


You probably want to work only on particular regions. The following script shows you how to easily to this.

.. plot:: ../../pycmbs/examples/05_mask_a_region.py
  :include-source:

Temporal slicing

If you want to perform a temporal subsetting of the data, this can be done as follows::

# temporal subsetting using existing start/stop dates
import datetime.datetime

start_date = datetime(2001,05,01)
stop_date = datetime(2010,04,15)
air.apply_temporal_subsetting(start_date, stop_date):

Working with multiple datasets

Simple arithmetic operations


.. plot:: ../../pycmbs/examples/03_data_analysis.py
  :include-source:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant