Platform
Resources
Pricing
Sign in
Contact us
francobollo
Applying GIS, Data Vis. and Deep Learning to environmental science and nuclear emergency responses
Workspace
Fork
Public
By
francobollo
Edited
Jul 26, 2024
2 forks
1
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Adjust it manually based on histogram
// activityBins = [1, 10, 100, 1000, 10000] // FNDPP
activityBins
=
[
1
,
20
,
1000
,
10000
]
// FNDPP
Insert cell
// Adjust it based on known events, behaviours, ...
timePeriod
=
[
1960
,
2010
,
2011
,
2012
,
2013
,
2015
,
2017
,
2021
]
// FNDPP
// timePeriod = [1960, 1970, 1980, 1990, 2000, 2010, 2021] // North sea area
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataWithinRadius
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data
=
dataRaw
.
map
(
(
d
)
=>
(
{
area
:
d
[
"areaname"
]
,
nuclide
:
d
[
"nusymbol"
]
,
lon
:
d
[
"longitude"
]
,
lat
:
d
[
"latitude"
]
,
time
:
d
[
"samplingyear"
]
,
activity
:
d
[
"activity"
]
,
unit
:
d
[
"unit"
]
,
depth
:
d
[
"sampdepth"
]
}
)
)
Insert cell
dataNuclide
=
data
.
filter
(
(
d
)
=>
d
.
nuclide
==
nuclide
)
Insert cell
Insert cell
dataDepth
=
dataNuclide
.
filter
(
(
d
)
=>
d
.
depth
<=
depth
)
Insert cell
Insert cell
minYear
=
d3
.
min
(
dataWithinRadius
.
map
(
(
d
)
=>
d
.
time
)
)
Insert cell
maxYear
=
d3
.
max
(
dataWithinRadius
.
map
(
(
d
)
=>
d
.
time
)
)
Insert cell
timeDomain
=
timePeriod
.
slice
(
1
,
-
1
)
Insert cell
timeRange
=
d3
.
pairs
(
timePeriod
)
.
map
(
(
d
)
=>
`${
d
[
0
]
} - ${
d
[
1
]
}`
)
Insert cell
timeScale
=
d3
.
scaleThreshold
(
)
.
domain
(
timeDomain
)
.
range
(
timeRange
)
Insert cell
timeScale
(
2011
)
Insert cell
world
=
(
await
fetch
(
"https://cdn.jsdelivr.net/npm/world-atlas@2/land-50m.json"
)
)
.
json
(
)
Insert cell
land
=
topojson
.
feature
(
world
,
world
.
objects
.
land
)
Insert cell
circle
=
d3
.
geoCircle
(
)
.
center
(
center
)
.
radius
(
(
kms
/
(
6371
*
Math
.
PI
*
2
)
)
*
360
)
.
precision
(
10
)
(
)
Insert cell
// dataWithinRadiusTurf = dataNuclide.filter((d) =>
// turf.booleanWithin(turf.point([d.lon, d.lat]), circle)
// )
Insert cell
// isInCircle = geoContainsCache(circle)
Insert cell
5
// dataWithinRadius = dataNuclide.filter((d) =>
// // d3.geoContains(circle, [d.lon, d.lat])
// isInCircle([d.lon, d.lat])
// )
Insert cell
dataWithinRadius
=
dataDepth
.
filter
(
(
d
)
=>
d3
.
geoDistance
(
[
d
.
lon
,
d
.
lat
]
,
center
)
<
kms
/
6371
)
Insert cell
Insert cell
// import { geoContainsCache } from "@fil/another-hex-map"
Insert cell
// source: https://observablehq.com/@mkfreeman/plot-tooltip
import
{
Plot
}
from
"@mkfreeman/plot-tooltip"
Insert cell
Insert cell
// simple = import("simple-statistics@7")
Insert cell
// turf = require("@turf/turf@6")
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nuclide
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
centers
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
centerLabel
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
hexBinSize
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nMapPerRow
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
activityBins
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
timePeriod
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
kms
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
depth
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
activity
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yScaleType
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
hexTimeChart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sphere
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
width
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataRaw
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataNuclide
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
unitsLut
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataDepth
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
center
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
minYear
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maxYear
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
timeDomain
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
timeRange
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
timeScale
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
world
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
land
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
circle
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Show 5 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataWithinRadius
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
topojson
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML