obsarray 0.2.3__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. {obsarray-0.2.3 → obsarray-0.2.5}/.gitignore +2 -2
  2. {obsarray-0.2.3/obsarray.egg-info → obsarray-0.2.5}/PKG-INFO +9 -4
  3. {obsarray-0.2.3 → obsarray-0.2.5}/README.md +4 -0
  4. obsarray-0.2.5/docs/conf.py +181 -0
  5. obsarray-0.2.5/docs/index.rst +66 -0
  6. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/__init__.py +1 -1
  7. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/_version.py +3 -3
  8. obsarray-0.2.5/obsarray/flag_accessor.py +442 -0
  9. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/dataset_util.py +120 -6
  10. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/template_util_jon.py +4 -1
  11. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/tests/test_dataset_util.py +100 -0
  12. obsarray-0.2.5/obsarray/test/test_flag_accessor.py +371 -0
  13. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/test/test_unc_accessor.py +12 -0
  14. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/unc_accessor.py +14 -13
  15. {obsarray-0.2.3 → obsarray-0.2.5/obsarray.egg-info}/PKG-INFO +9 -4
  16. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray.egg-info/SOURCES.txt +2 -0
  17. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray.egg-info/requires.txt +3 -1
  18. {obsarray-0.2.3 → obsarray-0.2.5}/setup.py +14 -4
  19. {obsarray-0.2.3 → obsarray-0.2.5}/versioneer.py +2 -2
  20. obsarray-0.2.3/docs/conf.py +0 -364
  21. obsarray-0.2.3/docs/index.rst +0 -36
  22. {obsarray-0.2.3 → obsarray-0.2.5}/.pre-commit-config.yaml +0 -0
  23. {obsarray-0.2.3 → obsarray-0.2.5}/LICENSE +0 -0
  24. {obsarray-0.2.3 → obsarray-0.2.5}/MANIFEST.in +0 -0
  25. {obsarray-0.2.3 → obsarray-0.2.5}/docs/Makefile +0 -0
  26. {obsarray-0.2.3 → obsarray-0.2.5}/docs/make.bat +0 -0
  27. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/err_corr.py +0 -0
  28. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/__init__.py +0 -0
  29. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/dsdoc.py +0 -0
  30. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/dstemplater.py +0 -0
  31. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/dswriter.py +0 -0
  32. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/template_util.py +0 -0
  33. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/tests/__init__.py +0 -0
  34. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/tests/test_dsdoc.py +0 -0
  35. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/tests/test_dswriter.py +0 -0
  36. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/templater/tests/test_template_util.py +0 -0
  37. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/test/__init__.py +0 -0
  38. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/test/test_err_corr_forms.py +0 -0
  39. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray/utils.py +0 -0
  40. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray.egg-info/dependency_links.txt +0 -0
  41. {obsarray-0.2.3 → obsarray-0.2.5}/obsarray.egg-info/top_level.txt +0 -0
  42. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/.gitignore +0 -0
  43. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/QualityDocumentation.tex +0 -0
  44. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/CookiecutterMacros.tex +0 -0
  45. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/acronyms.tex +0 -0
  46. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/history.tex +0 -0
  47. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/metadata.tex +0 -0
  48. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/pythoninputstyle.tex +0 -0
  49. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/sil2.tex +0 -0
  50. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/sil3.tex +0 -0
  51. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/sources.bib +0 -0
  52. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/base/sources.tex +0 -0
  53. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/countpdfpages.sh +0 -0
  54. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/footnotehyper-sphinx.sty +0 -0
  55. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/obsarray_QF-59.docm +0 -0
  56. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/obsarray_requirements.docx +0 -0
  57. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16a.docx +0 -0
  58. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16b.docx +0 -0
  59. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16c.docx +0 -0
  60. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16d.docx +0 -0
  61. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16e.docx +0 -0
  62. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/review_checklists/qf-16f.docx +0 -0
  63. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/softwareRequirements.sty +0 -0
  64. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinx.sty +0 -0
  65. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxcyrillic.sty +0 -0
  66. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxhighlight.sty +0 -0
  67. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxhowto.cls +0 -0
  68. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxmanual.cls +0 -0
  69. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxmessages.sty +0 -0
  70. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/sphinxmulticell.sty +0 -0
  71. {obsarray-0.2.3 → obsarray-0.2.5}/quality_documentation/uml/copy your design png file into this folder.txt +0 -0
  72. {obsarray-0.2.3 → obsarray-0.2.5}/setup.cfg +0 -0
  73. {obsarray-0.2.3 → obsarray-0.2.5}/tox.ini +0 -0
