Platform
Resources
Pricing
Sign in
Get started
maanchu
Workspace
Fork
Public
By
maanchu
Edited
Jul 3, 2024
1 fork
Insert cell
1
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
1
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
1
Insert cell
Insert cell
land50m
=
d3
.
json
(
"https://unpkg.com/world-atlas@2.0.2/land-50m.json "
)
Insert cell
land
=
topojson
.
feature
(
land50m
,
land50m
.
objects
.
land
)
Insert cell
###
Get all values (activity) for legend
Insert cell
valuesForLegend
=
dataWithinRadius
.
map
(
(
d
)
=>
d
.
activity
)
Insert cell
Insert cell
Insert cell
Insert cell
dataRaw
=
getMeasurementData
(
params
)
Insert cell
Insert cell
dataInterim
=
dataRaw
.
filter
(
(
d
)
=>
d
.
detection
!=
"ND"
)
Insert cell
dataInterim2
=
dataInterim
.
map
(
(
d
)
=>
(
{
...
d
,
activity
:
(
d
[
"detection"
]
==
"<"
)
?
d
[
"activity"
]
*
0.5
:
d
[
"activity"
]
}
)
)
Insert cell
Insert cell
Insert cell
Insert cell
center
=
[
-
5
,
53.5
]
Insert cell
circle
=
d3
.
geoCircle
(
)
.
center
(
center
)
.
radius
(
(
kms
/
(
6371
*
Math
.
PI
*
2
)
)
*
360
)
.
precision
(
10
)
(
)
Insert cell
dataWithinRadius
=
data
.
filter
(
(
d
)
=>
d3
.
geoDistance
(
[
d
.
longitude
,
d
.
latitude
]
,
center
)
<
kms
/
6371
)
Insert cell
Insert cell
dataInBoxes
=
dataWithinRadius
.
filter
(
(
d
)
=>
d
.
roi
!=
"Elsewhere"
)
.
sort
(
(
a
,
b
)
=>
a
.
begPeriod
-
b
.
begPeriod
)
Insert cell
Insert cell
EISPolygon
=
turf
.
polygon
(
[
[
[
-
4.5
,
52
]
,
[
-
2.5
,
52
]
,
[
-
2.5
,
55.5
]
,
[
-
4.5
,
55.5
]
,
[
-
4.5
,
52
]
]
]
,
{
name
:
"Eastern Irish Sea"
}
)
Insert cell
WOIPolygon
=
turf
.
polygon
(
[
[
[
-
12
,
51
]
,
[
-
6.5
,
51
]
,
[
-
6.5
,
56
]
,
[
-
12
,
56
]
,
[
-
12
,
51
]
]
]
,
{
name
:
"West of Ireland"
}
)
Insert cell
WISPolygon
=
turf
.
polygon
(
[
[
[
-
6.5
,
52
]
,
[
-
4.5
,
52
]
,
[
-
4.5
,
55.5
]
,
[
-
6.5
,
55.5
]
,
[
-
6.5
,
52
]
]
]
,
{
name
:
"Western Irish Sea "
}
)
Insert cell
// // Get Region Of Interest
function
getROI
(
point
,
regions
)
{
const
region
=
regions
.
find
(
(
region
)
=>
{
return
turf
.
booleanPointInPolygon
(
turf
.
point
(
point
)
,
region
)
;
}
)
;
return
region
?
region
.
properties
.
name
:
"Elsewhere"
;
}
Insert cell
Insert cell
import
{
getMeasurementData
,
luts
}
from
"@maris-iaea/api"
Insert cell
turf
=
require
(
"@turf/turf@7"
)
Insert cell
Insert cell
function
whatUnit
(
samptypeId
)
{
switch
(
samptypeId
)
{
case
1
:
return
"Bq/m<sup>3</sup>"
case
2
:
return
"Bq/kg f.w."
case
3
:
return
"Bq/kg d.w."
default
:
return
"Unknown"
}
}
Insert cell
function
getDryWetFactor
(
biogroupId
)
{
switch
(
biogroupId
)
{
case
11
:
return
0.167278970397589
case
4
:
return
0.232254394570392
case
2
:
return
0.226485185185185
case
14
:
return
0.169374196277088
case
13
:
return
0.232484162739303
case
12
:
return
0.181976062091503
case
6
:
return
0.194611473702632
case
5
:
return
0.460238713453779
default
:
return
1
}
}
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
Show 1 comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sampleType
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nuclide
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
aggType
Edit
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
Edit
Show 1 comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
globalMap
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
logscale
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
hexTimeChart
Edit
Show 1 comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
land50m
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
valuesForLegend
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
params
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataRaw
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
dataInterim
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataInterim2
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
data
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
center
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
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
dataInBoxes
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
EISPolygon
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
WOIPolygon
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
WISPolygon
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
getROI
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
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
turf
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
whatUnit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
getDryWetFactor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML