Contribute to Open Science Catalogue via the OSC editor#

This notebook is an example of how to add a new entry - i.e. product, project, workflow - to the Open Science Catalogue (OSC) via a combination of the earthcode library and the Open Science Catalog Editor.

The process to do this is three-fold:

  1. Create the OSC entries using the library

  2. Generate links and send the data to the OSC Editor

  3. Open Pull Request via the OSC for your project entry

  4. Open Pull Request via the OSC for your product entry

Before starting, please checkout the introduction to the Open Science Catalog Editor if you are not familiar with it already.

1. Create the OSC entries using the library#

In this notebook we use a dummy project/product pair for demonstration purposes. You can reuse the code below using real OSC entries.

from earthcode.static import generate_OSC_dummy_entries
project_collection, product_collection, _, _ = generate_OSC_dummy_entries()
project_collection
<Collection id=4datlantic-ohc+123>
product_collection
<Collection id=4d-atlantic-ohc-global+123>

4. Repeat for product or workflow.#

Once the project is added to the OSC, you can repeat the same process for your product.

# Now save the product data
# NOTE: Always use the same sesion title for project,product or project, workflow pairs, etc
product_url = generate_osc_editor_link(product_collection, 'product', session_title=project_collection.title)
print('Click on the below link to setup the product information: ')
print(product_url)