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

Docstanya #297

Merged
merged 282 commits into from
Jan 17, 2019
Merged
Changes from 1 commit
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
49c79e1
merge docs
dnadeau4 Nov 15, 2017
b92460f
add requirements.txt
dnadeau4 Nov 15, 2017
96a2581
remove cdat_info
dnadeau4 Nov 15, 2017
d629683
remote cdat_info
dnadeau4 Dec 7, 2017
c533331
fix latex_logo png
dnadeau4 Dec 7, 2017
9d724ae
Merge branch 'master' into cdmsdocsmerge
dnadeau4 Dec 7, 2017
0ca4050
pin pyopenssl to 17.2.0 due to myproxyclient failure in py3
dnadeau4 Dec 7, 2017
263d814
update TOC
dnadeau4 Dec 8, 2017
bbafa04
work on tables and setup
dnadeau4 Dec 20, 2017
3ec8781
try to force jquery 3.1
dnadeau4 Dec 20, 2017
7eca248
just copy js script in _static
dnadeau4 Dec 20, 2017
95b3029
add highlight python
dnadeau4 Dec 20, 2017
a1f80cb
add sample dataset page
dnadeau4 Jan 9, 2018
f6335ee
add sample dataset page
dnadeau4 Jan 9, 2018
58915de
work on tables for cdms_2.rst
dnadeau4 Jan 11, 2018
89c45b9
continue cdms2 documentations
dnadeau4 Jan 17, 2018
d4269cf
update cdms2 tables
Jan 29, 2018
8402530
update sections
Jan 29, 2018
1ec5ef9
update table
Jan 30, 2018
7bc7d13
finish chapter 2
dnadeau4 Feb 7, 2018
dbdbbc9
merge master
dnadeau4 Feb 7, 2018
322803c
fix litteral error
dnadeau4 Feb 7, 2018
e9c0809
merge master
dnadeau4 Feb 7, 2018
ee5c35a
fix conclits
dnadeau4 Feb 7, 2018
9b9c9f8
Merge branch 'master' into cdmsdocsmerge
dnadeau4 Feb 7, 2018
c4563ee
unlink .dodsrc for cdscan
dnadeau4 Feb 7, 2018
9ae560a
First changes from Tanya
reshel3 Feb 27, 2018
f93e64f
some change in chapter 1 and 2
reshel3 Mar 1, 2018
42d56ee
some changes in Chapter 2
reshel3 Mar 1, 2018
af15c81
fix tables
reshel3 Mar 1, 2018
69478bd
Some changes to Chapter 2
reshel3 Mar 5, 2018
f542e15
Some Changes to Chapter 2
reshel3 Mar 6, 2018
10b3523
Some changes made to Chapters 1, 2 and 4
reshel3 Mar 7, 2018
33c90fd
Some changes to Chapter 2
reshel3 Mar 8, 2018
368d88d
Some Changes made to Chapter 2
reshel3 Mar 8, 2018
27603b7
Some changes to Chapters 2, 3 and 4
reshel3 Mar 9, 2018
62832f7
Some changes made to 1 through Appendix
reshel3 Mar 12, 2018
5e30a18
Some Changes made to Chapter 2
reshel3 Mar 13, 2018
1d7d259
Some Changes to Chapters 1, 2, 3, 6 and Appendix
reshel3 Mar 14, 2018
a40269d
Some changes made to Chapters 1 thru 7 and appendix
reshel3 Mar 15, 2018
074fcfb
Some changes to Chpaters 1, 2 and 3
reshel3 Mar 19, 2018
f2e7fef
Changes made to Chapters 1, 4, 5 and Appendix
reshel3 Mar 20, 2018
65943ff
Some changes to Chapter 2 and 4
reshel3 Mar 23, 2018
08ca15c
Some Changes to Images, Chapter 3 and Appendix
reshel3 Mar 26, 2018
e15c025
update logo
dnadeau4 Mar 28, 2018
a62a8fa
add my logo
dnadeau4 Mar 28, 2018
ab6f16d
Merge branch 'master' into cdmsdocsmerge
dnadeau4 Mar 28, 2018
680397b
fix chapter 1 test
dnadeau4 Mar 28, 2018
56c41b6
Some changes made to Chapters 2, 3 and 5
reshel3 Mar 28, 2018
35c1437
Some Changes to Chapters 1 and 2
reshel3 Mar 29, 2018
12737a4
Some changes to Appendix
reshel3 Apr 3, 2018
31931d4
update banner/footer and version
dnadeau4 Apr 3, 2018
a3f6282
Some Changes to Chapters 1, 2, 3 and appendix
reshel3 Apr 4, 2018
9b2a4e0
change u to uold in example
dnadeau4 Apr 9, 2018
a145945
Some changes to Chapters 2, 4, 5 and 6
reshel3 Apr 9, 2018
3583767
Some changes to Regrid 2, Lib, esmf, gsRegrid and horizontal
reshel3 Apr 16, 2018
89bd18b
Changes made to Chapters 1-7 and sample data
reshel3 Apr 16, 2018
66d4289
fix API documentation
reshel3 Apr 17, 2018
2e9414a
rename regrid2 directory and delete print message
reshel3 Apr 17, 2018
02b9195
add module API files
reshel3 Apr 17, 2018
d12d82f
add future and mock requirements
reshel3 Apr 17, 2018
adf2dcb
get cwd for readthedocs
reshel3 Apr 17, 2018
3724fb7
Changes made to API
reshel3 Apr 18, 2018
e252f48
Changes made to API
reshel3 Apr 20, 2018
ffce80d
Changes made to API
reshel3 Apr 20, 2018
1760785
Changes to API
reshel3 Apr 23, 2018
1b4d412
test rtd with mock
dnadeau4 Apr 24, 2018
34973dd
add future for readthedocs
dnadeau4 Apr 24, 2018
79f5c12
create git.py in ../..
dnadeau4 Apr 24, 2018
6c2f9b9
fix conflicts
dnadeau4 Apr 24, 2018
bdb5db6
add esmf
dnadeau4 Apr 24, 2018
62c24f7
add print statements for regrid2
dnadeau4 Apr 24, 2018
2846cfc
add print for libregrid2
dnadeau4 Apr 24, 2018
43e42eb
restore regrid2.Lib for readthedocs
dnadeau4 Apr 24, 2018
463c721
add mock modules
dnadeau4 Apr 24, 2018
62e160f
add git.py
dnadeau4 Apr 24, 2018
1b12f72
try with new mock list
dnadeau4 Apr 24, 2018
932d66f
force git.py
dnadeau4 Apr 24, 2018
9275ecd
force git.py
dnadeau4 Apr 24, 2018
c2baa86
try readthedocs.yml file
dnadeau4 Apr 24, 2018
970bb4e
fix readthedocs maping file
dnadeau4 Apr 24, 2018
92b39e6
change type pdb to pdf
dnadeau4 Apr 24, 2018
b0df74f
typo requirements.yml
dnadeau4 Apr 24, 2018
26661a8
add dependencies
dnadeau4 Apr 24, 2018
721da2d
add dependencies and change conf.yml
dnadeau4 Apr 24, 2018
2dc4acc
change API.rst and other rst files
dnadeau4 Apr 24, 2018
9d1487a
Changes to API
reshel3 Apr 24, 2018
3cf5491
UVCDAT_ANONYMOUS_LOG set to false
dnadeau4 Apr 24, 2018
443d7f5
check if git.py is there
dnadeau4 Apr 25, 2018
92fa468
add gcc to environment.yml
dnadeau4 Apr 25, 2018
eeb7777
try docker environment.yml
dnadeau4 Apr 25, 2018
3cac37b
remove git.py
dnadeau4 Apr 25, 2018
7c7b5c9
fix conflicts
dnadeau4 Apr 25, 2018
8952fb1
chage Libregrid to regrid2
dnadeau4 Apr 25, 2018
8ae28f7
revert
dnadeau4 Apr 25, 2018
0c6e809
revert
dnadeau4 Apr 25, 2018
2d12952
add cdms2 class
Apr 25, 2018
ad98288
delet cdms2 class
Apr 25, 2018
7c311f2
delet cdms2 class
Apr 25, 2018
0b340e5
change conf.py os.path
Apr 25, 2018
67cf584
Changes to API
reshel3 Apr 26, 2018
401b6cb
Changes made to API
reshel3 Apr 30, 2018
49c6890
Changes to API
reshel3 Apr 30, 2018
297d386
Changes made to API
reshel3 May 1, 2018
72414f2
Changes to API
reshel3 May 2, 2018
735a306
Changes made to API
reshel3 May 3, 2018
8ad34b5
Changes made to API
reshel3 May 9, 2018
10ddc5b
Changes to API
reshel3 May 16, 2018
12c2f0e
Changes to API
reshel3 May 16, 2018
3074964
Changes made to API
reshel3 May 17, 2018
b9e04a6
Changes made to API
reshel3 May 18, 2018
651ae1c
Changes made to API
reshel3 May 21, 2018
222ab4d
Merge branch 'docstanya' into readthedocstest
dnadeau4 May 22, 2018
1c91ea5
push latest rst files
reshel3 May 22, 2018
e13b988
Merge branch 'readthedocstest' of github.com:UV-CDAT/cdms into readth…
dnadeau4 May 22, 2018
8cd77b9
Merge branch 'docstanya' into readthedocstest
dnadeau4 May 22, 2018
6155ef0
Changes made to API
reshel3 May 23, 2018
521fb97
Made some changes to API
reshel3 May 24, 2018
7302fd9
update documentations
dnadeau4 May 29, 2018
ca61e5d
Changes made to API
reshel3 May 29, 2018
e737c89
Changes made to API
reshel3 May 30, 2018
a7063e2
Changes made to API
reshel3 May 31, 2018
3cb0aad
Changes made to Section 2 and API
reshel3 Jun 1, 2018
7878e53
Changes made to Section 2
reshel3 Jun 4, 2018
e8077bb
Changes made to Chapter 2
reshel3 Jun 5, 2018
a27487c
Changes made to Section 2
reshel3 Jun 6, 2018
7d0bd02
Changes made to Chapters 2, 3, 4,5 and 6
reshel3 Jun 7, 2018
4523dc2
Changes made to Sections 2, 4, 7 and Appendix
reshel3 Jun 11, 2018
e550c14
Changes made to Chapter 6 and Appendix
reshel3 Jun 12, 2018
554bd4c
Changes made to Section 2
reshel3 Jun 13, 2018
506ccb8
update summary table for API
dnadeau4 Jun 14, 2018
16f6fdd
add generated files
dnadeau4 Jun 14, 2018
5a7ebdc
Merge branch 'master' into docstanya
reshel3 Jun 14, 2018
6ae47a2
Changes made to al sections
reshel3 Jun 14, 2018
ba79685
Changes made to Section 2 and API
reshel3 Jun 15, 2018
765dd6f
Changes made to 2 and API
reshel3 Jun 18, 2018
a016201
Made changes to sections 1 and 2
reshel3 Jun 19, 2018
1b51879
Issue#231 (#232)
dnadeau4 Mar 7, 2018
3d614dd
failing test from vcs added here (#234)
doutriaux1 Mar 13, 2018
e2a12a8
Cdmsdocsmerge (#223)
dnadeau4 Mar 29, 2018
f32c86b
Fix python3 slice issue(setitem) and flake8 (#243)
dnadeau4 May 1, 2018
7ced34c
fix python 3 aggregation issue and flake8 (#244)
dnadeau4 May 2, 2018
9d5b7d2
Netcdf46 (#249)
dnadeau4 Jun 6, 2018
f18e8aa
Revert "Netcdf46 (#249)" (#250)
dnadeau4 Jun 6, 2018
074b412
Netcdf46 (#251)
dnadeau4 Jun 12, 2018
c9dd25e
Netcdf46 (#252)
dnadeau4 Jun 12, 2018
a378f31
Changes made to API
reshel3 May 23, 2018
5ffe9de
Made some changes to API
reshel3 May 24, 2018
6442448
Changes made to API
reshel3 May 29, 2018
93b206e
Changes made to API
reshel3 May 30, 2018
c390ee6
Changes made to API
reshel3 May 31, 2018
1b5ad8a
Changes made to Section 2 and API
reshel3 Jun 1, 2018
e9792fb
Changes made to Section 2
reshel3 Jun 4, 2018
01ba90a
Changes made to Chapter 2
reshel3 Jun 5, 2018
691b110
Changes made to Section 2
reshel3 Jun 6, 2018
519add2
Changes made to Chapters 2, 3, 4,5 and 6
reshel3 Jun 7, 2018
b4f6628
Changes made to Sections 2, 4, 7 and Appendix
reshel3 Jun 11, 2018
a294133
Changes made to Chapter 6 and Appendix
reshel3 Jun 12, 2018
08f62a5
Changes made to Section 2
reshel3 Jun 13, 2018
5158373
Changes made to al sections
reshel3 Jun 14, 2018
46e564f
Changes made to Section 2 and API
reshel3 Jun 15, 2018
134054c
Changes made to 2 and API
reshel3 Jun 18, 2018
a473fe3
Made changes to sections 1 and 2
reshel3 Jun 19, 2018
c2d8bd3
Issue#231 (#232)
dnadeau4 Mar 7, 2018
44add33
Fix python3 slice issue(setitem) and flake8 (#243)
dnadeau4 May 1, 2018
405fe24
fix python 3 aggregation issue and flake8 (#244)
dnadeau4 May 2, 2018
e1b587f
Netcdf46 (#249)
dnadeau4 Jun 6, 2018
97279be
Revert "Netcdf46 (#249)" (#250)
dnadeau4 Jun 6, 2018
f6ca669
Netcdf46 (#251)
dnadeau4 Jun 12, 2018
180f9e1
Netcdf46 (#252)
dnadeau4 Jun 12, 2018
7bf205a
fix conflict with master
dnadeau4 Jun 20, 2018
09d70ec
Fix table titles
reshel3 Jun 20, 2018
f6d99e3
Change made to Section 4
reshel3 Jun 21, 2018
ced9db6
fix bindex issue in hgrid
dnadeau4 Jun 25, 2018
8d2c194
Changes to all
reshel3 Jun 25, 2018
9dca0db
Corrections made to API Lib
reshel3 Jun 25, 2018
89b22f9
Changes to API
reshel3 Jun 25, 2018
0827d3b
fix ascii art
dnadeau4 Jun 26, 2018
f2b2e65
Changes to Sections 2, 4 and 5
reshel3 Jun 26, 2018
cdff139
Changes made to all
reshel3 Jun 27, 2018
529535e
Fix Conflict
reshel3 Jun 27, 2018
7dfb910
Changes made to Sections 2, 6 and Appendix
reshel3 Jun 28, 2018
3e67e57
Changes made to Section 2
reshel3 Jul 2, 2018
01fb416
Changes made to Section 2
reshel3 Jul 9, 2018
bac2fa4
Changes made to Section 2 and 5
reshel3 Jul 11, 2018
66eaa55
Changes to Sections 2, 6 and 7
reshel3 Jul 12, 2018
46ea27d
Changes to API
reshel3 Jul 25, 2018
28dbb4f
Changes made to API
reshel3 Jul 25, 2018
5819332
Made Changes to API
reshel3 Jul 25, 2018
99dd8f5
Changes made to API
reshel3 Jul 30, 2018
2d71dd9
Changes made to Section 4 and 7
reshel3 Jul 31, 2018
bdd5968
Changes made to API
reshel3 Aug 7, 2018
7c10798
Changes made to API
reshel3 Aug 8, 2018
556d92f
Revisit run tests (#262)
muryanto1 Aug 8, 2018
82142bd
merge master
dnadeau4 Aug 20, 2018
d474e9c
fix Axis.py
dnadeau4 Aug 20, 2018
6e40d4c
update documentation
reshel3 Aug 20, 2018
cbb943e
fix environment dependencies
reshel3 Aug 21, 2018
794a5e5
add/remote generated files
reshel3 Aug 21, 2018
4bddf04
try to fix API.rst
reshel3 Aug 21, 2018
ff931a7
add regrid2 to docs
reshel3 Aug 21, 2018
b049359
Changes made to API
reshel3 Aug 21, 2018
f300870
fix space with parameters
reshel3 Aug 21, 2018
3ca9877
fix readthedocs using numpydoc
reshel3 Aug 21, 2018
493d2c1
update environment
reshel3 Aug 21, 2018
304b3f1
fix some autodocs
reshel3 Aug 22, 2018
ffc6f2e
add hgrid
reshel3 Aug 22, 2018
58cadd7
Changes made to API
reshel3 Aug 22, 2018
86caf86
Changes made to API
reshel3 Aug 23, 2018
21d5e47
Merge branch 'master' into docstanya
dnadeau4 Aug 28, 2018
4def393
fix avariable bad location methods
dnadeau4 Aug 28, 2018
f3c72ff
Changes to Appendix and API
reshel3 Aug 29, 2018
7ee9c2e
Changes to Chapter 1 and 2
reshel3 Aug 30, 2018
eb38903
Changes made to Section 2
reshel3 Sep 4, 2018
75c3f41
Changes made to Section 2
reshel3 Sep 5, 2018
16c2397
Changes made to Section 2
reshel3 Sep 6, 2018
8753cc2
Changes to sections 1, 2, 3 and 4
reshel3 Sep 10, 2018
eb9ee84
Changes to section 2
reshel3 Sep 11, 2018
b39bb62
Changes made to entire docuemnt
reshel3 Sep 17, 2018
96cd85d
Changes to Section 1 and 2
reshel3 Sep 18, 2018
6de4bf7
Changes made to Section 2
reshel3 Sep 20, 2018
241ff9f
Changes made to Sections 2 thru 6
reshel3 Sep 27, 2018
085b28c
Changes made to Chapters 3 and 6
reshel3 Oct 4, 2018
451a012
add jupyter notebook
reshel3 Oct 18, 2018
0fbeaba
Changes to all
reshel3 Oct 24, 2018
dd65dfd
Changes to Jupyter Notebooks
reshel3 Nov 6, 2018
06f672c
Changes to all
reshel3 Nov 7, 2018
0e1e668
fix conflict merge master
dnadeau4 Nov 8, 2018
193e42a
update documentation for version 3.1.0
dnadeau4 Nov 9, 2018
5216d3b
Merge branch 'master' into docstanya
dnadeau4 Nov 9, 2018
b7a23ec
merge documentations
dnadeau4 Nov 9, 2018
e1a9e29
Merge branch 'master' into docstanya
dnadeau4 Nov 13, 2018
46a8b5f
change banner and sidebar colors
dnadeau4 Nov 13, 2018
866a225
Changes to API
reshel3 Nov 13, 2018
c1f98a9
fix style sheet
dnadeau4 Nov 14, 2018
f444406
Changes to API
reshel3 Nov 14, 2018
aea7a3e
Changes to API
reshel3 Nov 15, 2018
69de7c1
Changes to API and Sections
reshel3 Nov 19, 2018
64cc035
Changes to all
reshel3 Nov 28, 2018
8006c3c
will this fix master? (#292)
doutriaux1 Nov 14, 2018
24130a4
Merge branch 'master' into docstanya
Nov 29, 2018
9297ece
Changes to Sections 1 and 2
reshel3 Dec 10, 2018
e3da499
fix cdtime and scripts
reshel3 Jan 4, 2019
8cf4121
Merge branch 'docstanya' of github.com:CDAT/cdms into docstanya
reshel3 Jan 4, 2019
743d60e
fix conflicts
reshel3 Jan 4, 2019
a87283c
trigger read-the-docs
reshel3 Jan 4, 2019
df6905e
fix more cdtime doc issues
reshel3 Jan 5, 2019
da1e5eb
fix typo Default-Calendar
reshel3 Jan 5, 2019
86b4c45
fix conflicts
reshel3 Jan 5, 2019
c6b2a6c
pass flake8
reshel3 Jan 5, 2019
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
Prev Previous commit
Next Next commit
update cdms2 tables
  • Loading branch information
Denis committed Jan 29, 2018
commit d4269cf311d9909c307291a60b563db17ab5ad2a
180 changes: 20 additions & 160 deletions docs/source/manual/cdms_2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1398,29 +1398,22 @@ Table 2.36 Variable Slice Operators



Table 2.37 Index and Coordinate Intervals

+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| Interval Definition | Example Interval Definition | Example |
+========================+===========================================================================================================================================================================================================================================================================================================+=======================================================+
| ``x`` | single point, such that axis[i]==x In general x is a scalar. If the axis is a time axis, x may also be a cdtime relative time type, component time type, or string of the form ‘yyyy-mm-dd hh:mi:ss’ (where trailing fields of the string may be omitted. | ``180.0`` |
| | | ``cdtime.reltime(48,"hour s since 1980-1")`` |
| | | ``'1980-1-3'`` |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``(x,y)`` | indices i such that x ≤ axis[i] ≤ y | ``(-180,180)`` |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``(x,y,'co')`` | ``x ≤ axis[i] < y``. The third item is defined as in mapInterval. | ``(-90,90,'cc')`` |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``(x,y,'co',cycle)`` | ``x ≤ axis[i]< y``, with wraparound | ``( 180, 180, 'co', 360.0)`` |
| | **Note:** It is not necesary to specify the cycle of a circular longitude axis, that is, for which ``axis.isCircular()`` is true. | |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``slice(i,j,k)`` | slice object, equivalent to i:j:k in a slice operator. Refers to the indices i, i+k, i+2k, … up to but not including index j. If i is not specified or is None it defaults to 0. If j is not specified or is None it defaults to the length of the axis. The stride k defaults to 1. k may be negative. | ``slice(1,10)`` |
| | | ``slice(,,-1)`` reverses the direction of the axis. |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``':'`` | all axis values of one dimension |   |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
| ``Ellipsis`` | all values of all intermediate axes |   |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------+
.. csv-table:: Index and Coordinate Intervals
:header: "Interval Definition", "Example Interval Definition", "Example"
:widths: 30, 30, 80


"``x``", "single point, such that axis[i]==x In general x is a scalar. If the axis is a time axis, x may also be a cdtime relative time type, component time type, or string of the form ‘yyyy-mm-dd hh:mi:ss’ (where trailing fields of the string may be omitted.", "`180.0`"
,,"`cdtime.reltime(48,'hour s since 1980-1')`"
,,"``'1980-1-3'``"
"`(x,y)`", "indices i such that x ≤ axis[i] ≤ y", "`(-180,180)`"
"`(x,y,'co')`", "`x ≤ axis[i] < y`. The third item is defined as in mapInterval.", "`(-90,90,'cc')`"
"`(x,y,'co',cycle)`", "`x ≤ axis[i]< y`, with wraparound", "`( 180, 180, 'co', 360.0)`"
,,"**Note:** It is not necesary to specify the cycle of a circular longitude axis, that is, for which `axis.isCircular()` is true."
"`slice(i,j,k)`", "slice object, equivalent to i:j:k in a slice operator. Refers to the indices i, i+k, i+2k, … up to but not including index j. If i is not specified or is None it defaults to 0. If j is not specified or is None it defaults to the length of the axis. The stride k defaults to 1. k may be negative.", "`slice(1,10)`"
"`slice(,,-1)`", "reverses the direction of the axis.",
"`:`", "all axis values of one dimension",
"`Ellipsis`", "all values of all intermediate axes"



Expand All @@ -1429,83 +1422,44 @@ Table 2.37 Index and Coordinate Intervals
A selector is a specification of a region of data to be selected from a
variable. For example, the statement

.. raw:: html

<figure class="highlight">

::

x = v(time='1979-1-1', level=(1000.0,100.0))

.. raw:: html

</figure>

means ‘select the values of variable v for time ‘1979-1-1’ and levels
1000.0 to 100.0 inclusive, setting x to the result.’ Selectors are
generally used to represent regions of space and time.

The form for using a selector is

.. raw:: html

<figure class="highlight">

::

result = v(s)

.. raw:: html

</figure>

where v is a variable and s is the selector. An equivalent form is

.. raw:: html

<figure class="highlight">

::

result = f('varid', s)

.. raw:: html

</figure>

where f is a file or dataset, and ‘varid’ is the string ID of a
variable.

A selector consists of a list of selector components. For example, the
selector

.. raw:: html

<figure class="highlight">

::

time='1979-1-1', level=(1000.0,100.0)

.. raw:: html

</figure>

has two components: time=’1979-1-1’, and level=(1000.0,100.0). This
illustrates that selector components can be defined with keywords, using
the form:

.. raw:: html

<figure class="highlight">

::

keyword=value

.. raw:: html

</figure>

Note that for the keywords time, level, latitude, and longitude, the
selector can be used with any variable. If the corresponding axis is not
Expand Down Expand Up @@ -1550,17 +1504,9 @@ Another form of selector components is the positional form, where the
component order corresponds to the axis order of a variable. For
example:

.. raw:: html

<figure class="highlight">

::

x9 = hus(('1979-1-1','1979-2-1'),1000.0)

.. raw:: html

</figure>

reads data for the range (‘1979-1-1’,’1979-2-1’) of the first axis, and
coordinate value 1000.0 of the second axis. Non-keyword arguments of the
Expand All @@ -1573,96 +1519,47 @@ be defined and reused, independent of a particular variable. Selectors
are constructed using the cdms.selectors.Selector class. The constructor
takes an argument list of selector components. For example:

.. raw:: html

<figure class="highlight">

::

from cdms.selectors import Selector
sel = Selector(time=('1979-1-1','1979-2-1'), level=1000.)
x1 = v1(sel)
x2 = v2(sel)

.. raw:: html

</figure>

For convenience CDMS provides several predefined selectors, which can be
used directly or can be combined into more complex selectors. The
selectors time, level, latitude, longitude, and required are equivalent
to their keyword counterparts. For example:

.. raw:: html

<figure class="highlight">

::

from cdms import time, level
x = hus(time('1979-1-1','1979-2-1'), level(1000.))

.. raw:: html

</figure>

and

.. raw:: html

<figure class="highlight">

::

x = hus(time=('1979-1-1','1979-2-1'), level=1000.)

.. raw:: html

</figure>

are equivalent. Additionally, the predefined selectors
``latitudeslice``, ``longitudeslice``, ``levelslice``, and ``timeslice``
take arguments ``(startindex, stopindex[, stride])``:

.. raw:: html

<figure class="highlight">
`latitudeslice`, `longitudeslice`, `levelslice`, and `timeslice`
take arguments `(startindex, stopindex[, stride])`:

::

from cdms import timeslice, levelslice
x = v(timeslice(0,2), levelslice(16,17))

.. raw:: html

</figure>

Finally, a collection of selectors is defined in module cdutil.region:

.. raw:: html

<figure class="highlight">

::

from cdutil.region import *
NH=NorthernHemisphere=domain(latitude=(0.,90.)
SH=SouthernHemisphere=domain(latitude=(-90.,0.))
Tropics=domain(latitude=(-23.4,23.4))
NPZ=AZ=ArcticZone=domain(latitude=(66.6,90.))
SPZ=AAZ=AntarcticZone=domain(latitude=(-90.,-66.6))

.. raw:: html

</figure>

Selectors can be combined using the & operator, or by refining them in
the call:

.. raw:: html

<figure class="highlight">

::

from cdms.selectors import Selector
Expand All @@ -1672,11 +1569,6 @@ the call:
x1 = hus(sel3)
x2 = hus(sel2, level=1000.0)

.. raw:: html

</figure>



2.11.2 Selector examples

Expand All @@ -1688,10 +1580,6 @@ monthly starting at 1979-1-1. There are 17 levels, the last level being
select the first two times and the last level. The last two examples
remove the singleton level dimension from the result array.

.. raw:: html

<figure class="highlight">

::

import cdms
Expand Down Expand Up @@ -1739,10 +1627,6 @@ remove the singleton level dimension from the result array.

f.close()

.. raw:: html

</figure>



Examples
Expand All @@ -1763,11 +1647,7 @@ Data is extracted from both datasets for January of the first input year
through December of the second input year. For each time and level,
three quantities are calculated: slope, variance, and correlation. The
results are written to a netCDF file. For brevity, the functions
``corrCoefSlope`` and ``removeSeasonalCycle`` are omitted.

.. raw:: html

<figure class="highlight">
`corrCoefSlope` and `removeSeasonalCycle` are omitted.

::

Expand Down Expand Up @@ -1826,9 +1706,6 @@ results are written to a netCDF file. For brevity, the functions
# Process Jan80 through Dec81
ccSlopeVarianceBySeasonFiltNet(pathTa,pathTas,'80-1','81-12')

.. raw:: html

</figure>

**Notes:**

Expand Down Expand Up @@ -1858,10 +1735,6 @@ calculated, for all times in a dataset. The name of the dataset and
variable are entered, then the variance is calculated and plotted via
the vcs module.

.. raw:: html

<figure class="highlight">

::

#!/usr/bin/env python
Expand All @@ -1878,7 +1751,7 @@ the vcs module.
def pause():
print Hit return to continue: ,
line = sys.stdin.readline()

::
1. # Calculate pointwise variance of variable over time
# Returns the variance and the number of points
# for which the data is defined, for each grid point
Expand Down Expand Up @@ -1941,18 +1814,9 @@ the vcs module.
pause()
w.clear()

.. raw:: html

</figure>

The result of running this script is as follows:

.. raw:: html

<figure class="highlight">

::

% calcVar.py
Enter dataset path [/pcmdi/cdms/sample/obs/erbs_mo.xml]:

Expand All @@ -1974,10 +1838,6 @@ The result of running this script is as follows:

<The number of points is plotted>

.. raw:: html

</figure>

**Notes:**

#. n = count(x, 0) returns the pointwise number of valid values, summing
Expand Down