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-0.3.2.tar.gz
(21.1 kB
view hashes)
Built Distribution
Close
Hashes for ddc_utility-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 028b013aaa3179fc3b0cff21f409f6b190e68f9709156b889541ef2c418bacfd |
|
MD5 | a092028d1a7833b2c05f48fdf0755881 |
|
BLAKE2b-256 | 9e6d605450bb95bcffd4532c0ecbe797293e67612cbddd29bfc825e3939708cc |