Skip to content

Commit f457303

Browse files
committed
Merge branch 'main' into geotiff-with-dtype-next
2 parents 988bd4c + 2139b26 commit f457303

21 files changed

Lines changed: 5800 additions & 60 deletions

deps.edn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@
5959

6060
org.soulspace/qclojure {:mvn/version "0.22.0"}
6161
org.babashka/http-client {:mvn/version "0.4.22"}
62+
io.github.babashka/sci.nrepl {:mvn/version "0.0.2"}
6263
com.github.danielsz/bioscoop {:mvn/version "1.0.5"}
6364
yamlscript/core {:git/url "https://github.com/yaml/yamlscript"
6465
:git/sha "ed7adfbf90a39f379d5a7193bb2e4bdd7f0eecf8"
6566
:deps/root "core"}
67+
68+
xyz.zcaudate/std.lang {:mvn/version "4.0.9"}
69+
xyz.zcaudate/rt.basic {:mvn/version "4.0.9"}
6670
}
6771

6872
:mvn/repos {"osgeo" {:url "https://repo.osgeo.org/repository/release/"}}

site/gis/geotiff_files/image0.png

2.45 MB
Loading

site/gis/geotiff_files/image1.png

982 KB
Loading

site/gis/geotiff_files/image2.png

376 KB
Loading

site/gis/geotiff_files/image3.png

1.95 MB
Loading

site/gis/geotiff_files/image4.png

2.84 MB
Loading

site/gis/geotiff_files/md-default5.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/gis/geotiff_files/md-default6.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
^{:kindly/hide-code true
2+
:clay {:title "# Noway Clojure Meetup Dec. 2025: Data analysis"
3+
:quarto {:author [:com.github/teodorlu :daslu]
4+
:description "Meetup notes"
5+
:category :clojure
6+
:type :post
7+
:date "2025-12-03"
8+
:tags [:dsp :math :gapminder]
9+
:draft true}}}
10+
(ns clojure-norway.meetup-2025-12
11+
(:require [scicloj.kindly.v4.api :as kindly]
12+
[scicloj.kindly.v4.kind :as kind]
13+
[scicloj.metamorph.ml.rdatasets :as rdatasets]
14+
[scicloj.tableplot.v1.plotly :as plotly]
15+
[tablecloth.api :as tc]))
16+
17+
;; - Has GDP per capita improved since 1950?
18+
;; - Are trends different per continent?
19+
20+
(def ds
21+
(-> (rdatasets/gapminder-gapminder)
22+
(tc/order-by :year)))
23+
24+
(-> ds
25+
(tc/order-by :year)
26+
(plotly/layer-line {:=x :year
27+
:=y :gdp-percap
28+
:=color :country}))
29+
30+
(def kuwait? (comp #{"Kuwait"} :country))
31+
32+
(def ds-kuwait
33+
(-> ds
34+
(tc/order-by [:country :year])
35+
(tc/select-rows kuwait?)))
36+
37+
;; Why does gdp per capita decrease in Kuwait?
38+
39+
(-> ds-kuwait
40+
(plotly/layer-line {:=x :year
41+
:=y :gdp-percap})
42+
(plotly/layer-line {:=x :year
43+
:=y :pop}))
44+
45+
;; Population has increased sharply.
46+
47+
;; What about total gdp?
48+
49+
(-> ds-kuwait
50+
(tc/* :gdp [:gdp-percap :pop])
51+
(plotly/layer-line {:=x :year
52+
:=y :gdp}))
53+
54+
;; GDP has been rising, overall, even if GDP per capita has been falling.
55+
56+
(tc/head ds)
57+
58+
(defn select-continent [table continent]
59+
(-> table
60+
(tc/select-rows (comp #{continent} :continent))))
61+
62+
(defn view-continent [continent]
63+
[continent
64+
(-> ds
65+
(select-continent continent)
66+
(plotly/layer-line {:=x :year
67+
:=y :gdp-percap
68+
:=color :country}))])
69+
70+
(def continents
71+
(into (sorted-set)
72+
(tc/column ds :continent)))
73+
74+
continents
75+
76+
(mapv view-continent continents)
Binary file not shown.

0 commit comments

Comments
 (0)