This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'/> | |
<title>Tree Cover Loss 3.0 Vector Tiles POC</title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.0/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.1.0/mapbox-gl.css' rel='stylesheet'/> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import PurePath | |
import subprocess as sp | |
from parallelpipe import stage | |
import logging | |
import glob | |
import sys | |
@stage(workers=96) | |
def calc(cabon_tiles, area_tiles): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 240, | |
"padding": 2, | |
"title": { | |
"text": "Land Cover Composition", | |
"font": "Fira Sans", | |
"fontSize": 16, | |
"offset": 20, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 140, | |
"padding": 2, | |
"data": [ | |
{ | |
"name": "histogram", | |
"format": { | |
"property": "histograms[0].counts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"webmap": "0ef9a90ee2cb48bb9b66bbcc6831278e", | |
"title": "ETHIOPIA TREE-BASED LANDSCAPE RESTORATION POTENTIAL ATLAS", | |
"subtitle": "Ministry of Environment, Forest & Climate Change", | |
"logoUrl": "http://mefcc.gov.et/wp-content/uploads/2017/09/ministry-of-environment-forest-and-climate-change-logo7.png", | |
"logoLinkUrl": "http://mefcc.gov.et/", | |
"aboutLinkUrl": "", | |
"downloadLinkUrl": "", | |
"printServiceUrl": "https://gis.forest-atlas.org/server/rest/services/print/ExportWebMap/GPServer/Export%20Web%20Map", | |
"mapThemeIds": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.json", | |
"width": 400, | |
"height": 200, | |
"padding": 5, | |
"title": "population trend", | |
"signals": [ | |
{ | |
"name": "Species", | |
"value": "Loxodonta cyclotis", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 75, | |
"padding": 2, | |
"title": { | |
"text": "Tree Cover", | |
"font": "Fira Sans", | |
"fontSize": 16, | |
"offset": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 75, | |
"padding": 2, | |
"title": { | |
"text": "Average Annual Rainfall", | |
"font": "Fira Sans", | |
"fontSize": 16, | |
"offset": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 75, | |
"padding": 2, | |
"title": { | |
"text": "Population Density", | |
"font": "Fira Sans", | |
"fontSize": 16, | |
"offset": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.0.json", | |
"width": 240, | |
"height": 75, | |
"padding": 2, | |
"title": { | |
"text": "Land Use-Land Cover", | |
"font": "Fira Sans", | |
"fontSize": 16, | |
"offset": 0, |
NewerOlder