Charles De Dampierre commited on
Commit
7148cbd
1 Parent(s): f144f21

add the maps

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. app.py +24 -3
  2. data/map_figures/map_Arabian peninsula.png +3 -0
  3. data/map_figures/map_Arabic world.png +3 -0
  4. data/map_figures/map_Austria.png +3 -0
  5. data/map_figures/map_Balkans.png +3 -0
  6. data/map_figures/map_Belgium.png +3 -0
  7. data/map_figures/map_British Islands.png +3 -0
  8. data/map_figures/map_Central Europe.png +3 -0
  9. data/map_figures/map_Chinese world.png +3 -0
  10. data/map_figures/map_Denmark.png +3 -0
  11. data/map_figures/map_East Slavic.png +3 -0
  12. data/map_figures/map_Eastern Europe.png +3 -0
  13. data/map_figures/map_Finland.png +3 -0
  14. data/map_figures/map_France.png +3 -0
  15. data/map_figures/map_German world.png +3 -0
  16. data/map_figures/map_Germany.png +3 -0
  17. data/map_figures/map_Greece.png +3 -0
  18. data/map_figures/map_Greek World.png +3 -0
  19. data/map_figures/map_Iceland.png +3 -0
  20. data/map_figures/map_Indian world.png +3 -0
  21. data/map_figures/map_Ireland.png +3 -0
  22. data/map_figures/map_Italy.png +3 -0
  23. data/map_figures/map_Japan.png +3 -0
  24. data/map_figures/map_Korea.png +3 -0
  25. data/map_figures/map_Latin World.png +3 -0
  26. data/map_figures/map_Low countries.png +3 -0
  27. data/map_figures/map_Muslim world.png +3 -0
  28. data/map_figures/map_Netherlands.png +3 -0
  29. data/map_figures/map_Nordic countries.png +3 -0
  30. data/map_figures/map_Northern China.png +3 -0
  31. data/map_figures/map_Northern France.png +3 -0
  32. data/map_figures/map_Northern India.png +3 -0
  33. data/map_figures/map_Northern Italy.png +3 -0
  34. data/map_figures/map_Northern Japan.png +3 -0
  35. data/map_figures/map_Northwestern Europe.png +3 -0
  36. data/map_figures/map_Norway.png +3 -0
  37. data/map_figures/map_Ottoman Turkey.png +3 -0
  38. data/map_figures/map_Ottoman world.png +3 -0
  39. data/map_figures/map_Persian world.png +3 -0
  40. data/map_figures/map_Portugal.png +3 -0
  41. data/map_figures/map_Slav world.png +3 -0
  42. data/map_figures/map_South East Asia.png +3 -0
  43. data/map_figures/map_Southern China.png +3 -0
  44. data/map_figures/map_Southern France.png +3 -0
  45. data/map_figures/map_Southern India.png +3 -0
  46. data/map_figures/map_Southern Italy.png +3 -0
  47. data/map_figures/map_Southern Japan.png +3 -0
  48. data/map_figures/map_Southwestern Europe.png +3 -0
  49. data/map_figures/map_Spain.png +3 -0
  50. data/map_figures/map_Sweden.png +3 -0
