From cb4247c242a9417322819ba14e220eec46e7baf7 Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Fri, 22 Sep 2023 13:41:43 +0200 Subject: [PATCH 1/6] new version of data page display --- Data.qmd | 117 +++----------------- Data/{ => ComplementaryData}/Additional.qmd | 3 +- Data/{ => ComplementaryData}/CAMS.qmd | 3 +- Data/{ => ComplementaryData}/CEMS.qmd | 3 +- Data/{ => ComplementaryData}/CLMS.qmd | 3 +- Data/{ => ComplementaryData}/CMEMS.qmd | 3 +- Data/{ => ComplementaryData}/Landsat5.qmd | 3 +- Data/{ => ComplementaryData}/Landsat7.qmd | 3 +- Data/{ => ComplementaryData}/Landsat8.qmd | 3 +- Data/{ => ComplementaryData}/MERIS.qmd | 3 +- Data/{ => ComplementaryData}/SMOS.qmd | 3 +- Data/{ => ComplementaryData}/VHR.qmd | 4 +- Data/{ => Others}/CEMS_Events/Events2.qmd | 0 Data/{ => Others}/CEMS_Events/events.json | 0 Data/{ => Others}/Dashboard.qmd | 0 Data/{ => Others}/Sentinel1_COG.qmd | 0 Data/{ => Others}/Sentinel2_baseline.qmd | 0 Data/{ => SentinelMissions}/Sentinel1.qmd | 3 +- Data/{ => SentinelMissions}/Sentinel2.qmd | 3 +- Data/{ => SentinelMissions}/Sentinel3.qmd | 3 +- Data/{ => SentinelMissions}/Sentinel5P.qmd | 3 +- Data/_render_collections.qmd | 6 +- Data_old.qmd | 112 +++++++++++++++++++ 23 files changed, 161 insertions(+), 120 deletions(-) rename Data/{ => ComplementaryData}/Additional.qmd (81%) rename Data/{ => ComplementaryData}/CAMS.qmd (90%) rename Data/{ => ComplementaryData}/CEMS.qmd (64%) rename Data/{ => ComplementaryData}/CLMS.qmd (90%) rename Data/{ => ComplementaryData}/CMEMS.qmd (92%) rename Data/{ => ComplementaryData}/Landsat5.qmd (85%) rename Data/{ => ComplementaryData}/Landsat7.qmd (81%) rename Data/{ => ComplementaryData}/Landsat8.qmd (83%) rename Data/{ => ComplementaryData}/MERIS.qmd (54%) rename Data/{ => ComplementaryData}/SMOS.qmd (89%) rename Data/{ => ComplementaryData}/VHR.qmd (65%) rename Data/{ => Others}/CEMS_Events/Events2.qmd (100%) rename Data/{ => Others}/CEMS_Events/events.json (100%) rename Data/{ => Others}/Dashboard.qmd (100%) rename Data/{ => Others}/Sentinel1_COG.qmd (100%) rename Data/{ => Others}/Sentinel2_baseline.qmd (100%) rename Data/{ => SentinelMissions}/Sentinel1.qmd (94%) rename Data/{ => SentinelMissions}/Sentinel2.qmd (90%) rename Data/{ => SentinelMissions}/Sentinel3.qmd (81%) rename Data/{ => SentinelMissions}/Sentinel5P.qmd (84%) create mode 100644 Data_old.qmd diff --git a/Data.qmd b/Data.qmd index 46b6faa4af..9d2932235e 100644 --- a/Data.qmd +++ b/Data.qmd @@ -1,112 +1,23 @@ --- title: "Data" +listing: + type: grid + id: listings + contents: + - Data/SentinelMissions + - Data/ComplementaryData + sort: "date desc" + filter-ui: true + page-size: 6 + exclude: + category: "commented" --- - This section provides an overview of the EO data available from Copernicus Data Space Ecosystem. The data offer will gradually extend starting from January 2023 -For the latest information about available satellite data, users and stakeholders can follow them in [Copernicus Sentinel Operations Dashboard](Data/Dashboard.qmd). - -## Copernicus Sentinel Mission -### [Sentinel 1](/Data/Sentinel1.qmd) - -The [Sentinel-1 radar imaging mission](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-1){target="_blank"} is composed of a constellation of two polar-orbiting satellites providing continous all-weather, day and night imagery for Land and Maritime Monitoring. C-band synthentic aperture radar imaging has the advantage of operating at wavelenghts that are not obstructed by clouds or .....[load more](/Data/Sentinel1.qmd) - -### [Sentinel 2](/Data/Sentinel2.qmd) - -The [Copernicus Sentinel-2 mission](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-2){target="_blank"} comprises a land monitoring constellation of two polar-orbiting satellites placed in the same sun-synchronous orbit, phased at 180° to each other. It aims at monitoring variability in land surface conditions, and its wide swath width (290 km) and .....[load more](/Data/Sentinel2.qmd) - -### [Sentinel 3](/Data/Sentinel3.qmd) - -The main objective of the[Copernicus Sentinel-3 mission](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-3){target="_blank"} is to measure ocean and land surface colour, sea and land surface temperature, and sea surface topography with high accuracy and reliability to.....[load more](/Data/Sentinel3.qmd) - -### [Sentinel 5P](/Data/Sentinel5P.qmd) - -The [Copernicus Sentinel-5 Precursor](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-5p){target="_blank"} mission is the first Copernicus mission dedicated to monitoring our atmosphere. The main objective of the Copernicus Sentinel-5P mission is to.....[load more](/Data/Sentinel5P.qmd) - - -## Complementary data -### [Soil Moisture and Ocean Salinity (SMOS)](/Data/SMOS.qmd) - -The Soil Moisture and Ocean Salinity (SMOS) mission was launched on 2 November 2009. It is one of the European Space Agency's Earth Explorer missions, which form the science and research element of ESA’s Living Planet Programme. The SMOS payload consists of.....[load more](/Data/SMOS.qmd) - -### [ENVISAT- Medium Resolution Imaging Spectrometer (MERIS)](/Data/MERIS.qmd) - -The Medium Resolution Imaging Spectrometer (MERIS) was a programmable spectrometer on board the Envisat mission, operating in the solar reflective spectral range. Although primarily dedicated to ocean colour observations, MERIS broadened its scope of objectives to atmospheric and land surface related studies. MERIS had a high spectral and radiometric resolution and a dual spatial resolution, within a global mission covering open ocean and coastal zone waters and a regional mission covering land surfaces.[Load more](/Data/MERIS.qmd) - -### [Landsat-5](/Data/Landsat5.qmd) - -The Landsat programme is a joint USGS and NASA-led enterprise for Earth observation that represents the world's longest running system of satellites for moderate-resolution optical remote sensing for land, coastal areas and shallow waters......[load more](/Data/Landsat5.qmd) - -### [Landsat-7](/Data/Landsat7.qmd) - -The Landsat programme is a joint USGS and NASA-led enterprise for Earth observation that represents the world's longest running system of satellites for moderate-resolution optical remote sensing for land, coastal areas and shallow waters. Landsat-7 has continued......[load more](/Data/Landsat7.qmd) - -### [Landsat-8](/Data/Landsat8.qmd) - -The Landsat programme is a joint USGS and NASA-led enterprise for Earth observation that represents the world's longest running system of satellites for moderate-resolution optical remote sensing for land, coastal areas and shallow waters. Landsat-8 carries......[load more](/Data/Landsat8.qmd) - -### [Copernicus Atmosphere Monitoring Service (CAMS)](/Data/CAMS.qmd) - -The Copernicus Atmosphere Monitoring Service (CAMS) is a service implemented by the European Centre for Medium-Range Weather Forecasts (ECMWF) which provides continuous, open, free, regular data and information on atmospheric composition. CAMS describes......[load more](/Data/CAMS.qmd) - -### [Copernicus Emergency Management Service (CEMS)](/Data/CEMS.qmd) - -The Copernicus Emergency Management Service (CEMS) provides geospatial data and images for informed decision making in order to support all involved in the management of natural or manmade disasters. CEMS constantly monitors Europe and the globe for signals of an impending disaster or evidence of one happening in real time. Products of CEMS are generated using remote sensing, satellite, in-situ (non-space) and modelled data.[Load more](/Data/CEMS.qmd) +For the latest information about available satellite data, users and stakeholders can follow them in [Copernicus Sentinel Operations Dashboard](Data/Others/Dashboard.qmd). -### [Copernicus Land Monitoring Service (CLMS)](/Data/CLMS.qmd) -Copernicus program priorities are to gain from Earth Observation techniques and make research, administration, agriculture, economy, environmental protection of our lands easier, cheaper and more effective. Copernicus Land Monitoring Service (CLMS) constitute rich data hub with archival and near real......[load more](/Data/CLMS.qmd) - -### [Copernicus Marine Service (CMEMS)](/Data/CMEMS.qmd) - -The Copernicus Marine Environment Monitoring Service (CMEMS) provides open, free, regular and systematic reference data on the blue (physical), white (sea ice), and green (biogeochemical) state of the marine environment, as well as data on variability and dynamics across the global ocean and European seas.......[load more](/Data/CMEMS.qmd) - -### [Additional Complementary Data](/Data/Additional.qmd) - -Copernicus Data Space Ecosystem provides data that are not associated with any of the Copernicus Services or are generated by third parties. These datasets include Sentinel-1 related products such as RTC (Radiometrically Terrain Corrected), CARD-BS (Terrain-Corrected Backscatter), Orbits; Sentinel-2 based global mosaics; land cover.......[load more](/Data/Additional.qmd) - - - - - - \ No newline at end of file +::: {#listings} +::: \ No newline at end of file diff --git a/Data/Additional.qmd b/Data/ComplementaryData/Additional.qmd similarity index 81% rename from Data/Additional.qmd rename to Data/ComplementaryData/Additional.qmd index 812ed723ef..a9022601c2 100644 --- a/Data/Additional.qmd +++ b/Data/ComplementaryData/Additional.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://ai4edatasetspublicassets.blob.core.windows.net/assets/pc_thumbnails/sentinel-1-rtc.png --- ```{python} @@ -17,4 +18,4 @@ constellation = "AdditionalComplementaryData" ``` Copernicus Data Space Ecosystem provides data that are not associated with any of the Copernicus Services or are generated by third parties. These datasets include Sentinel-1 related products such as RTC (Radiometrically Terrain Corrected), CARD-BS (Terrain-Corrected Backscatter), Orbits; Sentinel-2 based global mosaics; land cover for Europe and Poland (S2GLC) and Digital Elevation Models (COP DEM and SRTM DEM). -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/CAMS.qmd b/Data/ComplementaryData/CAMS.qmd similarity index 90% rename from Data/CAMS.qmd rename to Data/ComplementaryData/CAMS.qmd index ce904243c5..1a7383eb3b 100644 --- a/Data/CAMS.qmd +++ b/Data/ComplementaryData/CAMS.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://av.tib.eu/resources/content/publishers/CAMS/logo.png --- ```{python} @@ -26,4 +27,4 @@ Please be advised that access to this collection is exclusively available throug ::: -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/CEMS.qmd b/Data/ComplementaryData/CEMS.qmd similarity index 64% rename from Data/CEMS.qmd rename to Data/ComplementaryData/CEMS.qmd index 57903dd640..178f9c4041 100644 --- a/Data/CEMS.qmd +++ b/Data/ComplementaryData/CEMS.qmd @@ -6,6 +6,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://www.efas.eu/sites/default/files/styles/responsive/public/2020-07/logo-em.png?itok=eIy9WDqX --- ```{python} @@ -15,7 +16,7 @@ constellation = "CEMS" ``` -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} :::{.callout-note} diff --git a/Data/CLMS.qmd b/Data/ComplementaryData/CLMS.qmd similarity index 90% rename from Data/CLMS.qmd rename to Data/ComplementaryData/CLMS.qmd index 49b9a2c127..6738228276 100644 --- a/Data/CLMS.qmd +++ b/Data/ComplementaryData/CLMS.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://s2gm.land.copernicus.eu/assets/land_monitoring_logo-a1f50bdb.png --- ```{python} @@ -28,4 +29,4 @@ Please be advised that access to this collection is exclusively available throug -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/CMEMS.qmd b/Data/ComplementaryData/CMEMS.qmd similarity index 92% rename from Data/CMEMS.qmd rename to Data/ComplementaryData/CMEMS.qmd index e3f4aa3808..1d9b1cb0c2 100644 --- a/Data/CMEMS.qmd +++ b/Data/ComplementaryData/CMEMS.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://avatars.githubusercontent.com/u/51791874?v=4 --- ```{python} @@ -28,5 +29,5 @@ Please be advised that access to this collection is exclusively available throug ::: -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/Landsat5.qmd b/Data/ComplementaryData/Landsat5.qmd similarity index 85% rename from Data/Landsat5.qmd rename to Data/ComplementaryData/Landsat5.qmd index da87758204..ffb9e64522 100644 --- a/Data/Landsat5.qmd +++ b/Data/ComplementaryData/Landsat5.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://d9-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/styles/carousel/public/media/images/L5_026041_19840306_CorpusChristi_closeup2.jpg?h=95659d80&itok=fLRoDwlB --- ```{python} @@ -22,4 +23,4 @@ Landsat-5 was launched on 1 March 1984 and ended its mission on 5 June 2013. It The objective of Landsat-5 and every Landsat mission has been to repeatedly image Earth's land and coastal areas in order to monitor changes to these areas over time. -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/Landsat7.qmd b/Data/ComplementaryData/Landsat7.qmd similarity index 81% rename from Data/Landsat7.qmd rename to Data/ComplementaryData/Landsat7.qmd index 917b263384..a823fa789b 100644 --- a/Data/Landsat7.qmd +++ b/Data/ComplementaryData/Landsat7.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://d9-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/styles/carousel/public/media/images/l7_029030_19990418_First%20L7%20scene.jpg?h=505ffac4&itok=CBsAY5xI --- ```{python} @@ -22,4 +23,4 @@ Landsat-7 has continued the goal of the Landsat programme to repeatedly image Ea The Enhanced Thematic Mapper Plus (ETM+) is the main instrument on board Landsat-7 and has been operational since 1999. It provides 30 m resolution for visible (VIS), near-infrared (NIR) and shortwave infrared (SWIR) as well as 60 m resolution for thermal infrared. Moreover, it adds a 15 m resolution panchromatic band (PAN). -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/Landsat8.qmd b/Data/ComplementaryData/Landsat8.qmd similarity index 83% rename from Data/Landsat8.qmd rename to Data/ComplementaryData/Landsat8.qmd index 936aa08185..f1d1c6fdfa 100644 --- a/Data/Landsat8.qmd +++ b/Data/ComplementaryData/Landsat8.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://d9-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/styles/carousel/public/thumbnails/image/Maui%20before%20no%20labels.jpg?itok=D64GfeWs --- ```{python} @@ -20,4 +21,4 @@ The Landsat programme is a joint USGS and NASA-led enterprise for Earth observat Landsat-8 carries the Operational Land Imager (OLI) and the Thermal Infrared Sensor (TIRS). OLI provides imagery in the VIS, NIR and SWIR spectral ranges. It acquires images with 15 m panchromatic and 30 m multi-spectral spatial resolutions, covering a wide 185 km swath. This allows it to capture extensive areas of the Earth's landscape while maintaining enough resolution to identify features like urban centers, farms, forests, and other land uses. The entire Earth falls within view once every 16 days due to Landsat-8’s near-polar orbit. The TIRS instrument is a thermal imager operating in a pushbroom mode with two Infra-Red channels: 10.8 µm and 12 µm with 100 m spatial resolution. -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/MERIS.qmd b/Data/ComplementaryData/MERIS.qmd similarity index 54% rename from Data/MERIS.qmd rename to Data/ComplementaryData/MERIS.qmd index 0761f44a26..1c625e4193 100644 --- a/Data/MERIS.qmd +++ b/Data/ComplementaryData/MERIS.qmd @@ -6,6 +6,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://earth.esa.int/eogateway/documents/20142/1371000/Bahamas-MERIS-24-January-2004.jpg --- ```{python} @@ -16,4 +17,4 @@ constellation = "MERIS" ``` -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/SMOS.qmd b/Data/ComplementaryData/SMOS.qmd similarity index 89% rename from Data/SMOS.qmd rename to Data/ComplementaryData/SMOS.qmd index 04a8c364a4..64021a6471 100644 --- a/Data/SMOS.qmd +++ b/Data/ComplementaryData/SMOS.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://earth.esa.int/eogateway/documents/20142/0/smos3.jpg/701f3152-2911-731b-c43f-247f2511265e?t=1608137791475 --- ```{python} @@ -24,4 +25,4 @@ SMOS Level 1 data products are designed for scientific and operational users who -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/VHR.qmd b/Data/ComplementaryData/VHR.qmd similarity index 65% rename from Data/VHR.qmd rename to Data/ComplementaryData/VHR.qmd index a7c67f29fd..e2252e109c 100644 --- a/Data/VHR.qmd +++ b/Data/ComplementaryData/VHR.qmd @@ -6,6 +6,8 @@ execute: echo: false output: asis jupyter: python3 +category: "commented" +image: https://www.eoportal.org/api/cms/documents/163813/4146550/KompSat2_Auto1F.jpegs --- ```{python} @@ -15,7 +17,7 @@ constellation = "Commercial data" ``` -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} :::{.callout-note} diff --git a/Data/CEMS_Events/Events2.qmd b/Data/Others/CEMS_Events/Events2.qmd similarity index 100% rename from Data/CEMS_Events/Events2.qmd rename to Data/Others/CEMS_Events/Events2.qmd diff --git a/Data/CEMS_Events/events.json b/Data/Others/CEMS_Events/events.json similarity index 100% rename from Data/CEMS_Events/events.json rename to Data/Others/CEMS_Events/events.json diff --git a/Data/Dashboard.qmd b/Data/Others/Dashboard.qmd similarity index 100% rename from Data/Dashboard.qmd rename to Data/Others/Dashboard.qmd diff --git a/Data/Sentinel1_COG.qmd b/Data/Others/Sentinel1_COG.qmd similarity index 100% rename from Data/Sentinel1_COG.qmd rename to Data/Others/Sentinel1_COG.qmd diff --git a/Data/Sentinel2_baseline.qmd b/Data/Others/Sentinel2_baseline.qmd similarity index 100% rename from Data/Sentinel2_baseline.qmd rename to Data/Others/Sentinel2_baseline.qmd diff --git a/Data/Sentinel1.qmd b/Data/SentinelMissions/Sentinel1.qmd similarity index 94% rename from Data/Sentinel1.qmd rename to Data/SentinelMissions/Sentinel1.qmd index c1a4cd7f2b..6398f6eb73 100644 --- a/Data/Sentinel1.qmd +++ b/Data/SentinelMissions/Sentinel1.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://ai4edatasetspublicassets.blob.core.windows.net/assets/pc_thumbnails/sentinel-1-grd.png --- ```{python} #| tags: [parameters] @@ -25,7 +26,7 @@ The [Sentinel-1 radar imaging mission](https://sentinels.copernicus.eu/web/senti Sentinel data products are made available systematically and free of charge to all data users including the general public, scientific and commercial users. These [data products](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-1/data-products){target="_blank"} are available in single polarisation for Wave mode and dual polarisation or single polarisation for SM, IW and EW modes. -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} diff --git a/Data/Sentinel2.qmd b/Data/SentinelMissions/Sentinel2.qmd similarity index 90% rename from Data/Sentinel2.qmd rename to Data/SentinelMissions/Sentinel2.qmd index 5763932914..6c92602e04 100644 --- a/Data/Sentinel2.qmd +++ b/Data/SentinelMissions/Sentinel2.qmd @@ -7,6 +7,7 @@ execute: echo: false output: asis jupyter: python3 +image: https://ai4edatasetspublicassets.blob.core.windows.net/assets/pc_thumbnails/sentinel-2.png --- ```{python} @@ -20,7 +21,7 @@ The [Copernicus Sentinel-2 mission](https://sentinels.copernicus.eu/web/sentinel Each [Sentinel-2 products](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-2/data-products){target="_blank"} is composed of approximately 110x110 km tiles in cartographic geometry (UTM/WGS84 projection). Earth is subdivided on a predefined set of tiles, defined in UTM/WGS84 projection and using a 100 km step. However, each tile has a surface of 110x110 km² in order to provide large overlap with the neighbouring. -{{< include _render_collections.qmd >}} +{{< include ../_render_collections.qmd >}} + + + + \ No newline at end of file From beea6b8736e3568450c2eef84685ea48133ed4bf Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Sat, 30 Sep 2023 10:46:34 +0200 Subject: [PATCH 2/6] create file on fly --- .gitignore | 1 + Data/_render_collections.qmd | 44 ++++++++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 7a0bb656ee..f216a75c71 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ _site/ *_render/ venv *.pyc +Data/*/collections_fly diff --git a/Data/_render_collections.qmd b/Data/_render_collections.qmd index bdcd8d9bc1..9f62de595a 100644 --- a/Data/_render_collections.qmd +++ b/Data/_render_collections.qmd @@ -5,6 +5,7 @@ from IPython.display import display, Markdown, Latex,HTML from tabulate import tabulate import sys +import os sys.path.append('..') from Datafunctions import data_availability, filter_levels @@ -226,13 +227,34 @@ def baselineinfo(filename): return info ``` +```{python} +import os + +def collection_fly(collectionid, text): + directory = "collections_fly" + file_name = f"{directory}/{collectionid}.qmd" + + # Check for directory + if not os.path.exists(directory): + os.makedirs(directory) + + # Create or replace the file + with open(file_name, "w") as qmd_file: + qmd_file.write(text) + + return file_name +``` + + ```{python} # for loop to display the content text = '' categories=[] + for c in meta: + fly_content = '' additional_info = "" title = c["title"] resolution = c.get("gsd", "") @@ -285,7 +307,7 @@ for c in meta: databrowser = find_link(rel="browser",title_contains="Data-Browser") license_url = find_link(rel="license") cite = find_link(rel="cite-as") - + if userguide is not None: userguide = f"""[![User guide](https://img.shields.io/badge/-User_guide-77cc09)]({userguide}){{target='_blank'}}""" @@ -340,7 +362,12 @@ for c in meta: else: opensearch = "" - text = text + f""" + fly_content = f""" +
+

