Skip to content

Commit

Permalink
add wip gdaldem histojams
Browse files Browse the repository at this point in the history
  • Loading branch information
kovaca committed Oct 27, 2024
1 parent 73fe0b6 commit 15a39b6
Show file tree
Hide file tree
Showing 5 changed files with 1,039 additions and 2 deletions.
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@observablehq/framework": "^1.10.1",
"d3": "^7.9.0",
"d3-dsv": "^3.0.1",
"d3-time-format": "^4.1.0"
"d3-time-format": "^4.1.0",
"dicopal": "^0.8.1"
},
"devDependencies": {
"rimraf": "^5.0.5"
Expand Down
20 changes: 20 additions & 0 deletions src/data/dicopaldata.json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import * as dicopal from "dicopal";

const div = dicopal.getPalettes({ type: "diverging", number: 7 });
const seq = dicopal.getPalettes({ type: "sequential", number: 7 });
const custom = [
{"type":"sequential","colors":["#E4EEC6","#C3E0A7","#8DCB81","#64AD66","#378C4D","#296634","#1C401F"]},
{"type":"sequential","colors":["#D9E9F5","#BACCE8","#8D9CCD","#6678B8","#3C59A6","#214080","#001C5E"]},
{"type":"sequential","colors":["#E1F0DC","#BCE1D0","#94D2C4","#5EB4B4","#0098A6","#03707D","#054957"]},
{"type":"sequential","colors":["#FEE1D6","#FEC0BF","#F496A0","#E16E87","#C64974","#A32A64","#77184F"]},
{"type":"sequential","colors":["#FAECB7","#FDD881","#FCB817","#F49D21","#EA8026","#BA4F28","#8B1B26"]},
{"type":"diverging","colors":["#8B1B26","#BA4F28","#F08E23","#FCDD8E","#FBF7EA","#B6DED2","#6CAFAC","#07717D","#054957"]},
{"type":"diverging","colors":["#5A0C0C","#A03035","#E1746F","#F9C5BC","#FBF7EA","#CFDBE8","#90A2D1","#3A56A3","#001C5E"]},
{"type":"diverging","colors":["#5C1339","#A33166","#D783A0","#FCD5D2","#FBF7EA","#E5E8B3","#84C77B","#2F8749","#1C401F"]}
]

const cmaps = [...custom, ...seq, ...div]



process.stdout.write(JSON.stringify(cmaps));
Loading

0 comments on commit 15a39b6

Please sign in to comment.