Skip to content

Commit

Permalink
use _brand.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Dec 16, 2024
1 parent 927af36 commit f949a3f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 30 deletions.
14 changes: 14 additions & 0 deletions _brand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
color:
palette:
orange: "#cf3f02"
primary: orange

logo:
medium: logo.png

typography:
fonts:
- family: Roboto
source: google
base: Roboto
headings: Roboto
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ website:
page-navigation: true

page-footer:
left: "[developmentseeed.org](https://developmentseed.org)"
right: "This page is built with ❤️ and [Quarto](https://quarto.org/)."
navbar:
right:
Expand Down
39 changes: 23 additions & 16 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ date: 2024-12-13
Tile rendering time has a big impact on the user experience so the goal is to minimize the time it takes to properly render tiles.

## icesat2-boreal collection
<img src="https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2021/10/boreal_forest_above_ground_biomass_density/23753507-5-eng-GB/Boreal_Forest_Above_Ground_Biomass_Density_pillars.png" width="500"/>
<img
src="https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2021/10/boreal_forest_above_ground_biomass_density/23753507-5-eng-GB/Boreal_Forest_Above_Ground_Biomass_Density_pillars.png"
width="500"
/>

The icesat2-boreal collection is a MAAP dataset contains aboveground biomass predictions for the boreal region. The predictions are stored in cloud-optimized geotiffs (COGs) in AWS S3 storage. The collection can be visualized using dynamic tiling applications like `titiler`. For more details about the underlying data, check out the [product page](https://ceos.org/gst/icesat2-boreal-biomass.html).

Expand Down Expand Up @@ -36,20 +39,13 @@ Each test includes warmup iterations and multiple rounds to ensure reliable meas


```{python}
#| label: load
#| echo: false
# | label: load
# | echo: false
import json
from urllib.parse import urlencode
import hvplot.pandas
import matplotlib.colors
import matplotlib.pyplot as plt
import numpy as np
import hvplot.pandas # noqa
import pandas as pd
from folium import Element, TileLayer
from folium.plugins import DualMap
from IPython.display import HTML, display
def load_benchmark_results() -> pd.DataFrame:
Expand Down Expand Up @@ -82,8 +78,9 @@ df = load_benchmark_results()
```

```{python}
#| label: plot
#| echo: false
# | label: plot
# | echo: false
lines = df.hvplot.line(
x="zoom",
Expand Down Expand Up @@ -128,9 +125,18 @@ Try browsing a map with each tile service to get a sense for what the rendering
:::

```{python}
#| echo: false
#| label: synchronized-maps
#| tags: [interactive]
# | echo: false
# | label: synchronized-maps
# | tags: [interactive]
from urllib.parse import urlencode
import matplotlib.colors
import matplotlib.pyplot as plt
import numpy as np
from folium import TileLayer
from folium.plugins import DualMap
from IPython.display import HTML, display
m = DualMap(location=(65, 30), zoom_start=6, tiles="openstreetmap")
Expand Down Expand Up @@ -173,6 +179,7 @@ mosaic_json_tiles = TileLayer(
def apply_gamma(color, gamma):
return (np.array(color) ** gamma).tolist()
cmap = plt.get_cmap("gist_earth_r")
colors = cmap(np.linspace(0, 1, 10)) # Sample 10 colors for gradient
Expand Down
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 0 additions & 14 deletions styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*-- scss:defaults --*/
// Override Bootstrap and Quarto variables
$primary: #cf3f02;
$link-color: $primary;
$link-hover-color: lighten($primary, 10%);
Expand All @@ -21,16 +20,3 @@ ul {
background: $primary;
color: $white;
}

// Utility classes
.scrollable {
max-height: 60%;
overflow-y: auto;
overflow-x: auto;
}

.hide-title {
h2 {
display: none;
}
}

0 comments on commit f949a3f

Please sign in to comment.