{title}

+

""" + file_test = collection_fly(collectionID,fly_content) + summary_text = f"""
@@ -350,22 +377,15 @@ for c in meta: {thumbblock(thumb_url,userguide,opensearch,gsd,revisit_time,datatype,Updated_freq)} -#### Overview - -{c["description"]} - -{offer} - -{detailblock(collectionID,spatial,temporal,table,link_block,license_button,cite )} - -{additional_info} +load file here
""" - + text = text + summary_text + ``` ```{python} From f199339378a494439a159d2c4977615279b88517 Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Sat, 30 Sep 2023 11:21:43 +0200 Subject: [PATCH 3/6] sample work --- Data/SentinelMissions/Sentinel2.qmd | 7 +++++++ Data/_render_collections.qmd | 21 ++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Data/SentinelMissions/Sentinel2.qmd b/Data/SentinelMissions/Sentinel2.qmd index 6c92602e04..40f7ca3af6 100644 --- a/Data/SentinelMissions/Sentinel2.qmd +++ b/Data/SentinelMissions/Sentinel2.qmd @@ -1,5 +1,12 @@ --- title: "Sentinel-2" +listing: + type: grid + contents: + - "collections_fly/*.qmd" + fields: [title, description] + filter-ui: true + page-size: 6 format: html: code-fold: true diff --git a/Data/_render_collections.qmd b/Data/_render_collections.qmd index 9f62de595a..fbc8be32e4 100644 --- a/Data/_render_collections.qmd +++ b/Data/_render_collections.qmd @@ -363,12 +363,6 @@ for c in meta: opensearch = "" fly_content = f""" -
-

