Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 40 additions & 32 deletions PRR/example_tccas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# ESA Project Results Repository: Generating STAC collections with multiple assets\n",
"\n",
"This notebook shows how to generate a valid STAC collection, which is a requirement to upload research outcomes to the [ESA Project Results Repository (PRR)](https://eoresults.esa.int/). It focuses on generating metadata for a project with a multiple data files of different types. \n",
"This notebook shows how to generate a valid STAC collection, which is a requirement to upload research outcomes to the [ESA Project Results Repository (PRR)](https://eoresults.esa.int/). It focuses on generating metadata for a project with multiple data files of different types. \n",
"\n",
"Check the [EarthCODE documentation](https://earthcode.esa.int/), and [PRR STAC introduction example](https://esa-earthcode.github.io/examples/prr-stac-introduction) for a more general introduction to STAC and the ESA PRR.\n",
"\n",
Expand Down Expand Up @@ -382,7 +382,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "60ad7781",
"metadata": {},
"outputs": [],
Expand All @@ -406,7 +406,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"id": "30dfc770",
"metadata": {},
"outputs": [],
Expand All @@ -418,7 +418,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 5,
"id": "e37e5a77",
"metadata": {},
"outputs": [],
Expand All @@ -436,7 +436,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"id": "5bedc1dd",
"metadata": {
"scrolled": true
Expand All @@ -446,11 +446,11 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_12458/2301298067.py:9: UserWarning: no explicit representation of timezones available for np.datetime64\n",
"/tmp/ipykernel_47640/2301298067.py:9: UserWarning: no explicit representation of timezones available for np.datetime64\n",
" ts = (start_time - np.datetime64('1970-01-01T00:00:00Z')) / np.timedelta64(1, 's')\n",
"/tmp/ipykernel_12458/2301298067.py:5: FutureWarning: In a future version of xarray decode_timedelta will default to False rather than None. To silence this warning, set decode_timedelta to True, False, or a 'CFTimedeltaCoder' instance.\n",
"/tmp/ipykernel_47640/2301298067.py:5: FutureWarning: In a future version of xarray decode_timedelta will default to False rather than None. To silence this warning, set decode_timedelta to True, False, or a 'CFTimedeltaCoder' instance.\n",
" ds = xr.open_dataset(root_url + dataset_filepath + '#mode=bytes')\n",
"/tmp/ipykernel_12458/2301298067.py:9: UserWarning: no explicit representation of timezones available for np.datetime64\n",
"/tmp/ipykernel_47640/2301298067.py:9: UserWarning: no explicit representation of timezones available for np.datetime64\n",
" ts = (start_time - np.datetime64('1970-01-01T00:00:00Z')) / np.timedelta64(1, 's')\n"
]
}
Expand Down Expand Up @@ -519,7 +519,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 7,
"id": "00e4d3b5",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -597,7 +597,7 @@
"<Link rel=item target=<Item id=tccas-sodankylae-insitu_package>>"
]
},
"execution_count": 9,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -639,7 +639,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 8,
"id": "60f80689",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -717,7 +717,7 @@
"<Link rel=item target=<Item id=tccas-sodankylae-model_forcing>>"
]
},
"execution_count": 10,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -796,7 +796,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"id": "ead22923",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -874,7 +874,7 @@
"<Link rel=item target=<Item id=tccas-sodankylae-documentation>>"
]
},
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -927,12 +927,12 @@
"id": "33d4ffee",
"metadata": {},
"source": [
"## 4. Save the metadata as a self-contained collection"
"## 3. Save the metadata as a self-contained collection"
]
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 10,
"id": "52756c30",
"metadata": {},
"outputs": [],
Expand All @@ -946,7 +946,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"id": "4a19d066",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1050,7 +1050,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/collection.json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/collection.json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1101,7 +1101,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-fraction_of_absorbed_photosynthetic_active_radiation_leaf_area_index_(jrc-tip)/tccas-sodankylae-fraction_of_absorbed_photosynthetic_active_radiation_leaf_area_index_(jrc-tip).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-fraction_of_absorbed_photosynthetic_active_radiation_leaf_area_index_(jrc-tip)/tccas-sodankylae-fraction_of_absorbed_photosynthetic_active_radiation_leaf_area_index_(jrc-tip).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1143,7 +1143,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-brightness_temperature_(smos_tb)/tccas-sodankylae-brightness_temperature_(smos_tb).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-brightness_temperature_(smos_tb)/tccas-sodankylae-brightness_temperature_(smos_tb).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1185,7 +1185,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-soil_moisture_and_vegetation_optical_depth_(smos_sm_and_smos_l-vod)/tccas-sodankylae-soil_moisture_and_vegetation_optical_depth_(smos_sm_and_smos_l-vod).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-soil_moisture_and_vegetation_optical_depth_(smos_sm_and_smos_l-vod)/tccas-sodankylae-soil_moisture_and_vegetation_optical_depth_(smos_sm_and_smos_l-vod).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1227,7 +1227,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(sentinel_5p)/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(sentinel_5p).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(sentinel_5p)/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(sentinel_5p).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1269,7 +1269,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-slope_(ascat_slope)/tccas-sodankylae-slope_(ascat_slope).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-slope_(ascat_slope)/tccas-sodankylae-slope_(ascat_slope).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1311,7 +1311,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-photochemical_reflectance_index_(modis_pri)/tccas-sodankylae-photochemical_reflectance_index_(modis_pri).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-photochemical_reflectance_index_(modis_pri)/tccas-sodankylae-photochemical_reflectance_index_(modis_pri).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1353,7 +1353,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-land_surface_temperature_(modis_lst)/tccas-sodankylae-land_surface_temperature_(modis_lst).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-land_surface_temperature_(modis_lst)/tccas-sodankylae-land_surface_temperature_(modis_lst).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1395,7 +1395,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(oco-2_sif)/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(oco-2_sif).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(oco-2_sif)/tccas-sodankylae-solar_induced_chlorophyll_fluorescence_(oco-2_sif).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1437,7 +1437,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-vegetation_optical_depth_(amsr-2_vod)/tccas-sodankylae-vegetation_optical_depth_(amsr-2_vod).json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-vegetation_optical_depth_(amsr-2_vod)/tccas-sodankylae-vegetation_optical_depth_(amsr-2_vod).json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1479,7 +1479,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-insitu_package/tccas-sodankylae-insitu_package.json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-insitu_package/tccas-sodankylae-insitu_package.json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1521,7 +1521,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-model_forcing/tccas-sodankylae-model_forcing.json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-model_forcing/tccas-sodankylae-model_forcing.json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1563,7 +1563,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/tccas-sodankylae-documentation/tccas-sodankylae-documentation.json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/tccas-sodankylae-documentation/tccas-sodankylae-documentation.json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1605,7 +1605,7 @@
" \n",
" <li class=\"pystac-row\">\n",
" <span class=\"pystac-k\">href</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/oneones/data/example_catalog/collection.json\"</span>\n",
" <span class=\"pystac-v\">\"/home/krasen/examples/PRR/data/example_catalog/collection.json\"</span>\n",
" </li>\n",
" \n",
" \n",
Expand Down Expand Up @@ -1802,14 +1802,22 @@
"<Collection id=tccas-sodankylae>"
]
},
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"collection"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "585db2d3",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
3 changes: 2 additions & 1 deletion PRR/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ In order to upload data to the ESA Project Results Repository (PRR) you have to
Below you will find guides to the whole process, we recomend starting with the introductory notebook.

- [Generating a STAC Collection for the PRR(Introduction)](./PRR_STAC_introduction.ipynb) - A notebook explaining how to create the required PRR metadata. It describes the steps in detail and uses a relatively simple example, with a single .nc raster data file.
- [Generating STAC collections with zarr files](./Creating%20STAC%20Catalog_from_PRR_example.ipynb) - Example how to generate metadata for a product with zarr files.
- [Generating a STAC Collection for the PRR (Multiple file types)](./example_tccas.ipynb) - Example how to generate metadata for a more complicated dataset which has multiple types of data and different file formats.
- [Generating a STAC Collection for the PRR(Large dataset for multiple regions)](./Creating%20STAC%20Catalog_from_PRR_example.ipynb) - Example how to generate metadata for a large dataset that has multiple disjoint regions.
- [Generating a STAC Collection for the PRR(Large dataset for multiple regions)](./prr_zarr.ipynb) - Example how to generate metadata for a large dataset that has multiple disjoint regions.

If you are interested in exploring/downloading PRR data you can use this notebook as a guide:
- [ESA Project Results Repository (PRR) Data Access and Collections Preview](./PRR_STAC_download_example.ipynb) - A notebook explaining how Item Catalogs should be created, uses raster data.
Loading
Loading