Skip to content

Commit 5906ff9

Browse files
authored
Merge pull request #72 from ESA-VirES/staging
Merge to master branch to prepare next release
2 parents 101c3a5 + 557bdf1 commit 5906ff9

24 files changed

+1559
-108
lines changed

.github/workflows/CI.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ staging ]
6+
pull_request:
7+
branches: [ staging ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
run-tests:
12+
runs-on: ${{ matrix.operating-system }}
13+
strategy:
14+
matrix:
15+
operating-system:
16+
- ubuntu-latest
17+
- windows-latest
18+
- macOS-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Setup Nox
23+
uses: excitedleigh/[email protected]
24+
- name: Run Nox
25+
run: nox

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ MANIFEST
3232

3333
# Sphinx documentation
3434
docs/_build/
35+
36+
# nox
37+
.nox

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,31 @@
1010
:target: https://requires.io/github/ESA-VirES/VirES-Python-Client/requirements/?branch=master
1111
:alt: Requirements Status
1212

13-
.. image:: https://travis-ci.org/ESA-VirES/VirES-Python-Client.svg?branch=master
14-
:target: https://travis-ci.org/ESA-VirES/VirES-Python-Client
15-
16-
.. image:: https://coveralls.io/repos/github/ESA-VirES/VirES-Python-Client/badge.svg
17-
:target: https://coveralls.io/github/ESA-VirES/VirES-Python-Client
18-
1913
.. image:: https://zenodo.org/badge/138034133.svg
2014
:target: https://zenodo.org/badge/latestdoi/138034133
2115

2216
::
2317

2418
pip install viresclient
2519

26-
viresclient_ is a Python package which connects to a VirES_ server through the WPS_ interface and handles product requests and downloads. This enables easy access to ESA's `Swarm mission`_ data and models. This service is provided for ESA by EOX_. For enquiries about the service and problems with accessing your account, please email [email protected]. For help with usage, please email [email protected] or `raise an issue on GitHub`_.
20+
viresclient_ is a Python package which connects to a VirES server, of which there are two: *VirES for Swarm* (https://vires.services) and *VirES for Aeolus* (https://aeolus.services), through the WPS_ interface. This package handles product requests and downloads, enabling easy access to data and models from ESA's Earth Explorer missions, Swarm_ and Aeolus_. This service is provided for ESA by EOX_. For enquiries about the service and problems with accessing your account, please email [email protected]. For help with usage, please email [email protected] (for Swarm data) or `raise an issue on GitHub`_.
2721

2822
.. _viresclient: https://github.com/ESA-VirES/VirES-Python-Client
29-
.. _VirES: https://vires.services
3023
.. _WPS: http://www.opengeospatial.org/standards/wps
31-
.. _`Swarm mission`: https://earth.esa.int/eogateway/missions/swarm
24+
.. _Swarm: https://earth.esa.int/eogateway/missions/swarm
25+
.. _Aeolus: https://earth.esa.int/eogateway/missions/aeolus
3226
.. _EOX: https://eox.at/category/vires/
3327
.. _`raise an issue on GitHub`: https://github.com/ESA-VirES/VirES-Python-Client/issues
3428

35-
Data and models are processed on demand on the server - a combination of measurements from any time interval can be accessed. These are the same data that can be accessed by the `VirES GUI`_. *viresclient* handles the returned data to allow direct loading as a single pandas.DataFrame_, or xarray.Dataset_.
29+
For code recipes and more, see `Swarm Notebooks`_ & `Aeolus Notebooks`_. To start experimenting right away, *viresclient* is installed on the "Virtual Research Environment" (VRE), which is a managed Jupyter-based system provided for ESA by EOX. The service is free and open to all, accessible through your VirES account - check the notebooks to read more and get started.
30+
31+
.. _`Swarm Notebooks`: https://swarm.magneticearth.org
32+
.. _`Aeolus Notebooks`: https://notebooks.aeolus.services
33+
34+
Data and models are processed on demand on the VirES server - a combination of measurements from any time interval can be accessed. These are the same data that can be accessed by the VirES GUI. *viresclient* handles the returned data to allow direct loading as a single pandas.DataFrame_, or xarray.Dataset_.
3635

3736
.. _pandas.DataFrame: https://pandas.pydata.org/pandas-docs/stable/dsintro.html#dataframe
3837
.. _xarray.Dataset: http://xarray.pydata.org/en/stable/data-structures.html#dataset
39-
.. _`VirES GUI`: https://vires.services
4038

4139
.. code-block:: python
4240
@@ -91,10 +89,7 @@ Data and models are processed on demand on the server - a combination of measure
9189
RangeFilters: []
9290

9391

94-
*viresclient* is installed on the `"Virtual Research Environment" (VRE)`_, which is a managed Jupyter-based system provided for ESA by EOX. The service is free and open to all. See `"Swarm Notebooks"`_ for how-to guides with Swarm data and guidance in using the VRE.
9592

96-
.. _`"Virtual Research Environment" (VRE)`: https://vre.vires.services
97-
.. _`"Swarm Notebooks"`: https://swarm.magneticearth.org
9893

9994
.. image:: https://github.com/ESA-VirES/Swarm-VRE/raw/master/docs/images/VRE_shortest_demo.gif
10095

@@ -105,3 +100,7 @@ How to acknowledge VirES
105100
You can reference *viresclient* directly using the DOI of our zenodo_ record. VirES uses data from a number of different sources so please also acknowledge these appropriately.
106101

107102
.. _zenodo: https://doi.org/10.5281/zenodo.2554162
103+
104+
| "We use the Python package, viresclient [1], to access [...] from ESA's VirES for Swarm service [2]"
105+
| [1] https://doi.org/10.5281/zenodo.2554162
106+
| [2] https://vires.services

docs/access_token.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An access token is required to access the VirES server.
55
The tokens are managed via the web user interface.
66

77
Assuming you have an existing VirES account and you can access
8-
the VirES web client (`htts://vires.services <https://vires.services>`_),
8+
the VirES web client (https://vires.services or https://aeolus.services),
99
you get to token manager via `Manage access tokens` item in your account menu
1010
(displaying your username)
1111

docs/api.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ SwarmRequest
88
:inherited-members:
99
:exclude-members: AUXILIARY_VARIABLES, COLLECTIONS, COLLECTION_SAMPLING_STEPS, MAGNETIC_MODELS, MAGNETIC_MODEL_VARIABLES, OBS_COLLECTIONS, PRODUCT_VARIABLES
1010

11+
AeolusRequest
12+
=============
13+
14+
.. autoclass:: viresclient.AeolusRequest
15+
:members:
16+
:undoc-members:
17+
:show-inheritance:
18+
:inherited-members:
19+
1120
ReturnedData
1221
============
1322

docs/available_parameters.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Available parameters for Swarm data
2-
===================================
1+
Available parameters for Swarm
2+
==============================
33

44
.. note::
55

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Available parameters for Aeolus
2+
===============================
3+
4+
.. note::
5+
Details to follow. See https://notebooks.aeolus.services for examples.

docs/config_details.rst

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
Configuration Details
22
=====================
33

4-
.. note::
5-
Be careful not to accidentally add your credentials to online repositories or containers. You can use the CLI command ``viresclient clear_credentials`` to remove them.
4+
.. attention::
5+
Be careful not to accidentally add your credentials to online repositories or containers. You can use the CLI command ``viresclient clear_credentials`` to remove them from your environment. By default, this is just a file located at ``~/.viresclient.ini``, where ``~`` is your home directory which is dependent on the operating system.
6+
7+
.. tip::
8+
9+
To get started quickly in Jupyter notebooks:
10+
11+
.. code-block:: python
12+
13+
from viresclient import SwarmRequest
14+
r = SwarmRequest("https://vires.services/ows")
15+
16+
OR:
17+
18+
.. code-block:: python
19+
20+
from viresclient import AeolusRequest
21+
r = AeolusRequest("https://aeolus.services/ows")
22+
23+
... then follow automatic instructions to configure token if not already set
24+
25+
NB: URL's on this page assume using *VirES for Swarm*. If using *Aeolus* instead, replace ``https://vires.services/ows`` with ``https://aeolus.services/ows``.
626

727
While it is possible to enter the server URL and access credentials (see :doc:`access_token`) each time a new request object is created,
828

docs/docs_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ cdflib
66
tables
77
tqdm
88
xarray
9+
netcdf4

0 commit comments

Comments
 (0)