app.py CHANGED
@@ -16,35 +16,41 @@ unseen_capita_index_path = (
16
 
17
 
18
  population_path = "data/population"
 
19
 
20
 
21
  # Update image_paths using global_index_path
22
  index_paths = {
23
  "India": {
 
24
  "global_index": f"{global_index_path}/india.png",
25
  "unseen_index": f"{unseen_index_path}/india.png",
26
  "unseen_index_capita": f"{unseen_capita_index_path}/india.png",
27
  "population_index": f"{population_path}/Indian world.png",
28
  },
29
  "Japan": {
 
30
  "global_index": f"{global_index_path}/japan.png",
31
  "unseen_index": f"{unseen_index_path}/japan.png",
32
  "unseen_index_capita": f"{unseen_capita_index_path}/Japan.png",
33
  "population_index": f"{population_path}/Japan.png",
34
  },
35
  "France": {
 
36
  "global_index": f"{global_index_path}/france.png",
37
  "unseen_index": f"{unseen_index_path}/france.png",
38
  "unseen_index_capita": f"{unseen_capita_index_path}/France.png",
39
  "population_index": f"{population_path}/France.png",
40
  },
41
  "Italy": {
 
42
  "global_index": f"{global_index_path}/italy.png",
43
  "unseen_index": f"{unseen_index_path}/italy.png",
44
  "unseen_index_capita": f"{unseen_capita_index_path}/Italy.png",
45
  "population_index": f"{population_path}/Italy.png",
46
  },
47
  "Spain": {
 
48
  "global_index": f"{global_index_path}/spain.png",
49
  "unseen_index": f"{unseen_index_path}/spain.png",
50
  "unseen_index_capita": f"{unseen_capita_index_path}/Spain.png",
@@ -65,14 +71,29 @@ if selected_region in index_paths:
65
  if os.path.exists(path):
66
  if key == "global_index":
67
  st.subheader("Global Index")
 
 
 
68
  elif key == "unseen_index":
69
  st.subheader("Unsee-Species Index")
 
 
 
70
  elif key == "unseen_index_capita":
71
  st.subheader("Unsee-Species per capita Index")
 
 
 
72
  elif key == "population_index":
73
- st.subheader("")
74
-
75
- st.image(Image.open(path), caption=key.capitalize(), use_column_width=True)
 
 
 
 
 
 
76
  else:
77
  st.write(f"File for {key.capitalize()} does not exist.")
78
  # Add more information or charts specific to India here
 
16
 
17
 
18
  population_path = "data/population"
19
+ maps_path = "data/map_figures"
20
 
21
 
22
  # Update image_paths using global_index_path
23
  index_paths = {
24
  "India": {
25
+ "map": f"{maps_path}/map_Indian world.png",
26
  "global_index": f"{global_index_path}/india.png",
27
  "unseen_index": f"{unseen_index_path}/india.png",
28
  "unseen_index_capita": f"{unseen_capita_index_path}/india.png",
29
  "population_index": f"{population_path}/Indian world.png",
30
  },
31
  "Japan": {
32
+ "map": f"{maps_path}/map_Japan.png",
33
  "global_index": f"{global_index_path}/japan.png",
34
  "unseen_index": f"{unseen_index_path}/japan.png",
35
  "unseen_index_capita": f"{unseen_capita_index_path}/Japan.png",
36
  "population_index": f"{population_path}/Japan.png",
37
  },
38
  "France": {
39
+ "map": f"{maps_path}/map_France.png",
40
  "global_index": f"{global_index_path}/france.png",
41
  "unseen_index": f"{unseen_index_path}/france.png",
42
  "unseen_index_capita": f"{unseen_capita_index_path}/France.png",
43
  "population_index": f"{population_path}/France.png",
44
  },
45
  "Italy": {
46
+ "map": f"{maps_path}/map_Italy.png",
47
  "global_index": f"{global_index_path}/italy.png",
48
  "unseen_index": f"{unseen_index_path}/italy.png",
49
  "unseen_index_capita": f"{unseen_capita_index_path}/Italy.png",
50
  "population_index": f"{population_path}/Italy.png",
51
  },
52
  "Spain": {
53
+ "map": f"{maps_path}/map_Spain.png",
54
  "global_index": f"{global_index_path}/spain.png",
55
  "unseen_index": f"{unseen_index_path}/spain.png",
56
  "unseen_index_capita": f"{unseen_capita_index_path}/Spain.png",
 
71
  if os.path.exists(path):
72
  if key == "global_index":
73
  st.subheader("Global Index")
74
+ st.image(
75
+ Image.open(path), caption=key.capitalize(), use_column_width=True
76
+ )
77
  elif key == "unseen_index":
78
  st.subheader("Unsee-Species Index")
79
+ st.image(
80
+ Image.open(path), caption=key.capitalize(), use_column_width=True
81
+ )
82
  elif key == "unseen_index_capita":
83
  st.subheader("Unsee-Species per capita Index")
84
+ st.image(
85
+ Image.open(path), caption=key.capitalize(), use_column_width=True
86
+ )
87
  elif key == "population_index":
88
+ st.subheader("¨Population Index")
89
+ st.image(
90
+ Image.open(path), caption=key.capitalize(), use_column_width=True
91
+ )
92
+ elif key == "map":
93
+ st.subheader("Maps")
94
+ st.sidebar.image(
95
+ Image.open(path), caption=key.capitalize(), use_column_width=True
96
+ )
97
  else:
98
  st.write(f"File for {key.capitalize()} does not exist.")
99
  # Add more information or charts specific to India here
data/map_figures/map_Arabian peninsula.png ADDED

Git LFS Details

  • SHA256: 0cf8930ffe993af63c07dfa5b096e55e310b4c99fbe45068704643779bc94820
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
data/map_figures/map_Arabic world.png ADDED

Git LFS Details

  • SHA256: 9fabd54d4ba1c2b63b69dee3debbcfe1e4431f025346dc5cbeaa1ff8dd564c00
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
data/map_figures/map_Austria.png ADDED

Git LFS Details

  • SHA256: 4c59336639aa5a21aeb2c61dcc4b84c23bd85aa0cec522a27c28564377f32328
  • Pointer size: 130 Bytes
  • Size of remote file: 94.8 kB
data/map_figures/map_Balkans.png ADDED

Git LFS Details

  • SHA256: 1a4d5cdf79d0fc1588326b62dcbd60c7d3ea8bb487277370643761051d7ea67a
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
data/map_figures/map_Belgium.png ADDED

Git LFS Details

  • SHA256: 411393369c5e04f5fa512fd3c18baaed33c57630631cc1c09875191f8e54a2a9
  • Pointer size: 130 Bytes
  • Size of remote file: 86 kB
data/map_figures/map_British Islands.png ADDED

Git LFS Details

  • SHA256: 19622f901a4a15f3f2b41dafc2e3b51b30685f8ab2f263e3443f97ec37c47f40
  • Pointer size: 130 Bytes
  • Size of remote file: 77 kB
data/map_figures/map_Central Europe.png ADDED

Git LFS Details

  • SHA256: afbb53ac0d41fedf1f5c187bec02e09fdb8fcf8a6c4feb75c13accfd9c4058eb
  • Pointer size: 130 Bytes
  • Size of remote file: 93 kB
data/map_figures/map_Chinese world.png ADDED

Git LFS Details

  • SHA256: db805b765c37555f172def55aeb1e218f7dac9881a8f15e711e047dd426a7329
  • Pointer size: 130 Bytes
  • Size of remote file: 96.2 kB
data/map_figures/map_Denmark.png ADDED

Git LFS Details

  • SHA256: 0e1362fdfe1a63a14843ef21fca3fef3b7a236315d19fb9db5077eee9f1f9a36
  • Pointer size: 130 Bytes
  • Size of remote file: 78.3 kB
data/map_figures/map_East Slavic.png ADDED

Git LFS Details

  • SHA256: b4e7463aae47c7e3d82a2df9601cb17a7299b6cac695ca353bfe60d8e69ec73a
  • Pointer size: 130 Bytes
  • Size of remote file: 63.6 kB
data/map_figures/map_Eastern Europe.png ADDED

Git LFS Details

  • SHA256: 21a00de3fb8e3684dad8cba3408f0ad4ccec8ae3027942ddc2dbefc3c260c5f2
  • Pointer size: 130 Bytes
  • Size of remote file: 67.6 kB
data/map_figures/map_Finland.png ADDED

Git LFS Details

  • SHA256: c7b6bf8cb7f699c9626bba68035405fbbc4a23bbafc25c5aab21dba9d5345fc4
  • Pointer size: 130 Bytes
  • Size of remote file: 65.9 kB
data/map_figures/map_France.png ADDED

Git LFS Details

  • SHA256: 86632f4d75d064d3d5b9c63aba87cd2ca472d7d818d1ed47972d89df6361839f
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
data/map_figures/map_German world.png ADDED

Git LFS Details

  • SHA256: 5ddcdab115ab864fee4f238e9fd62f00060a8da60be64b94729080e8fde85c4f
  • Pointer size: 130 Bytes
  • Size of remote file: 91.8 kB
data/map_figures/map_Germany.png ADDED

Git LFS Details

  • SHA256: 4c8efacd0e5746d14a8587b8e5f8950265c4a2586b44703f0ddc69b9ea2df6ad
  • Pointer size: 130 Bytes
  • Size of remote file: 89.1 kB
data/map_figures/map_Greece.png ADDED

Git LFS Details

  • SHA256: 5cec430d341c6a332a44974200ab858a1bf113bd1cc4a8e8eb371fd594371992
  • Pointer size: 131 Bytes
  • Size of remote file: 113 kB
data/map_figures/map_Greek World.png ADDED

Git LFS Details

  • SHA256: 286d5210856949ee785524bff9b6b6300f378500f5d6dfa34d67a7f021dd8381
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
data/map_figures/map_Iceland.png ADDED

Git LFS Details

  • SHA256: 33a143aa765ec7c5174619479f630c3a8c345e8ee88ba988b8cc303a4f0bb609
  • Pointer size: 130 Bytes
  • Size of remote file: 51.2 kB
data/map_figures/map_Indian world.png ADDED

Git LFS Details

  • SHA256: 7793745e4c58629da6c7eb5327cdfd7c35a99d33e570dd3eb07eab995f2c6f23
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
data/map_figures/map_Ireland.png ADDED

Git LFS Details

  • SHA256: 11b0ac51fbcaeec68725143ffc678d3ea74d60f0d77801ec0261811176467f4e
  • Pointer size: 130 Bytes
  • Size of remote file: 75.4 kB
data/map_figures/map_Italy.png ADDED

Git LFS Details

  • SHA256: 7c1b4a2dddb7d6342bbd1b2ebef8f5f9ac2d590f6e3d651a1f27588b8adc7622
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
data/map_figures/map_Japan.png ADDED

Git LFS Details

  • SHA256: 1df5df93b27cac6605ff1799e4808a6a4d20cbcf4a846b95b2338a84b835c8ce
  • Pointer size: 130 Bytes
  • Size of remote file: 72.6 kB
data/map_figures/map_Korea.png ADDED

Git LFS Details

  • SHA256: 4e2d9d9e8046aa4ca9ae869c015f6dbb81591418484170d557e62e84c2fcf465
  • Pointer size: 130 Bytes
  • Size of remote file: 75.6 kB
data/map_figures/map_Latin World.png ADDED

Git LFS Details

  • SHA256: e899cf8758c999e6aceffed85d5eb2e470b1a8e248305267122ad8271ab14906
  • Pointer size: 131 Bytes
  • Size of remote file: 116 kB
data/map_figures/map_Low countries.png ADDED

Git LFS Details

  • SHA256: a1bf50ce25e9a80474f59dbe739f4863bd1b621d76c1b9aec6d4f218f2143651
  • Pointer size: 130 Bytes
  • Size of remote file: 85.8 kB
data/map_figures/map_Muslim world.png ADDED

Git LFS Details

  • SHA256: f55ef373c15499852521ab68ae852c408107ab2078c3e3b123cd747840ac8b74
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
data/map_figures/map_Netherlands.png ADDED

Git LFS Details

  • SHA256: 3ed9462b5583e57df121e034c5735dde69d289a60462dbd63a169a558bc155e7
  • Pointer size: 130 Bytes
  • Size of remote file: 84.9 kB
data/map_figures/map_Nordic countries.png ADDED

Git LFS Details

  • SHA256: 8732bfae233aef0d9e8dc20cddaf7ee39a12f2e1c4f437140fba18b33826c07a
  • Pointer size: 130 Bytes
  • Size of remote file: 61.1 kB
data/map_figures/map_Northern China.png ADDED

Git LFS Details

  • SHA256: 938dbdeeab2c139a79febbe2574c122a1ae4e5b9ae8412e50387a8b85a2d8f56
  • Pointer size: 130 Bytes
  • Size of remote file: 96.2 kB
data/map_figures/map_Northern France.png ADDED

Git LFS Details

  • SHA256: 42ca51d3c4ce13e85595540e013e468837c2df6f0d01c57e2be87afc3611bc76
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
data/map_figures/map_Northern India.png ADDED

Git LFS Details

  • SHA256: 0b2d44c6a8e6dc60fbf4417c94221d9f129be7d26b2169263cc1c41d9053c44e
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
data/map_figures/map_Northern Italy.png ADDED

Git LFS Details

  • SHA256: 128cb6756a13dab51596ac5972fd2a5f36607e1c42b11e2ed75e5799af62835a
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
data/map_figures/map_Northern Japan.png ADDED

Git LFS Details

  • SHA256: e56015ad727556afc5b3026d067c3193047f9c010f3fbc64088bba58b818111a
  • Pointer size: 130 Bytes
  • Size of remote file: 74 kB
data/map_figures/map_Northwestern Europe.png ADDED

Git LFS Details

  • SHA256: 467f4d94fc94b5ac0c370cb68a20b071a8b559fc699db679b2524a108f61b5c1
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
data/map_figures/map_Norway.png ADDED

Git LFS Details

  • SHA256: e730934a2586f20432723c39ccee115c6b91d7657fe43eab2409c51e59f7a49d
  • Pointer size: 130 Bytes
  • Size of remote file: 53.7 kB
data/map_figures/map_Ottoman Turkey.png ADDED

Git LFS Details

  • SHA256: 36657db8ccc08d6b37b388d89a9550b1e8dc7d677df98f78169102699dd82354
  • Pointer size: 131 Bytes
  • Size of remote file: 116 kB
data/map_figures/map_Ottoman world.png ADDED

Git LFS Details

  • SHA256: e3f1c96d274d89c14fa9e1c9435edde9f45f341f00b92c1c54f3aebecd3a05ac
  • Pointer size: 131 Bytes
  • Size of remote file: 139 kB
data/map_figures/map_Persian world.png ADDED

Git LFS Details

  • SHA256: 0cab5ae60e1242fc0f2f064348560301a830b5538fc048fed884821a650dc224
  • Pointer size: 131 Bytes
  • Size of remote file: 123 kB
data/map_figures/map_Portugal.png ADDED

Git LFS Details

  • SHA256: defbfde1b5dcf0e5b481505ae698ff0c0d945efe1593c5e8e70242538bed31ff
  • Pointer size: 130 Bytes
  • Size of remote file: 96 kB
data/map_figures/map_Slav world.png ADDED

Git LFS Details

  • SHA256: f2a111881c16007f4ca398b8e07231a3ce15aae96f68749123824cc309cc8f4f
  • Pointer size: 130 Bytes
  • Size of remote file: 72.5 kB
data/map_figures/map_South East Asia.png ADDED

Git LFS Details

  • SHA256: a901e36da6255357ab1e025046664a8f0369a9338ccadd0041fd9b2f7f823346
  • Pointer size: 131 Bytes
  • Size of remote file: 109 kB
data/map_figures/map_Southern China.png ADDED

Git LFS Details

  • SHA256: dc309c8357fb337544f2a0b8bbbc60c4e5a755a77687eb5fd71d05489a36b169
  • Pointer size: 130 Bytes
  • Size of remote file: 96.3 kB
data/map_figures/map_Southern France.png ADDED

Git LFS Details

  • SHA256: d414c38ad448e7368ae2a7e7f71f03d9387130e90ae21bed086a9f27012c7f4f
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
data/map_figures/map_Southern India.png ADDED

Git LFS Details

  • SHA256: 8efa7b0127e1a4438333c425d1800916781697279c6a346b9b813be408027c9a
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
data/map_figures/map_Southern Italy.png ADDED

Git LFS Details

  • SHA256: 4ce604487f3038eb159157561dee2dcf9937124ccdc8967677fa1d9c7419db9d
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
data/map_figures/map_Southern Japan.png ADDED

Git LFS Details

  • SHA256: 75624cf4d0dad5575604be5a8b3e4dc9b1ac8bf510809e6c197fe0f75ff2cdc9
  • Pointer size: 130 Bytes
  • Size of remote file: 74.3 kB
data/map_figures/map_Southwestern Europe.png ADDED

Git LFS Details

  • SHA256: c065710c5d59a951088f8448e8028086e929dc8dbc749b375ca5ff6cdd9a624b
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
data/map_figures/map_Spain.png ADDED

Git LFS Details

  • SHA256: 3f7cb314ba5593de33d2a677a039a8ec43bc555f51fccce05cb720b2a23497ec
  • Pointer size: 130 Bytes
  • Size of remote file: 96.7 kB
data/map_figures/map_Sweden.png ADDED

Git LFS Details

  • SHA256: c7c58fc3ec462492cfeebaacbf7e0884ee4719158d14e0cc4f523c70850d71d1
  • Pointer size: 130 Bytes
  • Size of remote file: 68 kB