-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add top-level docstrings * Add adapters to the API docs * Rewrite Usage * Update installation
- Loading branch information
1 parent
cb148c7
commit 271e728
Showing
5 changed files
with
113 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
""" | ||
This module provides adapters to custom datasets. | ||
Each adapter module provides convenience functions and metadata to convert a | ||
custom dataset to a `clouddrift.RaggedArray` instance. | ||
Currently, clouddrift only provides an adapter module for the hourly Global | ||
Drifter Program (GDP) data, and more adapters will be added in the future. | ||
""" | ||
|
||
import clouddrift.adapters.gdp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,64 @@ | ||
.. _install: | ||
|
||
Installation | ||
============= | ||
============ | ||
|
||
You can install the latest release of CloudDrift using pip or Conda. | ||
You can also install the latest development (unreleased) version from GitHub. | ||
|
||
pip | ||
--- | ||
|
||
For most *users*, the latest official package can be obtained from the `PyPi <pypi.org/project/clouddrift/>`_ repository: | ||
In your virtual environment, type: | ||
|
||
.. code-block:: text | ||
pip install clouddrift | ||
or (soon!) from the conda-forge repository: | ||
Conda | ||
----- | ||
|
||
First add ``conda-forge`` to your channels in your Conda environment: | ||
|
||
.. code-block:: text | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
then install CloudDrift: | ||
|
||
.. code-block:: text | ||
conda install clouddrift | ||
Developers | ||
---------- | ||
|
||
If you need the latest development version, get it from GitHub using pip: | ||
|
||
.. code-block:: text | ||
pip install git+https://github.com/Cloud-Drift/clouddrift | ||
Running tests | ||
============= | ||
|
||
To run the tests, you need to first download the CloudDrift source code from | ||
GitHub and install it in your virtual environment: | ||
|
||
|
||
.. code-block:: text | ||
conda install -c conda-forge clouddrift | ||
git clone https://github.com/cloud-drift/clouddrift | ||
cd clouddrift | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install . | ||
For *developpers* who want to install the latest development version, you can install directly from the clouddrift's GitHub repository: | ||
Then, run the tests like this: | ||
|
||
.. code-block:: text | ||
pip install git+https://github.com/Cloud-Drift/clouddrift.git | ||
python -m unittest tests/*.py | ||
A quick how-to guide is provided on the `Usage <https://cloud-drift.github.io/clouddrift/usage.html>`_ page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters