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
Show file tree
Hide file tree
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
Some Changes to Chapters 1, 2, 3, 6 and Appendix
  • Loading branch information
reshel3 committed Mar 14, 2018
commit 1d7d2596199f429fe2717406442d012c165872b4
9 changes: 6 additions & 3 deletions docs/source/manual/cdms_1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ with a corresponding mask value of one are set to the value of the
variables ``missing_value`` attribute. The data and ``missing_value``
attribute are then written to the file.

Masking is covered in `Section 2.9 <cdms_2.html#2.9>`__. See also the
Masking is covered in `Section 2.9 <cdms_2.html#id3>`__. See also the
documentation of the Python Numpy and MA modules, on which ``cdms.MV``
is based, at

Expand Down Expand Up @@ -541,7 +541,9 @@ grid. Note that:
.. figure:: images/curvilinear_grid.jpg
:alt: curvilinear grid

Figure1: Curvilinear Grid
Figure 1: Curvilinear Grid



Example: a generic grid
'''''''''''''''''''''''
Expand Down Expand Up @@ -848,4 +850,5 @@ Protocol (LDAP).
.. >>> f.variables.keys() # List the variables in the dataset.
.. ['ua', 'evs', 'cvvta', 'tauv', 'wap', 'cvwhusa', 'rss', 'rls', ... 'prc', 'ts', 'va']

Databases are discussed further in `Section 2.7 <cdms_2.html#2.7>`__.

Databases are discussed further in `Section 2.7 <cdms_2.html#database>`__.
35 changes: 18 additions & 17 deletions docs/source/manual/cdms_2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ Table CdmsFile Methods
,," **Note:** Unlike copyAxis, the actual data is not copied to the new variable."
"``CurveGrid`` or ``Generic-Grid``", "``readScripGrid(self,whichGrid='destination',check-Grid=1)``", "Read a curvilinear or generic grid from a SCRIP netCDF file. The file can be a SCRIP grid file or remapping file. If a mapping file, ``whichGrid`` chooses the grid to read, either ``'source'`` or ``'destination'``. If ``checkGrid`` is ``1`` (default), the grid cells are checked for convexity, and 'repaired' if necessary. Grid cells may appear to be nonconvex if they cross a ``0 / 2pi`` boundary. The repair consists of shifting the cell vertices to the same side modulo 360 degrees."
"``None``", "``sync()``", "Writes any pending changes to the file."
"``Variable``", "``write(var, attributes=None, axes=None, extbounds=None, id=None, extend=None, fill_value=None, index=None, typecode=None)``","Write a variable or array to the file. The return value is the associated file variable."
"``Variable``", "``write(var,attributes=None,axes=None, extbounds=None,id=None,extend=None, fill_value=None, index=None, typecode=None)``","Write a variable or array to the file. The return value is the associated file variable."
,,"If the variable does not exist in the file, it is first defined and all attributes written, then the data is written. By default, the time dimension of the variable is defined as the unlimited dimension of the file. If the data is already defined, then data is extended or overwritten depending on the value of keywords ``extend`` and ``index``, and the unlimited dimension values associated with ``var``."
,,"* ``var`` is a Variable, masked array, or Numpy array."
,,"* ``attributes`` is the attribute dictionary for the variable. The default is ``var.attributes``."
Expand Down Expand Up @@ -804,7 +804,7 @@ Table SearchResult Methods

"ResultEntry", "``[i]``", "Return the i-th search result. Results can also be returned in a for loop: ``for entry in db.searchResult(tag='dataset'):``"
"Integer", "``len()``", "Number of entries in the result."
"SearchResult", " ``searchPredicate(predicate, tag=None)``", "Refine a search result, with a predicate search. ``predicate`` is a function which takes a single CDMS object and returns true (1) if the object satisfies the predicate, 0 if not. ``tag`` restricts the search to objects of the class denoted by the tag."
"SearchResult", "``searchPredicate(predicate, tag=None)``", "Refine a search result, with a predicate search. ``predicate`` is a function which takes a single CDMS object and returns true (1) if the object satisfies the predicate, 0 if not. ``tag`` restricts the search to objects of the class denoted by the tag."
,,"**Note**: In the current implementation, ``searchPredicate`` is much less efficient than ``searchFilter``. For best performance, use ``searchFilter`` to narrow the scope of the search, then use ``searchPredicate`` for more general searches."

A search result is a sequence of result entries. Each entry has a string
Expand Down Expand Up @@ -1005,7 +1005,7 @@ Table Dataset Methods
,, "**Example:**"
,, "``t = f['time']`` gets the axis named 'time', equivalent to ``t = f.axes['time']``"
"``None``", "``close()``", "Close the dataset."
"``RectGrid``", "``createRectGrid(id, lat, lon, order, type='generic', mask=None)``", "Create a RectGrid in the dataset. This is not a persistent object: the order, type, and mask are not written to the dataset. However, the grid may be used for regridding operations."
"``RectGrid``", "``createRectGrid(id, lat, lon,order, type='generic', mask=None)``", "Create a RectGrid in the dataset. This is not a persistent object: the order, type, and mask are not written to the dataset. However, the grid may be used for regridding operations."
,,"``lat`` is a latitude axis in the dataset."
,,"``lon`` is a longitude axis in the dataset."
,,"``order`` is a string with value 'yx' (the first grid dimension is latitude) or 'xy' (the first grid dimension is longitude)."
Expand All @@ -1018,7 +1018,7 @@ Table Dataset Methods
"List", "``getPaths()``", "Get a sorted list of pathnames of datafiles which comprise the dataset. This does not include the XML metafile path, which is stored in the .uri attribute."
"Variable", "``getVariable(id)``", "Get a variable object from a file or dataset."
,,"``id`` is the string variable identifier."
"CurveGrid or GenericGrid", "``readScripGrid(self, whichGrid='destination', check-or Generic-Grid=1)``", "Read a curvilinear orgeneric grid from a SCRIP dataset. The dataset can be a SCRIP grid file or remappingfile."
"CurveGrid or GenericGrid", "``readScripGrid(self, whichGrid='destination', check-orGeneric-Grid=1)``", "Read a curvilinear orgeneric grid from a SCRIP dataset. The dataset can be a SCRIP grid file or remappingfile."
,, "If a mapping file, ``whichGrid`` chooses the grid to read, either ``'source'`` or ``'destination'``."
,, " If ``checkGrid`` is 1 (default), the grid cells are checked for convexity, and 'repaired' if necessary. Grid cells may appear to be nonconvex if they cross a ``0 / 2pi`` boundary. The repair consists of shifting the cell vertices to the same side modulo 360 degrees."
"None", "``sync()``", "Write any pending changes to the dataset."
Expand Down Expand Up @@ -1081,22 +1081,23 @@ corresponding MV2 function: ``allclose``, ``allequal``,
``set_print_limit``, ``shape``, ``size``. See the documentation at
http://numpy.sourceforge.net for a description of these functions.



Table Variable Constructors in Module MV
----------------------------------------
Table Variable Constructors in Module MV
---------------------------

.. csv-table::
:header: "Constructor", "Description"
:widths: 30, 80
:widths: 30, 80

"``arrayrange(start, stop=None, step=1, typecode=None, axis=None, attributes=None, id=None)``", "Just like ``MV2.arange()`` except it returns a variable whose type can be specfied by the keyword argument typecode. The axis, attribute dictionary, and string identifier of the result variable may be specified. **Synonym:** ``arange``"
"``masked_array(a, mask=None, fill_value=None, axes=None, attributes=None, id=None)``", "Same as MV2.masked_array but creates a variable instead. If no axes are specified, the result has default axes, otherwise axes is a list of axis objects matching a.shape."
"``masked_object(data, value, copy=1, savespace=0, axes=None, attributes=None, id=None)``", "Create variable masked where exactly data equal to value. Create the variable with the given list of axis objects, attribute dictionary, and string id."
"``masked_values(data, value, rtol=1e-05, atol=1e-08, copy=1, savespace=0, axes=None, attributes=None, id=None)``", "Constructs a variable with the given list of axes and attribute dictionary, whose mask is set at those places where ``abs(data - value) > atol + rtol * abs(data)``. This is a careful way of saying that those elements of the data that have value = value (to within a tolerance) are to be treated as invalid. If data is not of a floating point type, calls masked_object instead."
"``ones(shape, typecode='l', savespace=0, axes=none, attributes=none, id=none)``", "return an array of all ones of the given length or shape."
"``reshape(a, newshape, axes=none, attributes=none, id=none)``", "copy of a with a new shape."
"``resize(a, newshape, axes=none, attributes=none, id=none)``", "return a new array with the specified shape. the original arrays total size can be any size."
"``zeros(shape, typecode='l', savespace=0, axes=none, attributes=none, id=none)``", "an array of all zeros of the given length or shape"
"``arrayrange(start, stop=None, step=1,typecode=None, axis=None, attributes=None, id=None)``", "Just like ``MV2.arange()`` except it returns a variable whose type can be specfied by the keyword argument typecode. The axis, attribute dictionary, and string identifier of the result variable may be specified. **Synonym:** ``arange``"
"``masked_array(a,mask=None, fill_value=None, axes=None, attributes=None, id=None)``", "Same as MV2.masked_array but creates a variable instead. If no axes are specified, the result has default axes, otherwise axes is a list of axis objects matching a.shape."
"``masked_object(data,value, copy=1,savespace=0,axes=None, attributes=None, id=None)``", "Create variable masked where exactly data equal to value. Create the variable with the given list of axis objects, attribute dictionary, and string id."
"``masked_values(data,value, rtol=1e-05, atol=1e-08, copy=1, savespace=0, axes=None, attributes=None, id=None)``", "Constructs a variable with the given list of axes and attribute dictionary, whose mask is set at those places where ``abs(data - value) > atol + rtol * abs(data)``. This is a careful way of saying that those elements of the data that have value = value (to within a tolerance) are to be treated as invalid. If data is not of a floating point type, calls masked_object instead."
"``ones(shape, typecode='l',savespace=0,axes=none, attributes=none, id=none)``", "return an array of all ones of the given length or shape."
"``reshape(a,newshape, axes=none, attributes=none, id=none)``", "copy of a with a new shape."
"``resize(a,newshape, axes=none, attributes=none, id=none)``", "return a new array with the specified shape. the original arrays total size can be any size."
"``zeros(shape,typecode='l',savespace=0, axes=none, attributes=none, id=none)``", "an array of all zeros of the given length or shape"



Expand All @@ -1107,7 +1108,7 @@ exception of argsort, all functions return a transient variable.
Table MV Functions
------------------

.. csv-table::
.. csv-table::
:header: "Function", "Description"
:widths: 30, 80

Expand Down Expand Up @@ -1324,7 +1325,7 @@ Table Variable Constructors
"``Dataset.createVariable(String id, String datatype, List axes)``", "Create a Variable in a Dataset. This function is not yet implemented."
"``CdmsFile.createVariable(String id, String datatype, List axes or Grids)``", "Create a Variable in a CdmsFile."
,"``id`` is the name of the variable. ``datatype`` is the MV2 or Numpy | typecode, for example, MV2.Float. ``axesOrGrids`` is a list of Axis and/or Grid objects, on which the variable is defined. Specifying a rectilinear grid is equivalent to listing the grid latitude and longitude axes, in the order defined for the grid. \*\*Note:\*\* this argument can either be a list or a tuple. If the tuple form is used, and there is only one element, it must have a following comma, e.g.: ``(axisobj,)``."
"``cdms.createVariable(array, typecode=None, copy=0, savespace=0,mask=None, fill_value=None, grid=None, axes=None,attributes=None, id=None)``", " Create a transient variable, not associated with a file or dataset. ``array`` is the data values: a Variable, masked array, or Numpy array. ``typecode`` is the MV2 typecode of the array. Defaults to the typecode of array. ``copy`` is an integer flag: if 1, the variable is created with a copy of the array, if 0 the variable data is shared with array. ``savespace`` is an integer flag: if set to 1, internal Numpy operations will attempt to avoid silent upcasting. ``mask`` is an array of integers with value 0 or 1, having the same shape as array. array elements with a corresponding mask value of 1 are considered invalid, and are not used for subsequent Numpy operations. The default mask is obtained from array if present, otherwise is None. ``fill_value`` is the missing value flag. The default is obtained from array if possible, otherwise is set to 1.0e20 for floating point variables, 0 for integer-valued variables. ``grid`` is a rectilinear grid object. ``axes`` is a tuple of axis objects. By default the axes are obtained from array if present. Otherwise for a dimension of length n, the default axis has values [0., 1., ..., double(n)]. ``attributes`` is a dictionary of attribute values. The dictionary keys must be strings. By default the dictionary is obtained from array if present, otherwise is empty. ``id`` is the string identifier of the variable. By default the id is obtained from array if possible, otherwise is set to 'variable\_n' for some integer."
"``cdms.createVariable(array, typecode=None, copy=0, savespace=0,mask=None, fill_value=None, grid=None, axes=None,attributes=None, id=None)``", "Create a transient variable, not associated with a file or dataset. ``array`` is the data values: a Variable, masked array, or Numpy array. ``typecode`` is the MV2 typecode of the array. Defaults to the typecode of array. ``copy`` is an integer flag: if 1, the variable is created with a copy of the array, if 0 the variable data is shared with array. ``savespace`` is an integer flag: if set to 1, internal Numpy operations will attempt to avoid silent upcasting. ``mask`` is an array of integers with value 0 or 1, having the same shape as array. array elements with a corresponding mask value of 1 are considered invalid, and are not used for subsequent Numpy operations. The default mask is obtained from array if present, otherwise is None. ``fill_value`` is the missing value flag. The default is obtained from array if possible, otherwise is set to 1.0e20 for floating point variables, 0 for integer-valued variables. ``grid`` is a rectilinear grid object. ``axes`` is a tuple of axis objects. By default the axes are obtained from array if present. Otherwise for a dimension of length n, the default axis has values [0., 1., ..., double(n)]. ``attributes`` is a dictionary of attribute values. The dictionary keys must be strings. By default the dictionary is obtained from array if present, otherwise is empty. ``id`` is the string identifier of the variable. By default the id is obtained from array if possible, otherwise is set to 'variable\_n' for some integer."



Expand Down
4 changes: 2 additions & 2 deletions docs/source/manual/cdms_3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ Table Time Methods
:header: "Type", "Method", "Definition"
:widths: 20, 75, 80

"Comptime or Reltime", "``t.add(value, intervalUnits, calendar=cdtime.Default-Calendar)``", "Add an interval of time to a time type t. Returns the same type of time."
"Comptime or Reltime", "``t.add(value,intervalUnits, calendar=cdtime.Default-Calendar)``", "Add an interval of time to a time type t. Returns the same type of time."
,, "``value`` is the Float number of interval units."
,, "``intervalUnits`` is ``cdtime.[Second (s) | Minute(s) Hour(s) | Day(s) | Week(s) | Month(s) | Season(s) | Year(s) ]``"
,, "``calendar`` is the calendar type."
"Integer", "``t.cmp(t2, calendar=cdtime.DefaultCalendar)``", "Compare time values t and t2. Returns -1, 0, 1 as t is less than, equal to, or greater than t2 respectively."
,, "``t2`` is the time to compare."
,, "``calendar`` is the calendar type."
"Comptime or Reltime", "``t.sub(value, intervalUnits, calendar=cdtime.DefaultCalendar)``", "Subtract an interval of time from a time type t. Returns the same type of time."
"Comptime or Reltime", "``t.sub(value,intervalUnits, calendar=cdtime.DefaultCalendar)``", "Subtract an interval of time from a time type t. Returns the same type of time."
,, "``value`` is the Float number of interval units."
,, "``intervalUnits`` is cdtime.[Second (s) | Minute(s) | Hour(s) | Day(s) | Week(s) | Month(s) | Season(s) | Year(s)]"
,, "``calendar`` is the calendar type. "
Expand Down
7 changes: 5 additions & 2 deletions docs/source/manual/cdms_6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ rectilinear in topology,
``extra-attribute-element*`` **</rectGrid>**

Table 6.5 RectGrid Attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


.. raw:: html
Expand All @@ -332,11 +333,13 @@ Table 6.5 RectGrid Attributes
::

<tr><td><code>id</code></td><td>Y</td><td>N</td><td>Grid identifier</td></tr>
<tr><td><code>type</code></td><td>Y</td><td>N</td><td><p>Grid classification</p><p>"gaussian" | "uniform" | "equalarea" |"generic"</p><p>Default: "generic"</p></td></tr>
<tr><td><code>type</code></td><td>Y</td><td>N</td><td><p>Grid classification</p><p>"gaussian" | "uniform"
| "equalarea" |"generic"</p><p>Default: "generic"</p></td></tr>
<tr><td><code>latitude</code></td><td>Y</td><td>N</td><td>Latitude axis name</td></tr>
<tr><td><code>longitude</code></td><td>Y</td><td>N</td><td>Longitude axis name</td></tr>
<tr><td><code>mask</code></td><td>N</td><td>N</td><td>Name of associated mask variable</td></tr>
<tr><td><code>order</code></td><td>Y</td><td>N</td><td><p>Grid ordering "yx" | "xy"</p><p>Default: “yx”, axis order is latitude, longitude</p></td></tr>
<tr><td><code>order</code></td><td>Y</td><td>N</td><td><p>Grid ordering "yx"
| "xy"</p><p>Default: “yx”, axis order is latitude, longitude</p></td></tr>

.. raw:: html

Expand Down
Loading