Skip to main content

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)

Uploaded Source

Built Distribution

ddc_utility-1.3.1-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page