@@ -76,8 +76,8 @@ instance/
76
76
  .scrapy
77
77
 
78
78
  # Sphinx documentation
79
- docs/sphinx/_build/
80
- docs/sphinx/content/api
79
+ docs/_build/
80
+ docs/content/generated/
81
81
 
82
82
  # PyBuilder
83
83
  target/
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: obsarray
3
- Version: 0.2.3
4
- Summary: Measurement uncertainty handling in Python
3
+ Version: 0.2.5
4
+ Summary: Measurement data handling in Python
5
5
  Home-page: https://github.com/comet-toolkit/obsarray
6
6
  Author: CoMet Toolkit Team
7
7
  Author-email: team@comet-toolkit.org
@@ -9,14 +9,19 @@ License: GPLv3
9
9
  Platform: UNKNOWN
10
10
  Classifier: Development Status :: 2 - Pre-Alpha
11
11
  Classifier: Programming Language :: Python
12
- Classifier: Programming Language :: Python :: 3.6
13
- Classifier: Programming Language :: Python :: 3.7
14
12
  Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
15
16
  Provides-Extra: dev
16
17
  License-File: LICENSE
17
18
 
18
19
  # obsarray: Measurement uncertainty handling in Python
19
20
 
21
+ [![Build Status](https://app.travis-ci.com/comet-toolkit/obsarray.svg?branch=main)](https://app.travis-ci.com/comet-toolkit/obsarray)
22
+ [![codecov](https://codecov.io/gh/comet-toolkit/obsarray/branch/main/graph/badge.svg?token=PZTGG03VQY)](https://codecov.io/gh/comet-toolkit/obsarray)
23
+ [![Documentation Status](https://readthedocs.org/projects/obsarray/badge/?version=latest)](https://obsarray.readthedocs.io/en/latest/?badge=latest)
24
+
20
25
  **obsarray** is an extension to [xarray](https://docs.xarray.dev/en/stable/) for defining, storing and interfacing with uncertainty information using standardised metadata. It is particularly designed to work well with [netCDF](https://www.unidata.ucar.edu/software/netcdf/) files and for the Earth Observation community.
21
26
 
22
27
  obsarray is part of the [CoMet Toolkit](https://www.comet-toolkit.org) (community metrology toolkit), and can combined with the [punpy](https://punpy.readthedocs.io/en/latest/) (propagating uncertainties in python) module for very simple propagation of defined data uncertainties through arbitrary python functions.
@@ -1,5 +1,9 @@
1
1
  # obsarray: Measurement uncertainty handling in Python
2
2
 
3
+ [![Build Status](https://app.travis-ci.com/comet-toolkit/obsarray.svg?branch=main)](https://app.travis-ci.com/comet-toolkit/obsarray)
4
+ [![codecov](https://codecov.io/gh/comet-toolkit/obsarray/branch/main/graph/badge.svg?token=PZTGG03VQY)](https://codecov.io/gh/comet-toolkit/obsarray)
5
+ [![Documentation Status](https://readthedocs.org/projects/obsarray/badge/?version=latest)](https://obsarray.readthedocs.io/en/latest/?badge=latest)
6
+
3
7
  **obsarray** is an extension to [xarray](https://docs.xarray.dev/en/stable/) for defining, storing and interfacing with uncertainty information using standardised metadata. It is particularly designed to work well with [netCDF](https://www.unidata.ucar.edu/software/netcdf/) files and for the Earth Observation community.
4
8
 
5
9
  obsarray is part of the [CoMet Toolkit](https://www.comet-toolkit.org) (community metrology toolkit), and can combined with the [punpy](https://punpy.readthedocs.io/en/latest/) (propagating uncertainties in python) module for very simple propagation of defined data uncertainties through arbitrary python functions.
@@ -0,0 +1,181 @@
1
+ #!/usr/bin/env python
2
+ #
3
+ # obsarray documentation build configuration file, created by
4
+ # cookiecutter
5
+ #
6
+ # This file is execfile()d with the current directory set to its
7
+ # containing dir.
8
+ #
9
+ # Note that not all possible configuration values are present in this
10
+ # autogenerated file.
11
+ #
12
+ # All configuration values have a default; values that are commented out
13
+ # serve to show the default.
14
+
15
+
16
+ # If extensions (or modules to document with autodoc) are in another
17
+ # directory, add these directories to sys.path here. If the directory is
18
+ # relative to the documentation root, use os.path.abspath to make it
19
+ # absolute, like shown here.
20
+
21
+ import sphinx_autosummary_accessors
22
+ import obsarray
23
+
24
+ project_title = "obsarray".replace("_", " ").title()
25
+
26
+
27
+ # -- General configuration ---------------------------------------------
28
+
29
+ # If your documentation needs a minimal Sphinx version, state it here.
30
+ #
31
+ # needs_sphinx = '1.0'
32
+
33
+ # Attempt to make links automatially
34
+ default_role = "code"
35
+
36
+ # Add any Sphinx extension module names here, as strings. They can be
37
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
38
+ # CFAB added napolean to support google-style docstrings
39
+ extensions = [
40
+ "sphinx.ext.autodoc",
41
+ "sphinx.ext.autosummary",
42
+ "sphinx.ext.intersphinx",
43
+ "sphinx.ext.viewcode",
44
+ "sphinx.ext.napoleon",
45
+ "IPython.sphinxext.ipython_directive",
46
+ "IPython.sphinxext.ipython_console_highlighting",
47
+ "sphinx_design",
48
+ "sphinx_autosummary_accessors",
49
+ ]
50
+
51
+ # Add any paths that contain templates here, relative to this directory.
52
+ templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]
53
+
54
+ # The suffix(es) of source filenames.
55
+ # You can specify multiple suffix as a list of string:
56
+ #
57
+ # source_suffix = ['.rst', '.md']
58
+ source_suffix = ".rst"
59
+
60
+ # The master toctree document.
61
+ master_doc = "index"
62
+
63
+ # General information about the project.
64
+ project = project_title
65
+ copyright = "CoMet Toolkit Team"
66
+ author = "CoMet Toolkit Team"
67
+
68
+ # The version info for the project you're documenting, acts as replacement
69
+ # for |version| and |release|, also used in various other places throughout
70
+ # the built documents.
71
+ #
72
+ # The short X.Y version.
73
+ version = obsarray.__version__
74
+ # The full version, including alpha/beta/rc tags.
75
+ release = obsarray.__version__
76
+
77
+ # The language for content autogenerated by Sphinx. Refer to documentation
78
+ # for a list of supported languages.
79
+ #
80
+ # This is also used if you do content translation via gettext catalogs.
81
+ # Usually you set "language" from the command line for these cases.
82
+ language = None
83
+
84
+ # List of patterns, relative to source directory, that match files and
85
+ # directories to ignore when looking for source files.
86
+ # This patterns also effect to html_static_path and html_extra_path
87
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
88
+
89
+ # The name of the Pygments (syntax highlighting) style to use.
90
+ pygments_style = "sphinx"
91
+
92
+ rst_prolog = """
93
+ .. role:: python(code)
94
+ :language: python
95
+ :class: highlight
96
+ """
97
+
98
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
99
+ todo_include_todos = False
100
+
101
+
102
+ # -- Options for HTML output -------------------------------------------
103
+
104
+ # The theme to use for HTML and HTML Help pages. See the documentation for
105
+ # a list of builtin themes.
106
+ #
107
+ html_theme = "sphinx_book_theme"
108
+
109
+ # Theme options are theme-specific and customize the look and feel of a
110
+ # theme further. For a list of options available for each theme, see the
111
+ # documentation.
112
+ #
113
+ # html_theme_options = {}
114
+
115
+ html_logo = "figs/comet_logo.png"
116
+
117
+ # Add any paths that contain custom static files (such as style sheets) here,
118
+ # relative to this directory. They are copied after the builtin static files,
119
+ # so a file named "default.css" will overwrite the builtin "default.css".
120
+ html_static_path = ["_static"]
121
+
122
+ # -- Options for HTMLHelp output ---------------------------------------
123
+
124
+ # Output file base name for HTML help builder.
125
+ htmlhelp_basename = "obsarraydoc"
126
+
127
+
128
+ # -- Options for LaTeX output ------------------------------------------
129
+
130
+ latex_elements = {
131
+ # The paper size ('letterpaper' or 'a4paper').
132
+ #
133
+ # 'papersize': 'letterpaper',
134
+ # The font size ('10pt', '11pt' or '12pt').
135
+ #
136
+ # 'pointsize': '10pt',
137
+ # Additional stuff for the LaTeX preamble.
138
+ #
139
+ # 'preamble': '',
140
+ # Latex figure (float) alignment
141
+ #
142
+ # 'figure_align': 'htbp',
143
+ }
144
+
145
+ # Grouping the document tree into LaTeX files. List of tuples
146
+ # (source start file, target name, title, author, documentclass
147
+ # [howto, manual, or own class]).
148
+ latex_documents = [
149
+ (
150
+ master_doc,
151
+ "user_manual.tex",
152
+ "{} Documentation".format(project_title),
153
+ "CoMet Toolkit Team",
154
+ "manual",
155
+ ),
156
+ ]
157
+
158
+
159
+ # -- Options for manual page output ------------------------------------
160
+
161
+ # One entry per manual page. List of tuples
162
+ # (source start file, name, description, authors, manual section).
163
+ man_pages = [(master_doc, "obsarray", "obsarray Documentation", [author], 1)]
164
+
165
+
166
+ # -- Options for Texinfo output ----------------------------------------
167
+
168
+ # Grouping the document tree into Texinfo files. List of tuples
169
+ # (source start file, target name, title, author,
170
+ # dir menu entry, description, category)
171
+ texinfo_documents = [
172
+ (
173
+ master_doc,
174
+ "obsarray",
175
+ "obsarray Documentation",
176
+ author,
177
+ "obsarray",
178
+ "Extension to xarray for handling uncertainty quantified observation data",
179
+ "Miscellaneous",
180
+ ),
181
+ ]
@@ -0,0 +1,66 @@
1
+ obsarray: Measurement data handling in Python
2
+ =============================================
3
+
4
+ **obsarray** is an extension to `xarray <https://docs.xarray.dev/en/stable/>`_ to support defining, storing and interfacing with measurement data - in particular, measurement uncertainty information using standardised metadata. It is designed to work well with `netCDF <https://www.unidata.ucar.edu/software/netcdf/>`_ files and for the Earth Observation community.
5
+
6
+ **obsarray** is part of the `CoMet Toolkit <https://www.comet-toolkit.org>`_ (community metrology toolkit), and can combined with the `punpy <https://punpy.readthedocs.io/en/latest/>`_ (propagating uncertainties in python) module for very simple propagation of defined data uncertainties through arbitrary python functions.
7
+
8
+ .. grid:: 2
9
+ :gutter: 2
10
+
11
+ .. grid-item-card:: Quickstart Guide
12
+ :link: content/user/quickstart
13
+ :link-type: doc
14
+
15
+ New to *obsarray*? Check out the quickstart guide for an introduction.
16
+
17
+ .. grid-item-card:: User Guide
18
+ :link: content/user/user_guide
19
+ :link-type: doc
20
+
21
+ The user guide provides a documentation and examples how to use **obsarray** to handle measurement data.
22
+
23
+ .. grid-item-card:: API Reference
24
+ :link: content/user/api
25
+ :link-type: doc
26
+
27
+ The API Reference contains a description the **obsarray** API.
28
+
29
+ .. grid-item-card:: Developer Guide
30
+ :link: content/developer/developer_guide
31
+ :link-type: doc
32
+
33
+ Guide for contributing to **obsarray** (under development).
34
+
35
+
36
+ Acknowledgements
37
+ ----------------
38
+
39
+ obsarray has been developed by `Sam Hunt <https://github.com/shunt16>`_.
40
+
41
+ The development has been funded by:
42
+
43
+ * The UK's Department for Business, Energy and Industrial Strategy's (BEIS) National Measurement System (NMS) programme
44
+ * The IDEAS-QA4EO project funded by the European Space Agency.
45
+
46
+
47
+ Project status
48
+ --------------
49
+
50
+ obsarray is under active development. It is beta software.
51
+
52
+ .. toctree::
53
+ :maxdepth: 2
54
+ :hidden:
55
+ :caption: For users
56
+
57
+ Quickstart <content/user/quickstart>
58
+ User Guide <content/user/user_guide>
59
+ API Reference <content/user/api>
60
+
61
+ .. toctree::
62
+ :maxdepth: 2
63
+ :hidden:
64
+ :caption: For developers/contributors
65
+
66
+ Developer Guide <content/developer/developer_guide>
@@ -4,7 +4,7 @@ __author__ = "Sam Hunt <sam.hunt@npl.co.uk>"
4
4
  __all__ = []
5
5
 
6
6
  from ._version import get_versions
7
- from obsarray import unc_accessor
7
+ from obsarray import unc_accessor, flag_accessor
8
8
  from obsarray.err_corr import err_corr_forms
9
9
  from obsarray.templater.template_util import create_ds
10
10
  from obsarray.templater.dstemplater import DSTemplater
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2022-11-29T10:52:47+0000",
11
+ "date": "2024-02-14T16:24:15+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "0e0f8deef5ce684330dce3414fda5a19c9916eb7",
15
- "version": "v0.2.3"
14
+ "full-revisionid": "a4c0efeceef26dd8201830bc88caab5689f25595",
15
+ "version": "v0.2.5"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18