{title}

-

""" - file_test = collection_fly(collectionID,fly_content) - summary_text = f""" -
@@ -377,20 +371,25 @@ for c in meta: {thumbblock(thumb_url,userguide,opensearch,gsd,revisit_time,datatype,Updated_freq)} -load file here +#### Overview + +{c["description"]} + +{offer} + +{additional_info}
""" - text = text + summary_text - + file_test = collection_fly(collectionID,fly_content) ``` ```{python} -text = filter_levels.createcheckboxes(sorted(set(categories))) +text + togglescript() +# text = filter_levels.createcheckboxes(sorted(set(categories))) +text + togglescript() -display(Markdown(text)) +# display(Markdown(text)) ``` From 0a171bda2f56f26bb166ca13dd6ae9454a787b95 Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:04:16 +0200 Subject: [PATCH 4/6] included in the sidebar --- _quarto.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/_quarto.yml b/_quarto.yml index 1e62c706d1..c0c84bad82 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -45,34 +45,34 @@ website: - section: "Data" href: Data.qmd contents: - - href: Data/Dashboard.qmd + - href: Data/Others/Dashboard.qmd - section: "Copernicus Sentinel Mission" contents: - - href: Data/Sentinel1.qmd - - href: Data/Sentinel2.qmd - - href: Data/Sentinel3.qmd - - href: Data/Sentinel5P.qmd + - href: Data/SentinelMissions/Sentinel1.qmd + - href: Data/SentinelMissions/Sentinel2.qmd + - href: Data/SentinelMissions/Sentinel3.qmd + - href: Data/SentinelMissions/Sentinel5P.qmd - section: "Complementary data" contents: - - href: Data/SMOS.qmd + - href: Data/ComplementaryData/SMOS.qmd text: "Soil Moisture and Ocean Salinity (SMOS)" - - href: Data/MERIS.qmd + - href: Data/ComplementaryData/MERIS.qmd text: "ENVISAT- Medium Resolution Imaging Spectrometer (MERIS)" - - href: Data/Landsat5.qmd + - href: Data/ComplementaryData/Landsat5.qmd text: "Landsat-5" - - href: Data/Landsat7.qmd + - href: Data/ComplementaryData/Landsat7.qmd text: "Landsat-7" - - href: Data/Landsat8.qmd + - href: Data/ComplementaryData/Landsat8.qmd text: "Landsat-8" - - href: Data/CLMS.qmd + - href: Data/ComplementaryData/CLMS.qmd text: "Copernicus Land Monitoring Service (CLMS)" - - href: Data/CMEMS.qmd + - href: Data/ComplementaryData/CMEMS.qmd text: "Copernicus Marine Service (CMEMS)" - - href: Data/CEMS.qmd + - href: Data/ComplementaryData/CEMS.qmd text: "Copernicus Emergency Management Service (CEMS)" - - href: Data/CAMS.qmd + - href: Data/ComplementaryData/CAMS.qmd text: "Copernicus Atmosphere Monitoring Service (CAMS)" - - href: Data/Additional.qmd + - href: Data/ComplementaryData/Additional.qmd text: "Additional Complementary Data" # - href: Data/VHR.qmd # text: "VHR Commercial Data" From 9195b57a21d4badf0980bada616a2965c85ba750 Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Tue, 3 Oct 2023 09:43:32 +0200 Subject: [PATCH 5/6] filtered to specific display only --- Data/SentinelMissions/Sentinel2.qmd | 8 ++++++-- Data/SentinelMissions/Sentinel3.qmd | 12 ++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Data/SentinelMissions/Sentinel2.qmd b/Data/SentinelMissions/Sentinel2.qmd index 40f7ca3af6..1bd0d081e2 100644 --- a/Data/SentinelMissions/Sentinel2.qmd +++ b/Data/SentinelMissions/Sentinel2.qmd @@ -2,8 +2,9 @@ title: "Sentinel-2" listing: type: grid + id: Sentinel2_collections contents: - - "collections_fly/*.qmd" + - "collections_fly/SENTINEL2*" fields: [title, description] filter-ui: true page-size: 6 @@ -34,4 +35,7 @@ Each [Sentinel-2 products](https://sentinels.copernicus.eu/web/sentinel/missions * links to openEO * link to 'parent collection'? For instance, L2A links to L1C?? -* how to separate usable collections from engineering products?? --> \ No newline at end of file +* how to separate usable collections from engineering products?? --> + +::: {#Sentinel2_collections} +::: \ No newline at end of file diff --git a/Data/SentinelMissions/Sentinel3.qmd b/Data/SentinelMissions/Sentinel3.qmd index 08bd4587bd..85199f9687 100644 --- a/Data/SentinelMissions/Sentinel3.qmd +++ b/Data/SentinelMissions/Sentinel3.qmd @@ -1,5 +1,13 @@ --- title: "Sentinel-3" +listing: + type: grid + id: Sentinel3_collections + contents: + - "collections_fly/SENTINEL3*" + fields: [title, description] + filter-ui: true + page-size: 6 format: html: code-fold: true @@ -20,3 +28,7 @@ The main objective of the [Copernicus Sentinel-3 mission](https://sentinels.cope {{< include ../_render_collections.qmd >}} + + +::: {#Sentinel3_collections} +::: \ No newline at end of file From 8ee36a4b743fb1447deac85c603be8e98ae4212e Mon Sep 17 00:00:00 2001 From: Pratichhya <39898768+Pratichhya@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:13:06 +0200 Subject: [PATCH 6/6] specific qmd only --- Data/SentinelMissions/Sentinel2.qmd | 2 +- Data/SentinelMissions/Sentinel3.qmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/SentinelMissions/Sentinel2.qmd b/Data/SentinelMissions/Sentinel2.qmd index 1bd0d081e2..0b9aeb80af 100644 --- a/Data/SentinelMissions/Sentinel2.qmd +++ b/Data/SentinelMissions/Sentinel2.qmd @@ -4,7 +4,7 @@ listing: type: grid id: Sentinel2_collections contents: - - "collections_fly/SENTINEL2*" + - "collections_fly/SENTINEL2*.qmd" fields: [title, description] filter-ui: true page-size: 6 diff --git a/Data/SentinelMissions/Sentinel3.qmd b/Data/SentinelMissions/Sentinel3.qmd index 85199f9687..e4866590c7 100644 --- a/Data/SentinelMissions/Sentinel3.qmd +++ b/Data/SentinelMissions/Sentinel3.qmd @@ -4,7 +4,7 @@ listing: type: grid id: Sentinel3_collections contents: - - "collections_fly/SENTINEL3*" + - "collections_fly/SENTINEL3*.qmd" fields: [title, description] filter-ui: true page-size: 6