Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
Production deploy v0.6.0
  • Loading branch information
danielfdsilva authored Feb 9, 2023
2 parents 025de3e + 8c3932f commit 68a0b15
Show file tree
Hide file tree
Showing 13 changed files with 253 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .veda/ui
Submodule ui updated 72 files
+ app/graphics/layout/root-welcome--cover.jpg
+ app/graphics/layout/vp-01-illu.png
+ app/graphics/layout/vp-02-illu.png
+ app/graphics/layout/vp-03-illu.png
+0 −33 app/scripts/components/about/index.tsx
+76 −61 app/scripts/components/analysis/define/aoi-selector.tsx
+18 −10 app/scripts/components/analysis/define/aoi-upload-modal.tsx
+24 −17 app/scripts/components/analysis/define/constants.ts
+9 −5 app/scripts/components/analysis/define/index.tsx
+26 −14 app/scripts/components/analysis/define/page-hero-actions.tsx
+94 −50 app/scripts/components/analysis/define/use-custom-aoi.ts
+5 −3 app/scripts/components/analysis/define/use-stac-search.ts
+14 −14 app/scripts/components/analysis/page-hero-analysis.tsx
+28 −26 app/scripts/components/analysis/page-hero-media.tsx
+51 −8 app/scripts/components/analysis/results/analysis-head-actions.tsx
+81 −14 app/scripts/components/analysis/results/chart-card.tsx
+69 −20 app/scripts/components/analysis/results/index.tsx
+7 −6 app/scripts/components/analysis/results/timeseries-data.ts
+25 −16 app/scripts/components/analysis/results/use-analysis-params.ts
+166 −0 app/scripts/components/analysis/saved-analysis-control.tsx
+105 −0 app/scripts/components/analysis/use-saved-settings.ts
+55 −10 app/scripts/components/analysis/utils.ts
+27 −6 app/scripts/components/common/aoi/types.d.ts
+89 −44 app/scripts/components/common/aoi/use-aoi-controls.ts
+21 −4 app/scripts/components/common/aoi/utils.ts
+21 −8 app/scripts/components/common/blocks/scrollytelling/index.tsx
+3 −2 app/scripts/components/common/chart/analysis/useBrush.ts
+2 −2 app/scripts/components/common/chart/index.tsx
+4 −11 app/scripts/components/common/fold.tsx
+30 −0 app/scripts/components/common/item-truncate-count.tsx
+6 −2 app/scripts/components/common/mapbox/aoi/mb-aoi-draw.d.ts
+40 −28 app/scripts/components/common/mapbox/aoi/mb-aoi-draw.js
+63 −0 app/scripts/components/common/mapbox/aoi/mb-draw-popover.tsx
+3 −3 app/scripts/components/common/mapbox/index.tsx
+14 −3 app/scripts/components/common/mapbox/map.tsx
+128 −0 app/scripts/components/common/mapbox/mb-popover/index.tsx
+72 −0 app/scripts/components/common/mapbox/mb-popover/maker.ts
+251 −0 app/scripts/components/common/mapbox/mb-popover/popover-inner.tsx
+241 −0 app/scripts/components/common/mapbox/mb-popover/styled.ts
+115 −0 app/scripts/components/common/mapbox/mb-popover/types.d.ts
+3 −1 app/scripts/components/common/mdx-content.js
+7 −3 app/scripts/components/common/nav-wrapper.js
+151 −0 app/scripts/components/common/notebook-connect.tsx
+0 −10 app/scripts/components/common/page-header.js
+1 −10 app/scripts/components/common/page-local-nav.js
+6 −2 app/scripts/components/common/tip.ts
+9 −0 app/scripts/components/datasets/s-explore/index.tsx
+11 −2 app/scripts/components/datasets/s-overview/index.js
+0 −80 app/scripts/components/datasets/s-usage/index.js
+6 −17 app/scripts/components/home/index.tsx
+1 −1 app/scripts/components/root-home/audience.tsx
+2 −2 app/scripts/components/root-home/index.tsx
+26 −0 app/scripts/components/sandbox/analysis-chart/index.js
+33 −18 app/scripts/components/sandbox/aoi/controls.tsx
+6 −5 app/scripts/components/sandbox/aoi/index.js
+36 −26 app/scripts/components/sandbox/mdx-page/page.mdx
+0 −7 app/scripts/main.tsx
+1 −0 app/scripts/styles/infographics.js
+4 −2 app/scripts/styles/page.js
+55 −36 app/scripts/styles/theme.ts
+17 −7 app/scripts/utils/date.ts
+29 −76 app/scripts/utils/polygon-url.ts
+0 −11 app/scripts/utils/routes.ts
+9 −2 app/scripts/utils/thematics.ts
+31 −0 app/scripts/utils/use-resize-observer.ts
+11 −4 app/scripts/utils/use-sliding-sticky-header.ts
+1 −1 content-tests/datasets.spec.js
+3 −1 gulpfile.js
+3 −1 package.json
+1 −1 parcel-resolver-thematics/index.d.ts
+16 −0 types.d.ts
+61 −5 yarn.lock
12 changes: 6 additions & 6 deletions datasets/no2.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ featuredOn:
- covid-19
description: "Since the outbreak of the novel coronavirus, atmospheric concentrations of nitrogen dioxide have changed by as much as 60% in some regions."
usage:
- url: 'https://nasa-impact.github.io/veda-documentation/single-item-viz.html'
label: Open notebook
title: 'Open and Visualize'
- url: "https://daskhub.veda.smce.nasa.gov/hub/user-redirect/git-pull?repo=https://github.com/NASA-IMPACT/veda-documentation&urlpath=lab/tree/veda-documentation/single-item-viz.ipynb&branch=main"
label: Open with NASA's Science Managed Cloud Environment (SMCE) DaskHub (requires access)
title: 'Open and Visualize'
- url: 'https://github.com/NASA-IMPACT/veda-docs/blob/no2-single-item-viz/example-notebooks/no2-single-item-vizualization.ipynb'
label: View example notebook
title: 'Static view in VEDA documentation'
- url: "https://nasa-veda.2i2c.cloud/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FNASA-IMPACT%2Fveda-docs&urlpath=lab%2Ftree%2Fveda-docs%2Fexample-notebooks%2Fno2-single-item-vizualization.ipynb&branch=no2-single-item-viz"
label: Run example notebook
title: 'Interactive session in VEDA 2i2c JupyterHub (requires account)'
media:
src: ::file ./no2--dataset-cover.jpg
alt: Power plant shooting steam at the sky.
Expand Down
Binary file added discoveries/Degassing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added discoveries/Kamoamoa_2011.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added discoveries/La_Palma_lava_flows_into_the_sea.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 159 additions & 0 deletions discoveries/air-quality-so2-volcanoes.discoveries.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
---
featuredOn:
- air-quality
id: 'so2-volcanoes'
name: Monitoring Volcanic Sulfur Dioxide Emissions
description: "NASA monitors volcanic emissions and its impact on global air quality"
media:
src: ::file ./volcano--discovery-cover.jpg
alt: Ash cloud over mountain
author:
name: Yosh Ginsu
url: https://unsplash.com/photos/qexZLgMcbPc
pubDate: 2023-01-25
thematics:
- air-quality
---
<Block>
<Prose>
Watching lava and magma flow from an erupting volcano may seem fascinating at first sight. But volcanoes emit dangerous gasses, including [sulfur dioxide](https://so2.gsfc.nasa.gov/so2intro.html) (SO₂), which can be toxic to the human body and the environment.

The most significant natural contributor to sulfur emissions is volcanic degassing, or when large amounts of gas escape through the soil near volcanoes. Volcanic gases are classified as air pollutants in many countries because of their effects on the human respiratory system.

</Prose>
<Figure>
<Image
src={new URL("./Kamoamoa_2011.jpg", import.meta.url).href}
alt="A view of the spattering source from the ground."
/>
<Caption
attrAuthor="United States Geological Survey"
attrUrl="https://commons.wikimedia.org/wiki/File:Kamoamoa_2011-03-07_fountain.jpg"
>
Testing air quality on Kīlauea
</Caption>
</Figure>
</Block>

<ScrollytellingBlock>
<Chapter
center={[0, 0]}
zoom={2}
datasetId='so2'
layerId='OMSO2PCA-COG'
datetime='2005-01-01'
>
## Monitoring air pollution with satellites

Collecting measurements of sulfur dioxide plumes from space is a valuable way to monitor changes in emissions.
</Chapter>
<Chapter
center={[-92.049, -0.7531]}
zoom={4}
datasetId='so2'
layerId='OMSO2PCA-COG'
datetime='2005-01-01'
>
Tracking new and existing sources of SO2 is crucial because it affects environmental processes that directly impact our health, the global ecosystem, atmospheric chemistry, and climate. SO2 irritates the eyes, nose, and lungs. High concentrations of SO2 can result in temporary breathing impairment. Particle deposition from SO2 can damage stone and other materials, including culturally and historically significant objects such as statues and monuments. It can lead to acid rain, damaging foliage and hindering future growth. Volcanic-sourced SO2 contributes between one-quarter and one-third of total SO2 emissions. _Shown on the map: 2005 volcanic activity in the Galápagos islands._
</Chapter>
<Chapter
center={[157.938876, 55.583288]}
zoom={4}
datasetId='so2'
layerId='OMSO2PCA-COG'
datetime='2009-01-01'
>
NASA’s instruments and satellites play a significant role in tracking gasses and emissions. Using satellite data, scientists and researchers have been able to track changes in SO2 emissions since 2005, building a catalog of significant SO2 sources and their emissions. This catalog helps update and improve “bottom-up” inventories used in air quality and climate models, evaluate the efficiency of industrial clean technology solutions in reducing air pollution, and monitor changes in SO2 emissions on a large scale. _Shown on the map: SO2 emissions detected on the Kamchatka Peninsula in 2009._
</Chapter>
<Chapter
center={[-31.6486, 63.454738]}
zoom={3}
datasetId='so2'
layerId='OMSO2PCA-COG'
datetime='2021-01-01'
>
Data is primarily collected from three sources: the OMI ([Ozone Monitoring Instrument](https://aura.gsfc.nasa.gov/omi.html#:~:text=About%20OMI,data%20to%20derive%20tropospheric%20ozone.)) on the NASA [EOS Aura](https://aura.gsfc.nasa.gov/) satellite since 2004; the [Ozone Mapping and Profiler Suite](https://ozoneaq.gsfc.nasa.gov/omps/) (OMPS) on NASA-NOAA’s [NPP Suomi](https://www.nasa.gov/mission_pages/NPP/main/index.html) satellite, which launched in 2011; and the [Tropospheric Monitoring Instrument](http://www.tropomi.eu/) (TROPOMI) on the ESA Copernicus Sentinel-5 Precursor satellite since 2017. These satellites retrieve SO2 vertical column densities (VCDs) from measurements in the UV part of the spectrum. The retrieved SO2 VCDs correspond to 1 km thick sulfur dioxide plumes near the surface. _Shown on the map: Eruption of Fagradalsfjall in Iceland in 2021._
</Chapter>
</ScrollytellingBlock>

<Block>
<Figure>
<iframe
width="100%"
height="100%"
style={{ aspectRatio: "70/50" }}
src="https://maps.disasters.nasa.gov/arcgis/apps/webappviewer/index.html?id=514e11b43f9b493c832c6520f653e523"
title="Volcanoes Around the World"
frameborder="0"

/>
<Caption>
Locations of SO2 emissions, including volcanoes, around the world that NASA monitors.
</Caption>
</Figure>
</Block>

<Block>
<Prose>
Volcanoes are not the only source of SO2; researchers closely monitor emissions from power plants, smelters (where metals are refined), and oil and gas industry-related sources.

The current catalog of major emissions consists of 759 sources, including 477 power plants, 74 smelters, 102 oil and gas-related sources, and 106 volcanoes. This steeply increased from the first catalog, introduced in 2016, which logged 491 sources. This increase can be attributed to the addition of TROPOMI data, which made it possible to track smaller sources. Emissions remained relatively stable for the first 15 years of tracking before declining to 40% in 2019-2021. This transformation can largely be attributed to a massive decline in emissions from volcanic sources in the Pacific: Kilauea in Hawaii; and Aoba and Ambrym in Vanuatu. The data indicates a decline of approximately 50% overall in global SO2 emissions between 2005 and 2021.
</Prose>
<Figure>
<Chart
dataPath={new URL('./so2-emissions.csv', import.meta.url).href}
dateFormat="%Y"
idKey='Type'
xKey='Year'
yKey='Emissions'
/>
<Caption
attrAuthor='NASA'
attrUrl='https://so2.gsfc.nasa.gov/measures.html'
/>
</Figure>
</Block>

<Block>
<Figure>
<Image
src={new URL("./Degassing.jpg", import.meta.url).href}
alt="Degassing at the rim of Vulcano crater at Vulcano Island"
/>
<Caption
attrAuthor="Kritzolina"
attrUrl="https://commons.wikimedia.org/wiki/File:Degassing_at_the_rim_of_Vulcano_crater_at_Vulcano_Island_07.jpg"
>
Degassing activity
</Caption>
</Figure>
<Prose>
## The role of volcanic activity in sulfuric emissions

The largest natural contributor to sulfur emissions is volcanic degassing, or when large amounts of gas escape through the soil near volcanoes. This contributes between one-quarter and one-third of total SO₂ emissions. Emissions remained relatively stable for the first 15 years of tracking before declining up to 40% in 2019-2021. This transformation can largely be attributed to a massive decline in emissions from strong volcanic sources in the Pacific from Kilauea in Hawaii and Aoba and Ambrym in Vanuatu.
</Prose>
</Block>

<Block>
<Prose>
Six new volcanoes were added to the most recent catalog: Planchon-Peteroa in Argentina; Lascar in Chile; Makushin in Alaska; Ebeko in the Kuril Islands; Momotombo in Nicaragua; and La Palma in the Canary Islands. La Palma became active in 2021; however, its major eruption in September-December 2021 was not included in the catalog because the SO2 emissions were highly transient.
</Prose>
<Figure>
<Image
src={new URL("./La_Palma_lava_flows_into_the_sea.jpg", import.meta.url).href}
alt="La Palma lava flows into the sea aerial image"
/>
<Caption
attrAuthor="European Space Agency"
attrUrl="https://commons.wikimedia.org/wiki/File:La_Palma_lava_flows_into_the_sea_(51564701938).jpg"
>
La Palma lava flows into the sea
</Caption>
</Figure>
</Block>

<Block>
<Prose>
For much of Earth’s history, volcanoes have been the primary source of SO2 emissions in the atmosphere. As industrialization spread across the globe, other SO2 emissions sources have eclipsed the relative impact of volcanic SO2. It is important to have resources like the SO2 Emissions Catalog to help us better understand the dynamics of SO2 emission sources.
</Prose>
</Block>
69 changes: 69 additions & 0 deletions discoveries/so2-emissions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Year,Type,Emissions
2005,Oil and Gas,8853.8
2006,Oil and Gas,9007.6
2007,Oil and Gas,9137.9
2008,Oil and Gas,9306.1
2009,Oil and Gas,8302.7
2010,Oil and Gas,8493.3
2011,Oil and Gas,8194
2012,Oil and Gas,7775.6
2013,Oil and Gas,7519.8
2014,Oil and Gas,8147.9
2015,Oil and Gas,8554
2016,Oil and Gas,9106
2017,Oil and Gas,8341.4
2018,Oil and Gas,8031.3
2019,Oil and Gas,7699.7
2020,Oil and Gas,7470.5
2021,Oil and Gas,7467.1
2005,Power Plant,44106
2006,Power Plant,46006.5
2007,Power Plant,48438.3
2008,Power Plant,41873.3
2009,Power Plant,35831.8
2010,Power Plant,35830.1
2011,Power Plant,37955.1
2012,Power Plant,36153.1
2013,Power Plant,35374
2014,Power Plant,30420.4
2015,Power Plant,25151.8
2016,Power Plant,23847.2
2017,Power Plant,21335.3
2018,Power Plant,20935.5
2019,Power Plant,20117.5
2020,Power Plant,19697.5
2021,Power Plant,19365.6
2005,Smelter,9775.7
2006,Smelter,10503.1
2007,Smelter,9211.5
2008,Smelter,8147.2
2009,Smelter,7962.4
2010,Smelter,7354.2
2011,Smelter,6793
2012,Smelter,6592.4
2013,Smelter,7257.4
2014,Smelter,6693.3
2015,Smelter,6056.9
2016,Smelter,5686
2017,Smelter,4904.4
2018,Smelter,5319.1
2019,Smelter,4962.8
2020,Smelter,4900.4
2021,Smelter,4364.3
2005,Volcano,21456
2006,Volcano,19820.4
2007,Volcano,20422.2
2008,Volcano,22513.1
2009,Volcano,21940.3
2010,Volcano,23649.1
2011,Volcano,23027.6
2012,Volcano,23243.8
2013,Volcano,22271.8
2014,Volcano,20651.5
2015,Volcano,21718.4
2016,Volcano,20769.4
2017,Volcano,21171.1
2018,Volcano,17692.7
2019,Volcano,12674.6
2020,Volcano,12564.6
2021,Volcano,13203.6
Binary file added discoveries/volcano--discovery-cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added discoveries/volcano-streetscene-guatemala.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 17 additions & 16 deletions docs/CONTENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ Name of this thematic area. This is used to reference to this thematic area in t
`string`
Brief description of this thematic area. This is displayed on cards and the header of a thematic area.

**usage**
`object[]`
Links to examples for how to use this dataset.

**usage[].url**
`string`
URL for example on how to use this dataset.

**usage[].label**
`string`
A label for the type of interface this link opens. Currently, typical interfaces include a static notebook or a notebook hub.

**usage[].title**
`string`
Title of the page linked to for an example of how to use this dataset.

**media**
`Media`
Image to identify this resource. See [media.md](./frontmatter/media.md).
Expand Down Expand Up @@ -199,6 +183,23 @@ Each content should be formatted like below.
id: thematic-id
```

**usage**
`object[]`
Links to examples for how to use this dataset.

**usage[].url**
`string`
URL for example on how to use this dataset.

**usage[].label**
`string`
A label for the type of interface this link opens. Currently, typical interfaces include a static notebook or a notebook hub.

**usage[].title**
`string`
Title of the page linked to for an example of how to use this dataset.


## Discoveries

Frontmatter configuration for the Discovery
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "veda-config",
"description": "Configuration for Veda",
"version": "0.5.1",
"version": "0.6.0",
"source": "./.veda/ui/app/index.html",
"license": "Apache-2.0",
"scripts": {
Expand Down

0 comments on commit 68a0b15

Please sign in to comment.