Python Examples
All operations which are supported by the command line tool can also be performed in a more modular sense from python. In fact, actions can be defined more broadly when using the python interface. The use of the commandline interface is therefore not strictly necessary. The following sections show python examples which illustrate this. The Jupyter notebooks, which are used to build these examples can be downloaded from the github repository.
- Establish a database connection and retrieve the inventory and User settings
- Downloading and registering “catalogue” datasets
- Download and register a dynamic dataset of (crowd-sourced?) US Marijuana street prices
- Discovery techniques
- Exporting parts of the database to portable formats
- Exporting a selection of GRACE datasets and auxiliary datasets (without geographical information) to a local sqlite database.
- Applying the Ocean function to geometries and generating grids
- Conclusion: An indexed and subdivided geometry table speeds up the ocean queries considerably