Package for retrieving DDC datasests
Project description
DDC Utility
This is the Danube Data Cube Utility library, for retrieving data from the Danube Data Cube portal.
Installation
pip install ddc-utility
Usage
Users must have a valid DDC registration.
Example
$ python
# Importing packages
>>> from ddc_utility.ddc import DanubeDataCube
>>> from ddc_utility.config import DdcCubeConfig, CustomCubeConfig
>>> from ddc_utility.cube import open_cube
# Setting DDC credentials
>>> os.environ['DDC_CLIENT_ID'] = ""
>>> os.environ['DDC_CLIENT_SECRET'] = ""
# Initialize DDC object
>>> DDC = DanubeDataCube()
# Retrieve meteorological data from DDC
>>> cube_config = DdcCubeConfig(dataset_name='METEOROLOGY', variable_names=['prec', 'temp_min', 'temp_max'], danube_data_cube=DDC)
>>> cube = open_cube(cube_config)
# Retrieve custom cube based on users's AOI
>>> cube_config2 = CustomCubeConfig(dataset_name='<my_aoi_1.zarr>', variable_names=['NDVI', 'temp_avg', 'B04', 'B08'], danube_data_cube=DDC)
>>> cube2 = open_cube(cube_config2)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ddc-utility-1.3.1.tar.gz
(18.8 kB
view hashes)
Built Distribution
Close
Hashes for ddc_utility-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f7dd036cb5cebc2b16ce180096d5744bdecd6e0acfb4659142931076f7ba66 |
|
MD5 | ea918d2063172820632a283207c7b994 |
|
BLAKE2b-256 | da202d7777632d2c3ef07c3f13098abc3991d4b3afc301ecec6c1d54bba47fad |