Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1010 lines (904 loc) · 42.9 KB
/
Copy pathindex.html
File metadata and controls
1010 lines (904 loc) · 42.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>DisSModel — Discrete Spatial Modeling Ecosystem</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@300;400;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--blue-dark: #1a2e4a;
--blue-mid: #2e6fb5;
--blue-light: #4a9fd4;
--green: #4a9e4a;
--green-light:#6abf6a;
--amber: #e8a020;
--red: #c0392b;
--bg: #f5f7f2;
--bg-card: #ffffff;
--text: #1a2e4a;
--muted: #5a7090;
--border: #dde4ee;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Outfit', sans-serif;
background: var(--bg);
color: var(--text);
overflow-x: hidden;
}
/* ── NAV ── */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 0 3rem;
height: 64px;
background: rgba(245,247,242,0.88);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
display: flex; align-items: center; gap: 10px;
font-size: 1.15rem; font-weight: 700; color: var(--blue-dark);
text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
text-decoration: none; color: var(--muted);
font-size: 0.9rem; font-weight: 500;
transition: color .2s;
}
.nav-links a:hover { color: var(--blue-mid); }
.nav-cta {
background: var(--blue-mid); color: #fff !important;
padding: 6px 18px; border-radius: 6px;
transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: #fff !important; }
/* ── HERO ── */
.hero {
min-height: 100vh;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center;
padding: 120px 2rem 80px;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute; inset: 0;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 40px 40px;
opacity: .5;
pointer-events: none;
}
.blob {
position: absolute; border-radius: 50%;
filter: blur(80px); pointer-events: none; opacity: .18;
}
.blob-1 {
width: 500px; height: 500px;
background: var(--blue-mid);
top: -100px; left: -150px;
animation: drift 12s ease-in-out infinite alternate;
}
.blob-2 {
width: 400px; height: 400px;
background: var(--green);
bottom: 0; right: -100px;
animation: drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
from { transform: translate(0,0) scale(1); }
to { transform: translate(40px, 30px) scale(1.08); }
}
.hero-badge {
display: inline-flex; align-items: center; gap: 8px;
background: #fdf3e0; border: 1px solid #f0d9a8;
color: #a86f0c; border-radius: 999px;
font-size: .78rem; font-weight: 600; letter-spacing: .04em;
padding: 5px 14px; margin-bottom: 2rem;
animation: fadeUp .6s ease both;
}
.hero-badge span { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; display: inline-block; }
.hero-logo-wrap {
display: flex; align-items: center; justify-content: center; gap: 20px;
margin-bottom: 1.5rem;
animation: fadeUp .7s .1s ease both;
}
.hero-sub {
font-size: clamp(1rem, 2.5vw, 1.25rem);
color: var(--muted); font-weight: 300;
max-width: 600px; margin: 1.2rem auto 0;
line-height: 1.6;
animation: fadeUp .7s .2s ease both;
}
.hero-actions {
display: flex; gap: 1rem; flex-wrap: wrap;
justify-content: center; margin-top: 2.5rem;
animation: fadeUp .7s .3s ease both;
}
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 28px; border-radius: 8px;
font-family: 'Outfit', sans-serif;
font-size: .95rem; font-weight: 600;
text-decoration: none; transition: all .2s;
cursor: pointer;
}
.btn-primary {
background: var(--blue-dark); color: #fff;
box-shadow: 0 4px 20px rgba(26,46,74,.25);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); }
.btn-secondary {
background: #fff; color: var(--blue-dark);
border: 1.5px solid var(--border);
box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.btn-secondary:hover { border-color: var(--blue-mid); transform: translateY(-2px); }
.pip-block {
margin-top: 2.5rem;
animation: fadeUp .7s .4s ease both;
}
.pip-cmd {
display: inline-flex; align-items: center; gap: 12px;
background: var(--blue-dark); color: #e0eeff;
font-family: 'DM Mono', monospace; font-size: .9rem;
padding: 12px 24px; border-radius: 8px;
border: 1px solid rgba(255,255,255,.08);
}
.pip-cmd .pip-label { color: var(--green-light); }
.pip-note {
margin-top: .9rem;
font-size: .82rem; color: var(--muted);
}
.copy-btn {
background: none; border: none; cursor: pointer;
color: #7aa8d4; font-size: 1rem;
padding: 2px 4px; border-radius: 4px;
transition: color .2s;
}
.copy-btn:hover { color: #fff; }
.copy-confirm { font-size: .75rem; color: var(--green-light); opacity: 0; transition: opacity .3s; }
.copy-confirm.show { opacity: 1; }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── SECTION COMMONS ── */
section { padding: 100px 2rem; }
.section-label {
font-size: .75rem; font-weight: 700; letter-spacing: .12em;
text-transform: uppercase; color: var(--blue-mid);
margin-bottom: .75rem;
}
.section-title {
font-size: clamp(1.8rem, 4vw, 2.8rem);
font-weight: 800; line-height: 1.1;
letter-spacing: -.02em; color: var(--blue-dark);
margin-bottom: 1rem;
}
.section-desc {
color: var(--muted); font-size: 1.05rem;
max-width: 560px; line-height: 1.7;
}
.container { max-width: 1120px; margin: 0 auto; }
/* ── STATUS NOTE ── */
.status-note {
margin-top: 1.5rem;
max-width: 620px;
background: #fdf3e0; border: 1px solid #f0d9a8;
border-left: 4px solid var(--amber);
border-radius: 8px;
padding: 1rem 1.25rem;
font-size: .9rem; line-height: 1.6;
color: #6b4a0a;
}
.status-note a { color: #6b4a0a; font-weight: 600; }
/* ── REPOS ── */
#repos { background: var(--bg); }
.repos-header { margin-bottom: 3.5rem; }
/* loading state */
.repos-loading {
display: flex; align-items: center; gap: 12px;
color: var(--muted); font-size: .95rem;
padding: 2rem 0;
}
.spinner {
width: 20px; height: 20px;
border: 2px solid var(--border);
border-top-color: var(--blue-mid);
border-radius: 50%;
animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.repos-error {
background: #fff3f3; border: 1px solid #f5c6c6;
border-radius: 10px; padding: 1.25rem 1.5rem;
color: var(--red); font-size: .9rem;
}
.repos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.repo-card {
background: #fff;
border: 1.5px solid var(--border);
border-radius: 14px;
padding: 1.75rem;
text-decoration: none; color: inherit;
display: flex; flex-direction: column; gap: .75rem;
transition: all .25s;
position: relative; overflow: hidden;
}
.repo-card::after {
content: '';
position: absolute; top: 0; left: 0; right: 0;
height: 3px;
background: linear-gradient(90deg, var(--blue-mid), var(--green));
transform: scaleX(0); transform-origin: left;
transition: transform .3s;
}
.repo-card:hover { border-color: var(--blue-mid); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,46,74,.1); }
.repo-card:hover::after { transform: scaleX(1); }
.repo-card.featured {
background: var(--blue-dark); color: #fff;
border-color: transparent;
grid-column: span 2;
}
.repo-card.featured .repo-desc { color: #a0c0e0; }
.repo-card.featured .repo-tag { background: rgba(255,255,255,.12); color: #c0dcf4; }
.repo-card.featured .repo-meta { color: #5a8ab8; }
.repo-card.featured::after { background: linear-gradient(90deg, var(--green-light), var(--blue-light)); }
.repo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.repo-icon {
width: 44px; height: 44px; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
font-size: 1.4rem; flex-shrink: 0;
background: #e8f0fb;
}
.repo-card.featured .repo-icon { background: rgba(255,255,255,.15); }
.repo-arrow { color: var(--muted); font-size: 1.1rem; transition: transform .2s; }
.repo-card:hover .repo-arrow { transform: translate(3px,-3px); }
.repo-card.featured .repo-arrow { color: #a0c0e0; }
.repo-name {
font-size: 1.05rem; font-weight: 700;
font-family: 'DM Mono', monospace;
color: var(--blue-dark);
}
.repo-card.featured .repo-name { color: #fff; }
.repo-desc { font-size: .9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.repo-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.repo-tag {
font-size: .72rem; font-weight: 600; letter-spacing: .04em;
background: var(--border); color: var(--muted);
padding: 3px 10px; border-radius: 999px;
}
.repo-bench { display: flex; gap: .75rem; flex-wrap: wrap; }
.bench-pill {
display: inline-flex; align-items: center; gap: 5px;
background: rgba(74,158,74,.12); color: var(--green);
border: 1px solid rgba(74,158,74,.25);
font-size: .72rem; font-weight: 700;
padding: 3px 10px; border-radius: 999px;
font-family: 'DM Mono', monospace;
}
.repo-meta {
font-size: .78rem; color: var(--muted);
display: flex; align-items: center; gap: 12px;
}
.repo-meta-item { display: flex; align-items: center; gap: 4px; }
/* ── repo extra links ── */
.repo-links {
display: flex; gap: .5rem; flex-wrap: wrap;
margin-top: .25rem;
}
.repo-link {
display: inline-flex; align-items: center; gap: 4px;
font-size: .75rem; font-weight: 600;
padding: 4px 12px; border-radius: 6px;
text-decoration: none;
background: var(--bg); color: var(--blue-mid);
border: 1.5px solid var(--border);
transition: all .2s;
/* stop the card's <a> from swallowing the click */
position: relative; z-index: 1;
}
.repo-link:hover {
background: var(--blue-mid); color: #fff;
border-color: var(--blue-mid);
transform: translateY(-1px);
}
.repo-card.featured .repo-link {
background: rgba(255,255,255,.1);
color: #c0dcf4;
border-color: rgba(255,255,255,.2);
}
.repo-card.featured .repo-link:hover {
background: rgba(255,255,255,.25); color: #fff;
border-color: rgba(255,255,255,.4);
}
/* ── ARCHITECTURE ── */
#architecture { background: #fff; }
.arch-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.arch-diagram {
background: var(--blue-dark);
border-radius: 16px;
padding: 2rem;
font-family: 'DM Mono', monospace;
font-size: .82rem; line-height: 1.9;
color: #a0c8e8;
border: 1px solid rgba(255,255,255,.06);
box-shadow: 0 20px 60px rgba(26,46,74,.2);
white-space: pre;
overflow-x: auto;
}
.arch-diagram .c-green { color: var(--green-light); }
.arch-diagram .c-blue { color: #7ac0f4; }
.arch-diagram .c-white { color: #e8f4ff; font-weight: 500; }
.arch-diagram .c-dim { color: #4a6a8a; }
.arch-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.arch-point { display: flex; gap: 1rem; }
.arch-dot {
width: 10px; height: 10px; border-radius: 50%;
flex-shrink: 0; margin-top: 6px;
}
.arch-dot.blue { background: var(--blue-mid); }
.arch-dot.green { background: var(--green); }
.arch-dot.amber { background: var(--amber); }
.arch-point-text h4 { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.arch-point-text p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
/* ── USE CASE ── */
#usecase { background: var(--bg); }
.usecase-sub {
display: grid;
grid-template-columns: 280px 1fr;
gap: 2rem;
align-items: start;
margin-bottom: 1rem;
}
.usecase-sub-label p {
font-size: .88rem; color: var(--muted);
line-height: 1.6; margin-top: .6rem;
}
.sub-badge {
display: inline-block;
font-size: .75rem; font-weight: 700; letter-spacing: .08em;
text-transform: uppercase; padding: 4px 12px;
border-radius: 6px;
}
.sub-badge.blue { background: #e8f0fb; color: var(--blue-mid); }
.sub-badge.green { background: #e8f4e8; color: var(--green); }
.sub-badge.gray { background: var(--border); color: var(--muted); }
.usecase-arrow {
font-size: 1.5rem; color: var(--border);
text-align: center; padding: .5rem 0 1.5rem;
padding-left: 280px;
}
.usecase-code {
background: var(--blue-dark);
border-radius: 10px;
padding: 1.5rem 1.75rem;
font-family: 'DM Mono', monospace; font-size: .8rem; line-height: 1.85;
color: #a0c8e8;
white-space: pre;
overflow-x: auto;
border: 1px solid rgba(255,255,255,.06);
box-shadow: 0 8px 30px rgba(26,46,74,.12);
}
.tabs-wrap { width: 100%; }
.tab-btns { display: flex; gap: .5rem; margin-bottom: 0; }
.tab-btn {
background: var(--bg); border: 1.5px solid var(--border);
border-bottom: none;
color: var(--muted); font-family: 'Outfit', sans-serif;
font-size: .85rem; font-weight: 600;
padding: 7px 18px; border-radius: 8px 8px 0 0;
cursor: pointer; transition: all .2s;
}
.tab-btn.active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.tab-btn:not(.active):hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.tab-panel { border-radius: 0 8px 8px 8px !important; }
/* ── FOOTER ── */
footer {
background: var(--blue-dark); color: #a0c0e0;
padding: 60px 2rem 40px;
}
.footer-inner {
max-width: 1120px; margin: 0 auto;
display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
font-size: .8rem; font-weight: 700; letter-spacing: .1em;
text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: #7a9ab8; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
max-width: 1120px; margin: 2.5rem auto 0;
padding-top: 1.5rem;
border-top: 1px solid rgba(255,255,255,.08);
display: flex; justify-content: space-between; align-items: center;
font-size: .8rem; color: #4a6a88;
}
/* repo list in footer — populated dynamically */
#footer-repo-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 768px) {
nav { padding: 0 1.25rem; }
.nav-links { display: none; }
.repo-card.featured { grid-column: span 1; }
.arch-wrap { grid-template-columns: 1fr; gap: 2rem; }
.footer-inner { grid-template-columns: 1fr; gap: 2rem; }
.footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
.usecase-sub { grid-template-columns: 1fr; }
.usecase-arrow { padding-left: 0; }
}
</style>
</head>
<body>
<!-- ── NAV ── -->
<nav>
<a class="nav-logo" href="#">
<img src="dissmodel_transparent.png" alt="DisSModel" style="width:32px;height:32px;object-fit:contain;">
DisSModel
</a>
<ul class="nav-links">
<li><a href="#ecosystem">Ecosystem</a></li>
<li><a href="#repos">Repositories</a></li>
<li><a href="repository-map.html">Repository map</a></li>
<li><a href="#architecture">Architecture</a></li>
<li><a href="#usecase">Case Study</a></li>
<li><a href="https://lambdageo.github.io/geospatial-modeling-python/">Book</a></li>
<li><a href="https://dissmodel.github.io/dissmodel/" class="nav-cta">Documentation</a></li>
</ul>
</nav>
<!-- ── HERO ── -->
<section class="hero">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="hero-badge"><span></span> Open Source · MIT License · Actively developed</div>
<div class="hero-logo-wrap">
<img src="dissmodel_transparent.png" alt="DisSModel — Discrete Spatial Modeling Ecosystem" style="height:190px; object-fit:contain;">
</div>
<p class="hero-sub" style="margin-top:0.5rem;">
A Python ecosystem for spatially explicit dynamic modeling —
Cellular Automata, System Dynamics, and Land Use & Cover Change simulation.
</p>
<p class="hero-sub" style="margin-top:0.9rem; font-size:0.95rem; max-width:640px;">
An independent, unofficial Python alternative to
<a href="https://github.com/terrame" target="_blank" rel="noopener" style="color:inherit; font-weight:700; text-decoration:underline;">TerraME</a> — with equivalent
packages for Cellular Automata (<code>dissmodel-ca</code>) and System Dynamics
(<code>dissmodel-sysdyn</code>), and Agent-Based Modeling (<code>dissmodel-abm</code>) on the way.
</p>
<div class="hero-actions">
<a href="https://dissmodel.github.io/dissmodel/" class="btn btn-primary">📖 Documentation</a>
<a href="https://lambdageo.github.io/geospatial-modeling-python/" class="btn btn-secondary">📚 Book (in progress)</a>
<a href="https://github.com/DisSModel" class="btn btn-secondary">💻 GitHub Organization</a>
</div>
<div class="pip-block">
<div class="pip-cmd">
<span class="pip-label">$</span>
<span id="pip-text">pip install dissmodel</span>
<button class="copy-btn" onclick="copyPip()" title="Copy to clipboard">⧉</button>
<span class="copy-confirm" id="copy-confirm">Copied!</span>
</div>
<p class="pip-note">Release notes in the <a href="https://github.com/DisSModel/dissmodel/blob/main/CHANGELOG.md" style="color:inherit; text-decoration:underline;">changelog</a>.</p>
<p class="pip-note" style="margin-top:.35rem;">If DisSModel is useful in your work, you can cite it: <a href="https://doi.org/10.5281/zenodo.23246106" style="color:inherit; text-decoration:underline;">doi:10.5281/zenodo.23246106</a></p>
</div>
</section>
<!-- ── ECOSYSTEM MAP ── -->
<section id="ecosystem" style="background:#fff;">
<div class="container">
<p class="section-label">Ecosystem map</p>
<h2 class="section-title">How the pieces fit together, so far</h2>
<p class="section-desc">DisSModel is an independent Python alternative that takes TerraME as its conceptual basis. The <code>dissmodel</code> core is the most mature piece, and the packages marked in green have been checked against TerraME and LuccME outputs. This map shows where things stand today.</p>
<div style="margin-top:2.5rem; overflow-x:auto;">
<svg xmlns="http://www.w3.org/2000/svg" style="display:block; min-width:720px; height:auto;" viewBox="0 0 1120 706" width="100%" role="img" font-family="Outfit, sans-serif">
<title>DisSModel ecosystem map</title>
<desc>DisSModel mirrors the TerraME ecosystem from INPE as an independent Python alternative: TerraME is the conceptual basis for the dissmodel core; TerraME's cellular automata, system dynamics and agent-based packages correspond to dissmodel-ca, dissmodel-sysdyn and dissmodel-abm; LuccME corresponds to disslucc, and brmangue-dissmodel reimplements the BR-MANGUE coastal model; fillCell corresponds to disscube. haloexec and dissmodel-platform are new infrastructure for scale and reproducible execution.</desc>
<defs>
<marker id="ah" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
</marker>
<style>
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; fill: #2e6fb5; }
.lblg { font-size: 12px; font-weight: 700; letter-spacing: .1em; fill: #7d8ea6; }
.nm { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 500; fill: #1a2e4a; }
.nmg { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 500; fill: #5a7090; }
.ds { font-size: 13px; fill: #5a7090; }
.note { font-size: 12px; fill: #5a7090; font-style: italic; }
.ok { fill: #4a9e4a; } .early { fill: #e8a020; }
</style>
</defs>
<!-- Column headers -->
<text class="lblg" x="40" y="30">REFERENCE · INPE</text>
<text class="lbl" x="360" y="30">DISSMODEL ECOSYSTEM · PYTHON</text>
<!-- Row A: core -->
<rect x="40" y="46" width="220" height="72" rx="10" fill="none" stroke="#9fb0c6" stroke-dasharray="5 4"/>
<text class="nmg" x="58" y="76">TerraME</text>
<text class="ds" x="58" y="100">Spatial dynamic modeling (Lua)</text>
<text class="note" x="310" y="74" text-anchor="middle">conceptual basis</text>
<path d="M266 88 L352 88" fill="none" stroke="#9fb0c6" stroke-dasharray="4 4" stroke-width="1.4" marker-end="url(#ah)"/>
<rect x="360" y="46" width="720" height="72" rx="12" fill="#1a2e4a"/>
<circle class="ok" cx="1062" cy="62" r="5"/>
<text x="380" y="76" font-family="'DM Mono', monospace" font-size="19" font-weight="500" fill="#ffffff">dissmodel</text>
<text x="380" y="100" font-size="13" fill="#a0c0e0">Core · Environment, Model, vector & raster cellular spaces, scheduling</text>
<!-- Row B: didactic packages -->
<text class="lbl" x="360" y="152">DIDACTIC PACKAGES · MODELING PARADIGMS</text>
<rect x="40" y="164" width="220" height="72" rx="10" fill="none" stroke="#9fb0c6" stroke-dasharray="5 4"/>
<text class="nmg" x="58" y="194">TerraME packages</text>
<text class="ds" x="58" y="218">CA · sysdyn · ABM</text>
<text class="note" x="310" y="192" text-anchor="middle">similar packages</text>
<path d="M266 206 L352 206" fill="none" stroke="#9fb0c6" stroke-dasharray="4 4" stroke-width="1.4" marker-end="url(#ah)"/>
<rect x="360" y="164" width="228" height="72" rx="10" fill="#e8f0fb" stroke="#b9d0ee"/>
<circle class="early" cx="572" cy="180" r="5"/>
<text class="nm" x="376" y="194">dissmodel-ca</text>
<text class="ds" x="376" y="218">Cellular automata</text>
<rect x="606" y="164" width="228" height="72" rx="10" fill="#e8f0fb" stroke="#b9d0ee"/>
<circle class="early" cx="818" cy="180" r="5"/>
<text class="nm" x="622" y="194">dissmodel-sysdyn</text>
<text class="ds" x="622" y="218">System dynamics</text>
<rect x="852" y="164" width="228" height="72" rx="10" fill="#e8f0fb" stroke="#b9d0ee"/>
<circle class="early" cx="1064" cy="180" r="5"/>
<text class="nm" x="868" y="194">dissmodel-abm</text>
<text class="ds" x="868" y="218">Agent-based models</text>
<!-- Row C: domain -->
<text class="lbl" x="360" y="270">DOMAIN</text>
<rect x="40" y="282" width="220" height="72" rx="10" fill="none" stroke="#9fb0c6" stroke-dasharray="5 4"/>
<text class="nmg" x="58" y="312">LuccME</text>
<text class="ds" x="58" y="336">LUCC framework on TerraME</text>
<text class="note" x="310" y="302" text-anchor="middle">independent</text>
<text class="note" x="310" y="317" text-anchor="middle">alternative</text>
<path d="M266 330 L352 330" fill="none" stroke="#9fb0c6" stroke-dasharray="4 4" stroke-width="1.4" marker-end="url(#ah)"/>
<rect x="360" y="282" width="228" height="72" rx="10" fill="#e8f4e8" stroke="#bfdcbf"/>
<circle class="ok" cx="572" cy="298" r="5"/>
<text class="nm" x="376" y="312">disslucc</text>
<text class="ds" x="376" y="336">Land use & cover change</text>
<rect x="606" y="282" width="228" height="72" rx="10" fill="#e8f4e8" stroke="#bfdcbf"/>
<circle class="ok" cx="818" cy="298" r="5"/>
<text class="nm" x="622" y="312">brmangue-dissmodel</text>
<text class="ds" x="622" y="336">Coastal flooding · mangroves</text>
<!-- Row D: data preparation -->
<text class="lbl" x="360" y="388">DATA PREPARATION · CELLULAR SPACES</text>
<rect x="40" y="400" width="220" height="72" rx="10" fill="none" stroke="#9fb0c6" stroke-dasharray="5 4"/>
<text class="nmg" x="58" y="430">fillCell</text>
<text class="ds" x="58" y="454">Filling cells with data</text>
<text class="note" x="310" y="428" text-anchor="middle">similar role</text>
<path d="M266 442 L352 442" fill="none" stroke="#9fb0c6" stroke-dasharray="4 4" stroke-width="1.4" marker-end="url(#ah)"/>
<rect x="360" y="400" width="474" height="72" rx="10" fill="#ffffff" stroke="#dde4ee" stroke-width="1.5"/>
<circle class="ok" cx="818" cy="416" r="5"/>
<text class="nm" x="376" y="430">disscube</text>
<text class="ds" x="376" y="454">Chunked raster cubes · grid alignment · cell filling</text>
<!-- Row E: infrastructure -->
<text class="lbl" x="360" y="506">INFRASTRUCTURE · BEYOND TERRAME</text>
<text class="note" x="40" y="542">No direct counterpart:</text>
<text class="note" x="40" y="560">an evolution toward scale and</text>
<text class="note" x="40" y="578">reproducible execution</text>
<rect x="360" y="518" width="350" height="90" rx="10" fill="#ffffff" stroke="#dde4ee" stroke-width="1.5"/>
<circle class="early" cx="694" cy="534" r="5"/>
<text class="nm" x="376" y="548">haloexec</text>
<text class="ds" x="376" y="572">Larger-than-RAM CA · halo / ghost cells</text>
<text class="note" x="376" y="592">may later move into the core</text>
<rect x="730" y="518" width="350" height="90" rx="10" fill="#fdf3e0" stroke="#f0d9a8" stroke-dasharray="6 4"/>
<circle class="early" cx="1064" cy="534" r="5"/>
<text class="nm" x="746" y="548">dissmodel-platform</text>
<text class="ds" x="746" y="572">JupyterLab · FastAPI · MinIO · Redis · provenance</text>
<text class="note" x="746" y="592">prototype, not yet hardened</text>
<!-- Legend -->
<line x1="40" y1="634" x2="1080" y2="634" stroke="#dde4ee"/>
<circle class="ok" cx="46" cy="658" r="5"/><text class="ds" x="58" y="662">Checked against TerraME / LuccME</text>
<circle class="early" cx="296" cy="658" r="5"/><text class="ds" x="308" y="662">In development</text>
<text class="note" x="1080" y="662" text-anchor="end">All packages build on the dissmodel core.</text>
<text class="note" x="40" y="690">Packages evolve at different speeds, and feedback is very welcome.</text>
</svg>
</div>
<div style="margin-top:2rem; display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.5rem; padding:1.25rem 1.5rem; border:1px solid var(--border); border-radius:12px; background:var(--bg);">
<p style="flex:1 1 320px; color:var(--muted);">This map shows the packages. The full ecosystem also includes the reference outputs, benchmarks, study cases, workflow and book hosted by <a href="https://github.com/LambdaGeo" style="color:var(--blue-mid);">LambdaGeo</a>.</p>
<a href="repository-map.html" class="btn btn-primary">🗺 See how every repository connects</a>
</div>
</div>
</section>
<!-- ── REPOS ── -->
<section id="repos">
<div class="container">
<div class="repos-header">
<p class="section-label">Ecosystem</p>
<h2 class="section-title" id="repos-title">Repositories</h2>
<p class="section-desc">Each package aims to have a focused role. The core can be used on its own, and the extensions can be combined as the ecosystem matures. Some packages are more mature than others.</p>
<div class="status-note">
Feedback, bug reports, and contributions are very welcome —
<a href="https://github.com/DisSModel">come say hello on GitHub</a>.
</div>
</div>
<div id="repos-container">
<div class="repos-loading">
<div class="spinner"></div>
Loading repositories from GitHub…
</div>
</div>
</div>
</section>
<!-- ── ARCHITECTURE ── -->
<section id="architecture">
<div class="container">
<div class="arch-wrap">
<div>
<p class="section-label">Design</p>
<h2 class="section-title">Designed with modularity and reproducibility in mind</h2>
<p class="section-desc">Every simulation is a traceable experiment, with coefficients kept in versioned TOML files rather than buried in code.</p>
<div class="arch-points">
<div class="arch-point">
<div class="arch-dot blue"></div>
<div class="arch-point-text">
<h4>Experiment as a first-class object</h4>
<p>Each run produces an <code>ExperimentRecord</code> capturing provenance, input SHA-256 checksums, parameters, and the code version, so results can be cited in a paper.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot amber"></div>
<div class="arch-point-text">
<h4>Configuration separated from code</h4>
<p>Calibrated coefficients live in versioned TOML files in <code>dissmodel-configs</code> and are reviewed via PR before publication. This keeps them out of the code and citeable by git hash.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot green"></div>
<div class="arch-point-text">
<h4>Two-layer architecture</h4>
<p>Science logic stays in the <code>Model</code> layer, while the <code>ModelExecutor</code> handles I/O, column mapping, and provenance, so that the science code stays as untouched as possible.</p>
</div>
</div>
<div class="arch-point">
<div class="arch-dot blue"></div>
<div class="arch-point-text">
<h4>Infrastructure for experimentation</h4>
<p>A platform prototype built on JupyterLab, FastAPI, Redis, and MinIO via Docker Compose, not yet production-ready. On the data side, <code>disscube</code> can already read Brazil Data Cube collections through their STAC catalog.</p>
</div>
</div>
</div>
</div>
<pre class="arch-diagram"><span class="c-dim">┌─────────────────────────────────┐</span>
<span class="c-white">│ DisSModel Platform (prototype) │</span>
<span class="c-dim">│ │</span>
<span class="c-green">│ FastAPI │</span>
<span class="c-blue">│ ├── POST /submit_job │</span>
<span class="c-blue">│ ├── GET /job/{id} │</span>
<span class="c-blue">│ └── POST /experiments/repro │</span>
<span class="c-dim">│ │</span>
<span class="c-green">│ Worker │</span>
<span class="c-blue">│ ├── ExecutorRegistry │</span>
<span class="c-blue">│ ├── ModelExecutor ABC │</span>
<span class="c-blue">│ └── Dask Client │</span>
<span class="c-dim">├─────────────────────────────────┤</span>
<span class="c-green">│ dissmodel-configs │</span>
<span class="c-blue">│ ├── models/brmangue.toml │</span>
<span class="c-blue">│ └── models/disslucc.toml │</span>
<span class="c-dim">├─────────────────────────────────┤</span>
<span class="c-white">│ Infrastructure │</span>
<span class="c-dim">│ JupyterLab · MinIO · Dask │</span>
<span class="c-dim">└─────────────────────────────────┘</span></pre>
</div>
</div>
</section>
<!-- ── USE CASE ── -->
<section id="usecase">
<div class="container">
<p class="section-label">Case Study</p>
<h2 class="section-title">Coastal dynamics & Mangrove migration</h2>
<p class="section-desc" style="margin-bottom:3.5rem;">
The <code>brmangue-dissmodel</code> repository is our first case study, applying DisSModel to data from Maranhão, Brazil:
flood propagation and mangrove migration based on <strong>Bezerra et al. (2013)</strong>.
So far it has been compared with a TerraME 2.0 adaptation of the original model in two scenarios, with land use and soil
matching in the baseline one. More scenarios are on the way.
</p>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge blue">Model</span>
<p>Simulation logic kept separate from I/O and infrastructure, so it can be used in a notebook or script.</p>
</div>
<pre class="usecase-code"><span style="color:#6abf6a">from</span> <span style="color:#e8f4ff">dissmodel.core</span> <span style="color:#6abf6a">import</span> <span style="color:#e8f4ff">Environment</span>
<span style="color:#6abf6a">from</span> <span style="color:#e8f4ff">brmangue.models.vector.flood_model</span> <span style="color:#6abf6a">import</span> <span style="color:#e8f4ff">FloodModel</span>
<span style="color:#6abf6a">from</span> <span style="color:#e8f4ff">brmangue.models.vector.mangrove_model</span> <span style="color:#6abf6a">import</span> <span style="color:#e8f4ff">MangroveModel</span>
env = Environment(start_time=1, end_time=88)
FloodModel(gdf=gdf, sea_level_rise_rate=0.5)
MangroveModel(gdf=gdf, sea_level_rise_rate=0.5, tide_height=6.0)
env.run()</pre>
</div>
<div class="usecase-arrow">↓</div>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge green">ModelExecutor</span>
<p>Wraps the model with I/O, column mapping, provenance, and platform integration.</p>
</div>
<pre class="usecase-code">class BrmangueVectorExecutor(ModelExecutor):
name = "brmangue_vector"
def load(self, record: ExperimentRecord) -> GeoDataFrame:
# load + apply column_map → canonical names
...
def run(self, data, record: ExperimentRecord):
# build env + models, call env.run()
...</pre>
</div>
<div class="usecase-arrow">↓</div>
<div class="usecase-sub">
<div class="usecase-sub-label">
<span class="sub-badge gray">Run</span>
<p>The same executor can run locally via CLI or through the platform API (the API is experimental).</p>
</div>
<div class="tabs-wrap">
<div class="tab-btns">
<button class="tab-btn active" onclick="switchTab('local')">🖥️ Local / CLI</button>
<button class="tab-btn" onclick="switchTab('api')" >🌐 Platform API</button>
</div>
<pre class="usecase-code tab-panel" id="tab-local">python examples/main_vector.py run \
--input examples/data/input/synthetic_grid_60x60_shp.zip \
--output examples/data/output/simulation.gpkg \
--param end_time=88 \
--param sea_level_rise_rate=0.5</pre>
<pre class="usecase-code tab-panel" id="tab-api" style="display:none;">curl -X POST http://localhost:8000/submit_job \
-d '{
"model_name": "brmangue_vector",
"input_dataset": "s3://inputs/grid.shp",
"parameters": {"end_time": 88}
}'</pre>
</div>
</div>
</div>
</section>
<!-- ── FOOTER ── -->
<footer>
<div class="footer-inner">
<div class="footer-brand">
<h3>DisSModel</h3>
<p>A Python ecosystem for discrete spatial modeling, developed at LambdaGEO / UFMA, building on the TerraME and LuccME tradition from INPE.</p>
</div>
<div class="footer-col">
<h4>Repositories</h4>
<ul id="footer-repo-list">
<!-- populated dynamically -->
</ul>
</div>
<div class="footer-col">
<h4>Resources</h4>
<ul>
<li><a href="https://dissmodel.github.io/dissmodel/">Documentation</a></li>
<li><a href="https://github.com/DisSModel">GitHub Organization</a></li>
<li><a href="https://github.com/DisSModel/dissmodel/blob/main/LICENSE">MIT License</a></li>
<li><a href="https://doi.org/10.5281/zenodo.23246106">How to cite (Zenodo)</a></li>
<li><a href="repository-map.html">Repository map</a></li>
<li><a href="https://lambdageo.github.io">LambdaGEO / UFMA</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<span>© 2026 DisSModel — LambdaGEO, UFMA</span>
<span>Open source · MIT License</span>
</div>
</footer>
<!-- ── data.js must be loaded before this script ── -->
<script src="data.js"></script>
<script>
// ── Helpers ──────────────────────────────────────────────────────────────
function copyPip() {
navigator.clipboard.writeText('pip install dissmodel');
const el = document.getElementById('copy-confirm');
el.classList.add('show');
setTimeout(() => el.classList.remove('show'), 2000);
}
function switchTab(tab) {
document.getElementById('tab-local').style.display = tab === 'local' ? 'block' : 'none';
document.getElementById('tab-api').style.display = tab === 'api' ? 'block' : 'none';
document.querySelectorAll('.tab-btn').forEach((btn, i) => {
btn.classList.toggle('active', (tab === 'local' && i === 0) || (tab === 'api' && i === 1));
});
}
// ── GitHub API fetch ──────────────────────────────────────────────────────
const ORG = 'DisSModel';
const API = `https://api.github.com/orgs/${ORG}/repos?per_page=100&sort=updated&type=public`;
async function loadRepos() {
try {
const res = await fetch(API, {
headers: { 'Accept': 'application/vnd.github+json' }
});
if (!res.ok) throw new Error(`GitHub API responded ${res.status}`);
const allRepos = await res.json();
// Filter archived and hidden
const repos = allRepos.filter(r =>
!r.archived &&
!r.fork &&
!(REPO_HIDDEN || []).includes(r.name)
);
renderRepos(repos);
updateFooter(repos);
} catch (err) {
document.getElementById('repos-container').innerHTML = `
<div class="repos-error">
⚠️ Could not load repositories from GitHub API.
<a href="https://github.com/orgs/${ORG}/repositories" style="color:var(--red)">View on GitHub →</a>
<br><small style="opacity:.7;font-size:.8rem">${err.message}</small>
</div>`;
}
}
// ── Render repos grid ─────────────────────────────────────────────────────
function renderRepos(repos) {
// Sort: featured first, then by REPO_EXTRAS order, then alphabetical
const sorted = [...repos].sort((a, b) => {
const ea = REPO_EXTRAS[a.name] || {};
const eb = REPO_EXTRAS[b.name] || {};
if (ea.featured && !eb.featured) return -1;
if (!ea.featured && eb.featured) return 1;
const oa = ea.order ?? 999;
const ob = eb.order ?? 999;
if (oa !== ob) return oa - ob;
return a.name.localeCompare(b.name);
});
// Update section title
document.getElementById('repos-title').textContent =
`${sorted.length} repositories`;
const grid = document.createElement('div');
grid.className = 'repos-grid';
sorted.forEach(repo => {
const extras = REPO_EXTRAS[repo.name] || {};
const icon = extras.icon || '📦';
const pills = extras.pills || [];
const links = extras.links || [];
const featured = extras.featured || false;
const topics = (repo.topics || []).slice(0, 4);
const meta = [
repo.stargazers_count > 0 ? `★ ${repo.stargazers_count}` : null,
repo.language || null
].filter(Boolean);
// Card is a div so inner <a> links work independently
const card = document.createElement('div');
card.className = 'repo-card' + (featured ? ' featured' : '');
card.style.cursor = 'pointer';
card.addEventListener('click', () => window.open(repo.html_url, '_blank', 'noopener'));
card.innerHTML = `
<div class="repo-top">
<div class="repo-icon">${icon}</div>
<span class="repo-arrow">↗</span>
</div>
<div class="repo-name">${repo.name}</div>
<p class="repo-desc">${repo.description || 'No description yet.'}</p>
${pills.length ? `<div class="repo-bench">${pills.map(p => `<span class="bench-pill">${p}</span>`).join('')}</div>` : ''}
${topics.length ? `<div class="repo-tags">${topics.map(t => `<span class="repo-tag">${t}</span>`).join('')}</div>` : ''}
${meta.length ? `<div class="repo-meta">${meta.map(m => `<span class="repo-meta-item">${m}</span>`).join('')}</div>` : ''}
${links.length ? `<div class="repo-links">${links.map(l =>
`<a class="repo-link" href="${l.url}" target="_blank" rel="noopener" onclick="event.stopPropagation()">${l.label}</a>`
).join('')}</div>` : ''}
`;
grid.appendChild(card);
});
const container = document.getElementById('repos-container');
container.innerHTML = '';
container.appendChild(grid);
}
// ── Footer repo list ──────────────────────────────────────────────────────
function updateFooter(repos) {
const list = document.getElementById('footer-repo-list');
// Sort: extras order first, rest alphabetical
const sorted = [...repos].sort((a, b) => {
const oa = (REPO_EXTRAS[a.name] || {}).order ?? 999;
const ob = (REPO_EXTRAS[b.name] || {}).order ?? 999;
if (oa !== ob) return oa - ob;
return a.name.localeCompare(b.name);
});
list.innerHTML = sorted