# Getting Started¶

Requirements:

You need to run the following commands from the command line prior to launching jupyter notebook from the same terminal so that the required libraries and paths are set.

module use /g/data/v10/public/modules/modulefiles

module load dea

## First we need to define how we display plots in our notebooks:¶

[1]:

%matplotlib inline


We use pandas.DataFrame objects to display our tables, so we will set some settings to tweak their formatting:

[2]:

import pandas
pandas.set_option('display.max_colwidth', 200)
pandas.set_option('display.max_rows', None)


Now we load the datacube library:

[3]:

import datacube


Create our datacube object, with a name to help for logging.

[4]:

dc = datacube.Datacube(app='getting-started')


By default, it will connect to the main Digital Earth environment at NCI:

[5]:

dc.index

[5]:

Index<db=PostgresDb<engine=Engine(postgresql://cek156@130.56.244.105:6432/datacube)>>


Now we can query the dc object. The basic API is as follows -

.. currentmodule:: datacube .. autosummary:: Datacube Datacube.list_products Datacube.list_measurements Datacube.load