-
Notifications
You must be signed in to change notification settings - Fork 2
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
Big docs reorganise and expand. #109
base: main
Are you sure you want to change the base?
Conversation
@trexfeathers welcome and thanks for looking !
Great also to have anyone else comment on this, |
OK I have now reviewed all the API docs builds, fixed (hopefully) for correctness and updated, generally smoothed over and introduced some more cross-links into newer docs sections where it seemed obvious. So I reckon this is up to scratch now, pending any suggestions about structural improvements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I've read most of it. It is impressively comprehensive 💐
To-do for @trexfeathers:
- Review the
details
section - Consider the overall structure/approachability
|
||
:class:`~ncdata.NcData` | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
This represents a dataset containing variables, attributes and groups. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This represents a dataset containing variables, attributes and groups. | |
This represents a dataset containing variables, attributes and dimensions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, but a dataset also contains groups, so I guess it should be both. Will fix ...
but **not** ``unit = dataset.variables['x'].attributes['attr1']`` | ||
|
||
And not ``unit = dataset.variables['x'].attributes['attr1']`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these identical?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, will fix!
>>> if "_fillvalue" in var.attributes: | ||
>>> var.attributes.rename("_fillvalue", "_FillValue") | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing indenting
|
||
Load a file containing variable-width string variables | ||
------------------------------------------------------ | ||
You must supply a ``dim_chunks`` keyword to the :meth:`ncdata.netcdf.from_nc4` method, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Sphinx domain hasn't rendered, and would be quite useful for getting more detail.
|
||
Accepts paths, pathstrings, open :class:`netCDF4.Dataset`\\s or :class:`NcData` objects. | ||
Accepts paths, pathstrings, open :class:`netCDF4.Dataset`\s or :class:`NcData` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sphinx domains not rendering
.. NOTE:: | ||
This solution is at present still experimental, and not itself fully thread-safe, | ||
so probably only suitable for top-level global application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear whether this is referring to everything, or just the context manager.
@@ -36,7 +43,7 @@ There are no current plans to address these, but could be considered in future | |||
* notably, includes compound and variable-length types | |||
|
|||
* ..and especially **variable-length strings in variables**. | |||
see : :ref:`string_and_character_data` | |||
see : :ref:`string-and-character-data`, ref:`data-types` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross reference not rendering.
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Co-authored-by: Martin Yeo <[email protected]>
Closes #80
Refactored version of #105
Adds new sections on core data and general operations.
Integrates the how-to sections also
Todos: