Skip to content

Instantly share code, notes, and snippets.

@somm-doe
somm-doe / spec.json
Created March 16, 2023 17:12
Analyse
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"transform": [
{
"fold": [
"Klima",
"Inflation",
"Flüchtlinge",
"Arbeitslosigkeit",
"Renten",
@somm-doe
somm-doe / nominatim-reverse-geocode.js
Created December 10, 2019 11:50 — forked from ilokhov/nominatim-reverse-geocode.js
Node.js script for querying city districts for a list of geo coordinates using Nominatim API
const fs = require('fs');
const request = require('request');
const customHeaderRequest = request.defaults({
headers: { 'User-Agent': 'Reverse geocode search' }
});
let output = '';
// expected input format in input_data.csv
@somm-doe
somm-doe / greencities.js
Last active April 28, 2019 10:54 — forked from funkeinteraktiv/greencities.js
Greenest cities Germany / EarthEngine script for: http://interaktiv.morgenpost.de/gruenste-staedte-deutschlands
// tables with germany shape and the cities we are using in our application
var germany = ee.FeatureCollection('ft:1KDrYXBDlAx1fhcfmWRx7u_qqN2O_gwBNInjnGmnZ')
var cities = ee.FeatureCollection('ft:1w4PgU3okfzwKFEIpH32oPMlOtei6hUWa9tkXv5Rt');
// landsat properties we need to create our image collection over different years
// we use a feature collection here, because we can easily filter it
var landsats = ee.FeatureCollection([
ee.Feature(null, { collection: ee.ImageCollection('LANDSAT/LT5_L1T_TOA'), nir: 'B4', red: 'B3', from: 1984, to: 1992 }),
ee.Feature(null, { collection: ee.ImageCollection('LANDSAT/LT4_L1T_TOA'), nir: 'B4', red: 'B3', from: 1992, to: 1994 }),
ee.Feature(null, { collection: ee.ImageCollection('LANDSAT/LT5_L1T_TOA'), nir: 'B4', red: 'B3', from: 1994, to: 1999 }),