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.4.0.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for ddc_utility-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2612502da2f551d15aa623f88df0e49190c0a3bf926eac3e7c5482059951b071 |
|
MD5 | 41a986ceb8be4c375d793581477846e4 |
|
BLAKE2b-256 | aee3dd991641a05254dfcd7f5d6620f8e74e4fff612cbbcf7de74b6e29b25f11 |