Experimental tool to run a workflow on the CDS Toolbox remotely
Project description
Experimental tool to run a workflow on the CDS Toolbox remotely.
Install
Install via pip with:
$ pip install cdstoolbox-remote
Configure
If you are not already registered to the CDS, register here:
https://cds.climate.copernicus.eu/user/register
then log in the CDS and configure the cdsapi library following the instructions at:
Usage
Write a valid CDS Toolbox workflow to the file test-wf.py:
import cdstoolbox as ct @ct.application(title='Hello World!') @ct.output.figure() @ct.output.download() def application(): data = ct.catalogue.retrieve( 'seasonal-monthly-single-levels', { 'originating_centre': 'ecmwf', 'variable': '2m_temperature', 'product_type': 'ensemble_mean', 'year': '2018', 'month': ['02'], 'leadtime_month': ['1'], } ) fig = ct.cdsplot.geomap( data, pcolormesh_kwargs={'cmap': 'RdBu_r'}, title='Mean {long_name}', projection=ct.cdsplot.crs.Robinson() ) return fig, data
Then run the worflow remotely with:
$ python test-wf.py
License
Copyright 2019 European Centre for Medium-Range Weather Forecasts (ECMWF)
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
In applying this licence, ECMWF does not waive the privileges and immunities granted to it by virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cdstoolbox-remote-0.0.1.tar.gz
.
File metadata
- Download URL: cdstoolbox-remote-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f1e5af0543c5ead4a957912ff0a9f736d6aea8f1e9d2b58efe0e7e32faab10 |
|
MD5 | 0cbb18867e011c6909e4132afab431dd |
|
BLAKE2b-256 | f3d186c005a693d420a0acb552c09d86eae62d18650b83c7bb22637dd3660a6c |
File details
Details for the file cdstoolbox_remote-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: cdstoolbox_remote-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7266861eccb825d1e1d8320cc6844b8dd94db61f494385465da3ee95270c522c |
|
MD5 | 557773547564f1648eccae55ad9b72c0 |
|
BLAKE2b-256 | df19643ac8cbc503fe8467323f9c104fc00b4302eea5f1e1d76901606fe78f91 |