You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
``viresclient`` is a tool which connects to a VirES server through the `WPS <http://www.opengeospatial.org/standards/wps>`_ interface and handles product requests and downloads.
26
-
27
-
Install with::
22
+
::
28
23
29
24
pip install viresclient
30
25
31
-
Full documentation: http://viresclient.readthedocs.io/
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 or help, please email [email protected] or `raise an issue on GitHub`_.
.. _`raise an issue on GitHub`: https://github.com/ESA-VirES/VirES-Python-Client/issues
34
+
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_.
*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.
92
+
93
+
.. _`"Virtual Research Environment" (VRE)`: https://vre.vires.services/
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.
In this case, model evaluations will then be available in the returned data under the name "Combined_model", but you can name it however you like.
121
+
122
+
NB: When using model names containing a hyphen (``-``) then extra single (``'``) or double (``"``) quotes must be used around the model name. This is to distinguish from arithmetic minus (``-``).
115
123
116
124
----
117
125
@@ -134,7 +142,7 @@ Flexible evaluation of models and defining new derived models is possible with t
134
142
135
143
.. note::
136
144
137
-
- The AMPS model is currently accessible as "auxiliaries" instead of a "model"
145
+
- The AMPS model is currently accessible as "auxiliaries" instead of a "model" (On the DISC server it is now accessible as a regular model)
138
146
- ``Kp`` provides the Kp values in fractional form (e.g 2.2), and ``Kp10`` is multiplied by 10 (as integers)
139
147
- ``F107`` is the hourly 10.7 cm solar radio flux value, and ``F10_INDEX`` is the daily average
140
148
- ``QDLat`` and ``QDLon`` are quasi-dipole coordinates
Copy file name to clipboardExpand all lines: docs/installation.rst
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Installation and first usage
8
8
9
9
viresclient is already installed so skip this step. Log in at https://vre.vires.services/ and refer to documentation at https://swarm-vre.readthedocs.io/
10
10
11
-
You will still need to configure viresclient (see step 2)
11
+
You may still need to configure viresclient (see step 2)
12
12
13
13
Python ≥ 3.5 is required. Tested primarily on Linux, but macOS and Windows should also work (on v0.4+).
14
14
@@ -54,6 +54,15 @@ Recommended setup if starting without Python already
54
54
55
55
.. note:: For Jupyter notebook users:
56
56
57
+
On creation of a SwarmRequest object, you will automatically be prompted to set a token. Just try::
58
+
59
+
from viresclient import SwarmRequest
60
+
request = SwarmRequest()
61
+
62
+
and follow the instructions.
63
+
64
+
[ Below instructions to be updated with new notebook. ]
65
+
57
66
The guide for first time usage are also provided as a Jupyter notebook. Download the notebook to your environment and follow the instructions.
This is the documentation for the ``viresclient`` Python package. This is a tool 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. For enquiries or help, please email [email protected] or `raise an issue on GitHub`_
Data can be accessed from the server as CSV or CDF files and saved to disk, or loaded directly into Python objects pandas.DataFrame_, or xarray.Dataset_.
The project is on GitHub at https://github.com/ESA-VirES/VirES-Python-Client - please feel free to contribute with any code/suggestions/comments.
39
-
40
-
A repository of example notebooks can be found at https://github.com/smithara/viresclient_examples. We welcome contribution of notebooks to this repository that show some short analyses or generating useful figures. It can be hard to remember or figure how do things (e.g. remembering Swarm product names; understanding the VirES "language" and what is possible; making certain kinds of figures with various libraries) so these notebooks are meant to act as recipes we can follow, to demonstrate code that can be copied and adapted for other purposes.
41
-
42
-
How to acknowledge VirES
43
-
------------------------
44
-
45
-
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.
- xarray.Dataset objects now contain dimension names for all variables. Variables containing "B_NEC" get the "NEC" dimension name.
13
+
- CHAOS model series have changed name: "CHAOS-6-Core" etc. is dropped for "CHAOS-Core" etc. which provides the latest version of the CHAOS models (currently CHAOS-7)
14
+
- Better error message when authentication with server fails.
15
+
- When in notebooks: Detect empty or invalid credentials (e.g. on first usage), direct user to the token generation page, and prompt for token input.
16
+
- Added ``request.list_jobs()`` to give info on previous two jobs on the server (failed/running/succeeded).
0 commit comments