Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/dataset/crustdb_abbr.py: 41%

27 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-06 15:01 +0000

1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

4# ---|P------/S----------~Lg---------- 

5 

6''' 

7Auxiliary data for :py:mod:`~pyrocko.dataset.crustdb`. 

8 

9This file contains the abbreviations for age and region, and helper functions. 

10''' 

11 

12 

13EONS = { 

14 'MCz': 'Mesozoic to Cenozoic', 

15 'Pz': 'Paleozoic', 

16 'lPt': 'Late Paleozoic', 

17 'mPt': 'Middle Paleozoic', 

18 'ePt': 'Early Paleozoic', 

19 'Ar': 'Archean' 

20} 

21 

22 

23PROVINCES = { 

24 'AFRICA-': 'AFRICA - ', 

25 'AFC-AB': 'AFRICA - Atlantic Border', 

26 'AFC-AF': 'AFRICA - Afar Depression', 

27 'AFC-AT': 'AFRICA - Atlas Mountains', 

28 'AFC-CA': 'AFRICA - Cape Ranges', 

29 'AFC-CH': 'AFRICA - Chad basin', 

30 'AFC-CO': 'AFRICA - Congo (Zaire) Basin', 

31 'AFC-ET': 'AFRICA - Ethiopian Highlands', 

32 'AFC-GH': 'AFRICA - Guinea Highlands', 

33 'AFC-GU': 'AFRICA - Guinea Coastal Lowlands', 

34 'AFC-HV': 'AFRICA - Highveld', 

35 'AFC-KA': 'AFRICA - Karoo', 

36 'AFC-KL': 'AFRICA - Kalahari basin', 

37 'AFC-LI': 'AFRICA - Libyan Plateau', 

38 'AFC-MA': 'AFRICA - Madagascar', 

39 'AFC-ME': 'AFRICA - Mediterranean Coastal Lowlands', 

40 'AFC-MO': 'AFRICA - Mozambique Lowland', 

41 'AFC-MS': 'AFRICA - Mauritanian-Senegal Basin', 

42 'AFC-NA': 'AFRICA - Namib Desert', 

43 'AFC-NG': 'AFRICA - Niger Basin', 

44 'AFC-NI': 'AFRICA - Nile Basin', 

45 'AFC-OR': 'AFRICA - Orange Basin', 

46 'AFC-RE': 'AFRICA - Red Sea highlands', 

47 'AFC-SA': 'AFRICA - Sahara Lowlands', 

48 'AFC-SH': 'AFRICA - Saharan Highlands', 

49 'AFC-SO': 'AFRICA - Somali Peninsula', 

50 'AFC-TA': 'AFRICA - Tablelands', 

51 'AFC-TN': 'AFRICA - Tanganyi Shield', 

52 'AFC-ZI': 'AFRICA - (Zimbabwe) Rhodesian Shield', 

53 'ANC-AM': 'ANTARCTICA - Amery Basin', 

54 'ANC-AN': 'ANTARCTICA - Antarctic (Palmer) Peninsula', 

55 'ANC-EN': 'ANTARCTICA - Enderby Land', 

56 'ANC-PO': 'ANTARCTICA - Polar Plateau', 

57 'ANC-QU': 'ANTARCTICA - Queen Maud Land', 

58 'ANC-RN': 'ANTARCTICA - Ronne (Filchner) Ice shelf', 

59 'ANC-RO': 'ANTARCTICA - Ross Ice shelf', 

60 'ANC-TR': 'ANTARCTICA - Trans-Antarctic Mountains', 

61 'ANC-WE': 'ANTARCTICA - West Antarctica', 

62 'ANC-WI': 'ANTARCTICA - Wilkes Land', 

63 'ARO-AL': 'ARCTIC OCEAN - Alpha Cordillera', 

64 'ARO-CA': 'ARCTIC OCEAN - Canadian Basin', 

65 'ARO-CH or CP': 'ARCTIC OCEAN - Chukchi Plateau', 

66 'ARO-FR': 'ARCTIC OCEAN - Fram Basin', 

67 'ARO-LO': 'ARCTIC OCEAN - Lomonobov Ridge', 

68 'ARO-MA': 'ARCTIC OCEAN - Makarov Basin', 

69 'ARO-MI': 'ARCTIC OCEAN - (Arctic) Mid-Ocean Ridge (Nansen Cordillera)', 

70 'ARO-NA': 'ARCTIC OCEAN - Nansen Basin', 

71 'ASC-AH': 'ASIA - Armenian Highlands', 

72 'ASC-AL': 'ASIA - Altai Mountains', 

73 'ASC-AM': 'ASIA - Amur Basin/Valley', 

74 'ASC-AN': 'ASIA - Anatolian Plateau', 

75 'ASC-AR': 'ASIA - Arabian Shield', 

76 'ASC-AS': 'ASIA - Andaman Sea Shelf', 

77 'ASC-BA': 'ASIA - Baluchistani Ranges', 

78 'ASC-BO': 'ASIA - Borneo', 

79 'ASC-BS': 'ASIA - Bering Sea Shelf', 

80 'ASC-CA': 'ASIA - Central Arabian Lowlands', 

81 'ASC-CE': 'ASIA - Central Highlands', 

82 'ASC-CH': 'ASIA - Chersky Range', 

83 'ASC-CL': 'ASIA - Celebes', 

84 'ASC-CS': 'ASIA - Chukchi Sea', 

85 'ASC-DE': 'ASIA - Deccan Plateau', 

86 'ASC-DZ': 'ASIA - Dzungarian Basin', 

87 'ASC-EA': 'ASIA - East Siberia Sea', 

88 'ASC-EC': 'ASIA - East China Sea Shelf', 

89 'ASC-EL': 'ASIA - Elburs (Alberz) Mountains', 

90 'ASC-GH': 'ASIA - Ghats', 

91 'ASC-GT': 'ASIA - Gulf of Thailand (Siam)', 

92 'ASC-GU': 'ASIA - Persian (Arabian) Gulf', 

93 'ASC-HA': 'ASIA - Hainan', 

94 'ASC-HD': 'ASIA - Hadhramawt (The Jol)', 

95 'ASC-HI': 'ASIA - Himalayas', 

96 'ASC-HK': 'ASIA - Hindu ush', 

97 'ASC-IL': 'ASIA - Indochinese Lowland', 

98 'ASC-IN': 'ASIA - Indo-Gangetic Plain', 

99 'ASC-IP': 'ASIA - Iranian Plateau', 

100 'ASC-IR': 'ASIA - Irrawaddy Valley (Erawad, Myit)', 

101 'ASC-JA': 'ASIA - Japan', 

102 'ASC-JS': 'ASIA - Java Sea', 

103 'ASC-JV': 'ASIA - Java', 

104 'ASC-KA': 'ASIA - Kazakh Uplands', 

105 'ASC-KD': 'ASIA - Koppch-Dagh (Kopet Dagh)', 

106 'ASC-KH': 'ASIA - Great Khingan Mountains (Da Hinggan Ling)', 

107 'ASC-KL': 'ASIA - Kolyma Highlands', 

108 'ASC-KO': 'ASIA - Korea', 

109 'ASC-KP': 'ASIA - Kamchatka Peninsula', 

110 'ASC-KS': 'ASIA - Kara Sea', 

111 'ASC-KU': 'ASIA - Kuen Lun Mountains', 

112 'ASC-LA': 'ASIA - Laptev Sea', 

113 'ASC-LE': 'ASIA - Levantine', 

114 'ASC-LN': 'ASIA - Lena-Alden Plateau', 

115 'ASC-LS': 'ASIA - Lesser Sunda Islands', 

116 'ASC-MA': 'ASIA - Manchurian Plain', 

117 'ASC-ME': 'ASIA - Mesopotamia', 

118 'ASC-MI': 'ASIA - North Molucca Islands', 

119 'ASC-ML': 'ASIA - Malay Peninsula', 

120 'ASC-MO': 'ASIA - Mongolian Plateau', 

121 'ASC-NA': 'ASIA - Nan Shan', 

122 'ASC-NC': 'ASIA - North China Plain', 

123 'ASC-NS': 'ASIA - North Siberia Lowland', 

124 'ASC-OK': 'ASIA - Okhotsk Sea Shelf', 

125 'ASC-OM': 'ASIA - Oman Mountains', 

126 'ASC-PA': 'ASIA - Pamirs', 

127 'ASC-PH': 'ASIA - Philippine Islands', 

128 'ASC-PO': 'ASIA - Pontic Mountains (Karadeniz Daglari)', 

129 'ASC-QA': 'ASIA - Qaidam Basin', 

130 'ASC-RU': 'ASIA - Rub-al-Khali (Empty Quarter)', 

131 'ASC-RY': 'ASIA - Ryukyu Islands', 

132 'ASC-SA': 'ASIA - Sakhalin Island', 

133 'ASC-SC': 'ASIA - South Chinese Highlands', 

134 'ASC-SI': 'ASIA - Sikhote Alin Range', 

135 'ASC-SM': 'ASIA - Strait of Malacoa', 

136 'ASC-SP': 'ASIA - (Central) Siberian Plateau', 

137 'ASC-SR': 'ASIA - Sri Lanka (Ceylon)', 

138 'ASC-SS': 'ASIA - South China Sea Shelf', 

139 'ASC-ST': 'ASIA - Stanovoy Range', 

140 'ASC-SU': 'ASIA - Sumatra', 

141 'ASC-SY': 'ASIA - Sayan Mountains', 

142 'ASC-SZ': 'ASIA - Szechuan (Red) Basin', 

143 'ASC-TA': 'ASIA - Taurus Mountains', 

144 'ASC-TB': 'ASIA - Tarim Basin', 

145 'ASC-TI': 'ASIA - Tibetan Plateau', 

146 'ASC-TL': 'ASIA - Tsin Lin Shan (Qin Lin Shan)', 

147 'ASC-TM': 'ASIA - Taimyr Peninsula', 

148 'ASC-TR': 'ASIA - Transcaucasus Lowlands', 

149 'ASC-TS': 'ASIA - Tien Shan', 

150 'ASC-TU': 'ASIA - Turan Plain (Low Land)', 

151 'ASC-TW': 'ASIA - Taiwan', 

152 'ASC-US': 'ASIA - Ustyurt Plateau', 

153 'ASC-VE': 'ASIA - Verkhoyansk Range', 

154 'ASC-VH': 'ASIA - Vitim Highlands (Upland)', 

155 'ASC-VI': 'ASIA - Vilyuy Plain (Yaket Lowland)', 

156 'ASC-WE': 'ASIA - West Siberia Plain', 

157 'ASC-YA': 'ASIA - Yablonovy Range', 

158 'ASC-YE': 'ASIA - Yellow Sea', 

159 'ASC-YU': 'ASIA - Yunnan Highlands', 

160 'ASC-ZA': 'ASIA - Zagros Mountains', 

161 'ASC-ZE': 'ASIA - Zeya-Bureya Depression', 

162 'AUC-AR': 'AUSTRALIA - Arafura Sea', 

163 'AUC-BA': 'AUSTRALIA - Bass Straight', 

164 'AUC-EH': 'AUSTRALIA - Easterm Highlands', 

165 'AUC-GB': 'AUSTRALIA - Great Barrier Reef', 

166 'AUC-LO': 'AUSTRALIA - Interior Lowlands', 

167 'AUC-NG': 'AUSTRALIA - New Guinea', 

168 'AUC-NO': 'AUSTRALIA - North Island New Zealand', 

169 'AUC-NU': 'AUSTRALIA - Nullarbor Plain', 

170 'AUC-SO': 'AUSTRALIA - South Island New Zealand', 

171 'AUC-TA': 'AUSTRALIA - Tasmania', 

172 'AUC-TI': 'AUSTRALIA - Timor Sea Shelf', 

173 'AUC-WP': 'AUSTRALIA - Western Plateau', 

174 'CGM-AV': 'CARIBBEAN SEA/GULF OF MEXICO - Aves Ridge', 

175 'CGM-BE': 'CARIBBEAN SEA/GULF OF MEXICO - Beata Ridge', 

176 'CGM-CA': 'CARIBBEAN SEA/GULF OF MEXICO - Cayman Trench', 

177 'CGM-CO': 'CARIBBEAN SEA/GULF OF MEXICO - Columbian Basin', 

178 'CGM-GR': 'CARIBBEAN SEA/GULF OF MEXICO - Grenada Basin', 

179 'CGM-GU': 'CARIBBEAN SEA/GULF OF MEXICO - Gulf of Mexico', 

180 'CGM-LA': 'CARIBBEAN SEA/GULF OF MEXICO - Lesser Antilles', 

181 'CGM-VE': 'CARIBBEAN SEA/GULF OF MEXICO - Venezuela Basins', 

182 'CGM-YU': 'CARIBBEAN SEA/GULF OF MEXICO - Yucatan Basin', 

183 'EUC-AE': 'EUROPE - Aegean Sea', 

184 'EUC-AL': 'EUROPE - Alps', 

185 'EUC-AP': 'EUROPE - Appenines', 

186 'EUC-AR': 'EUROPE - Arctic Lowlands', 

187 'EUC-BA': 'EUROPE - Baltic Shield', 

188 'EUC-BE': 'EUROPE - Baetic Mountains', 

189 'EUC-BK': 'EUROPE - Balkan Mountains', 

190 'EUC-BL': 'EUROPE - Black Sea Basin', 

191 'EUC-BR': 'EUROPE - Barents Sea Shelf', 

192 'EUC-BS': 'EUROPE - Baltic Sea', 

193 'EUC-CA': 'EUROPE - Caledonians', 

194 'EUC-CC': 'EUROPE - Causcaus Mountains', 

195 'EUC-CD': 'EUROPE - Caspian Depression', 

196 'EUC-CP': 'EUROPE - Caspian Sea', 

197 'EUC-CR': 'EUROPE - Capathian Mountains', 

198 'EUC-CS': 'EUROPE - (Atlantic) Continental Shelf', 

199 'EUC-FA': 'EUROPE - Faroe-Iceland Ridge', 

200 'EUC-HE': 'EUROPE - Hercynian (Central European)', 

201 'EUC-HU': 'EUROPE - Hungarian Plain', 

202 'EUC-IC': 'EUROPE - Iceland', 

203 'EUC-NO': 'EUROPE - Northern European Plain', 

204 'EUC-NS': 'EUROPE - North Sea', 

205 'EUC-PO': 'EUROPE - Po (Basin) Valley', 

206 'EUC-PY': 'EUROPE - Pyrennees', 

207 'EUC-RU': 'EUROPE - Russian (Eastern European)', 

208 'EUC-SC': 'EUROPE - Sardinia Corsica', 

209 'EUC-SI': 'EUROPE - Sicily', 

210 'EUC-TH': 'EUROPE - Thracian Basin', 

211 'EUC-UK': 'EUROPE - Ukranian Shield', 

212 'EUC-UR': 'EUROPE - Ural Mountains', 

213 'EUC-WA': 'EUROPE - Wallachan Plains', 

214 'INO-AD': 'INDIAN OCEAN - Gulf of Aden', 

215 'INO-AG': 'INDIAN OCEAN - Agulhas Basin', 

216 'INO-AI': 'INDIAN OCEAN - Atlantic Indian Basin', 

217 'INO-AN': 'INDIAN OCEAN - Andaman Sea', 

218 'INO-AP': 'INDIAN OCEAN - Agulhas Plateau', 

219 'INO-AR': 'INDIAN OCEAN - Arabian Basin', 

220 'INO-AT': 'INDIAN OCEAN - Atlantic-Indian Ridge', 

221 'INO-BE': 'INDIAN OCEAN - Bay of Bengal', 

222 'INO-BR': 'INDIAN OCEAN - Broken Ridge', 

223 'INO-CA': 'INDIAN OCEAN - Carlsberg Ridge', 

224 'INO-CE': 'INDIAN OCEAN - Central Indian Basin', 

225 'INO-CL': 'INDIAN OCEAN - Chagos-Laccadive Plateau', 

226 'INO-CR': 'INDIAN OCEAN - Crozet Basin', 

227 'INO-EX': 'INDIAN OCEAN - Exmouth Plateau', 

228 'INO-JT': 'INDIAN OCEAN - Java Trench', 

229 'INO-KE': 'INDIAN OCEAN - Kerguelan Plateau', 

230 'INO-MA': 'INDIAN OCEAN - Madagascar Basin', 

231 'INO-MD': 'INDIAN OCEAN - Madagascar Plateau/Ridge', 

232 'INO-MI': 'INDIAN OCEAN - Mid Indian Ridge', 

233 'INO-MO': 'INDIAN OCEAN - Mozambique Plateau/Ridge', 

234 'INO-MS': 'INDIAN OCEAN - Mascarene Plateau', 

235 'INO-NA': 'INDIAN OCEAN - Natal (Mozambique) Basin', 

236 'INO-NI': 'INDIAN OCEAN - Ninety East Ridge', 

237 'INO-NO': 'INDIAN OCEAN - North Australian Basin', 

238 'INO-NW': 'INDIAN OCEAN - Northwest Australian Basins', 

239 'INO-PE': 'INDIAN OCEAN - Perth Basin', 

240 'INO-PR': 'INDIAN OCEAN - Princess Elizabeth Trough', 

241 'INO-RE': 'INDIAN OCEAN - Red Sea Basin/Rift', 

242 'INO-SA': 'INDIAN OCEAN - South Australian Basin', 

243 'INO-SE': 'INDIAN OCEAN - Southeast Indian Ridge', 

244 'INO-SI': 'INDIAN OCEAN - South Indian Basin', 

245 'INO-SO': 'INDIAN OCEAN - Somali Basin', 

246 'INO-SW': 'INDIAN OCEAN - Southwest Indian Ridge', 

247 'MDS-AB': 'MEDITERRANEAN SEA - Alboran Sea', 

248 'MDS-AD': 'MEDITERRANEAN SEA - South Adriatic Basin', 

249 'MDS-AL': 'MEDITERRANEAN SEA - Algerian Basin', 

250 'MDS-AN': 'MEDITERRANEAN SEA - Antalya Basin', 

251 'MDS-BL': 'MEDITERRANEAN SEA - Black Sea Basin', 

252 'MDS-GE': 'MEDITERRANEAN SEA - Gela Basin', 

253 'MDS-HT': 'MEDITERRANEAN SEA - Hellenic Trench', 

254 'MDS-IO': 'MEDITERRANEAN SEA - Ionian Basin/Sea', 

255 'MDS-LE': 'MEDITERRANEAN SEA - Levantine Basin', 

256 'MDS-ME': 'MEDITERRANEAN SEA - Mediterranean Ridge', 

257 'MDS-TY': 'MEDITERRANEAN SEA - Tyrrhenian Basin/Sea', 

258 'NAC-AL': 'NORTH AMERICA - (Central) Alaska', 

259 'NAC-AP': 'NORTH AMERICA - Appalachian Province', 

260 'NAC-AR': 'NORTH AMERICA - Arctic Coastal Plain', 

261 'NAC-BA': 'NORTH AMERICA - Bahama Platform/Banks', 

262 'NAC-BE': 'NORTH AMERICA - Bear Province', 

263 'NAC-BR': 'NORTH AMERICA - Basin and Range Province', 

264 'NAC-BS': 'NORTH AMERICA - Bering Sea Shelf', 

265 'NAC-CA': 'NORTH AMERICA - Cascade Mountains', 

266 'NAC-CE': 'NORTH AMERICA - Central America', 

267 'NAC-CH': 'NORTH AMERICA - Churchill Province', 

268 'NAC-CI': 'NORTH AMERICA - Canadian (Arctic) Islands', 

269 'NAC-CO': 'NORTH AMERICA - Coastal Plain', 

270 'NAC-CP': 'NORTH AMERICA - Colorado Plateau', 

271 'NAC-CR': 'NORTH AMERICA - Cordillera', 

272 'NAC-GA': 'NORTH AMERICA - Greater Antilles', 

273 'NAC-GL': 'NORTH AMERICA - Greenland', 

274 'NAC-GP': 'NORTH AMERICA - Great Plains', 

275 'NAC-GR': 'NORTH AMERICA - Grenville Province', 

276 'NAC-HP': 'NORTH AMERICA - Hudson Platform', 

277 'NAC-MC': 'NORTH AMERICA - Midcontinent', 

278 'NAC-ME': 'NORTH AMERICA - Mexican Highlands', 

279 'NAC-NA': 'NORTH AMERICA - Nain Province', 

280 'NAC-PB': 'NORTH AMERICA - Pacific Border', 

281 'NAC-RM': 'NORTH AMERICA - Rocky Mountains', 

282 'NAC-SL': 'NORTH AMERICA - Slave Province', 

283 'NAC-SN': 'NORTH AMERICA - Sierra Nevada', 

284 'NAC-SU': 'NORTH AMERICA - Superior Province', 

285 'NAO-BA': 'NORTH ATLANTIC - Baffin Basin', 

286 'NAO-BL': 'NORTH ATLANTIC - Blake Plateau', 

287 'NAO-CA': 'NORTH ATLANTIC - Canary Basin', 

288 'NAO-CE': 'NORTH ATLANTIC - Ceara Abyssal Plain', 

289 'NAO-CV': 'NORTH ATLANTIC - Cape Verde Basin', 

290 'NAO-GR': 'NORTH ATLANTIC - Greenland Basin', 

291 'NAO-GU': 'NORTH ATLANTIC - Guiana Basin', 

292 'NAO-IB': 'NORTH ATLANTIC - Iberian Basin', 

293 'NAO-IC': 'NORTH ATLANTIC - Iceland Basin', 

294 'NAO-IP': 'NORTH ATLANTIC - Icelandic Plateau', 

295 'NAO-IR': 'NORTH ATLANTIC - Irminger Basin', 

296 'NAO-LA': 'NORTH ATLANTIC - Labrador Basin', 

297 'NAO-LO': 'NORTH ATLANTIC - Lofoten Basin', 

298 'NAO-MI': 'NORTH ATLANTIC - Mid-Atlantic Ridge', 

299 'NAO-MO': 'NORTH ATLANTIC - Mohns Ridge', 

300 'NAO-NA': 'NORTH ATLANTIC - North American Basin', 

301 'NAO-NE': 'NORTH ATLANTIC - Newfoundland Basin', 

302 'NAO-NO': 'NORTH ATLANTIC - Norwegian Basin', 

303 'NAO-PT': 'NORTH ATLANTIC - Puerto RicoTrench', 

304 'NAO-RC': 'NORTH ATLANTIC - Rockall Trough', 

305 'NAO-RE': 'NORTH ATLANTIC - Reykjanes Ridge', 

306 'NAO-RO': 'NORTH ATLANTIC - Rockall Plateau/Rise', 

307 'NAO-SI': 'NORTH ATLANTIC - Sierra Leone Basin', 

308 'NAO-SL': 'NORTH ATLANTIC - Sierra Leone Rise', 

309 'NAO-TO': 'NORTH ATLANTIC - Tobago Basin', 

310 'NAO-VO': 'NORTH ATLANTIC - Voring Plateau', 

311 'NAO-VT': 'NORTH ATLANTIC - Cape Verde Terrace/Plateau', 

312 'NAO-WE': 'NORTH ATLANTIC - West European Basin', 

313 'NPO-AB': 'NORTH PACIFIC - Aleutian Basin', 

314 'NPO-AI': 'NORTH PACIFIC - Aleutian Islands', 

315 'NPO-AT': 'NORTH PACIFIC - Aleutian Trench', 

316 'NPO-BA': 'NORTH PACIFIC - Banda and Flores Seas', 

317 'NPO-CA': 'NORTH PACIFIC - Caroline Ridge', 

318 'NPO-CE': 'NORTH PACIFIC - Celebes Basin', 

319 'NPO-CH': 'NORTH PACIFIC - Christmas Ridge', 

320 'NPO-CL': 'NORTH PACIFIC - Clipperton-Clarion Crustal Block', 

321 'NPO-CO': 'NORTH PACIFIC - Colon-Cocos Ridge', 

322 'NPO-CP': 'NORTH PACIFIC - Central Pacific Basin', 

323 'NPO-CR': 'NORTH PACIFIC - Clarion-Molokai Crustal Block', 

324 'NPO-EA': 'NORTH PACIFIC - East Pacific Rise', 

325 'NPO-EC': 'NORTH PACIFIC - East Caroline Basin', 

326 'NPO-EM': 'NORTH PACIFIC - Emperor Seamounts', 

327 'NPO-EP': 'NORTH PACIFIC - East Pacific Basin', 

328 'NPO-GC': 'NORTH PACIFIC - Gulf of Califonia Basin', 

329 'NPO-GL': 'NORTH PACIFIC - Galapagos-Clipperton Crustal Block', 

330 'NPO-GU': 'NORTH PACIFIC - Guatamala Basin', 

331 'NPO-HI': 'NORTH PACIFIC - Hawaiian Islands', 

332 'NPO-IT': 'NORTH PACIFIC - Izu-Ogasawara (Bonin) Trench', 

333 'NPO-JA': 'NORTH PACIFIC - Sea of Japan Basin', 

334 'NPO-JT': 'NORTH PACIFIC - Japan Trench', 

335 'NPO-JU': 'NORTH PACIFIC - Juan de Fuca Ridge', 

336 'NPO-KA': 'NORTH PACIFIC - Kamchatka (Komandorskiye) Basin', 

337 'NPO-KT': 'NORTH PACIFIC - Kuril-Kamchatka Trench', 

338 'NPO-KU': 'NORTH PACIFIC - Kuril Islands', 

339 'NPO-MA': 'NORTH PACIFIC - East Mariana Basin', 

340 'NPO-MD': 'NORTH PACIFIC - Middle American Trench', 

341 'NPO-ME': 'NORTH PACIFIC - Mendocino-Aleutian Crustal Block', 

342 'NPO-MG': 'NORTH PACIFIC - Marshall (Kiribati)-Gilbert Ridges', 

343 'NPO-MI': 'NORTH PACIFIC - Mariana Islands/ Trough', 

344 'NPO-ML': 'NORTH PACIFIC - Melanesian Basin', 

345 'NPO-MO': 'NORTH PACIFIC - Molokai-Murray Crustal Block', 

346 'NPO-MP': 'NORTH PACIFIC - Mid-Pacific Mountains', 

347 'NPO-MT': 'NORTH PACIFIC - Mariana Trench', 

348 'NPO-MU': 'NORTH PACIFIC - Murray-Mendocino Crustal Block', 

349 'NPO-NW': 'NORTH PACIFIC - Northwest Pacific Basin', 

350 'NPO-OK': 'NORTH PACIFIC - Sea of Okhotsk', 

351 'NPO-ON': 'NORTH PACIFIC - Ontong-Java Plateau', 

352 'NPO-PA': 'NORTH PACIFIC - Parece Vela (West Mariana) Basin', 

353 'NPO-PC': 'NORTH PACIFIC - Peru-Chile Trench', 

354 'NPO-PH': 'NORTH PACIFIC - Phillipine Basin', 

355 'NPO-PN': 'NORTH PACIFIC - Panama Basin', 

356 'NPO-PT': 'NORTH PACIFIC - Philippine Trench', 

357 'NPO-RT': 'NORTH PACIFIC - Ryukyu Trench', 

358 'NPO-SC': 'NORTH PACIFIC - South China Sea Basin', 

359 'NPO-SH': 'NORTH PACIFIC - South Honshu Ridge', 

360 'NPO-SU': 'NORTH PACIFIC - Sulu Basin', 

361 'NPO-WC': 'NORTH PACIFIC - West Caroline Basin', 

362 'SAC-AB': 'SOUTH AMERICA - (North) Atlantic Border', 

363 'SAC-AL': 'SOUTH AMERICA - Altiplano', 

364 'SAC-AM': 'SOUTH AMERICA - Amazon Basin', 

365 'SAC-AN': 'SOUTH AMERICA - Andes', 

366 'SAC-BH': 'SOUTH AMERICA - Brazilian Highlands', 

367 'SAC-BR': 'SOUTH AMERICA - Intermontain Basin and Range', 

368 'SAC-CH': 'SOUTH AMERICA - Chaco', 

369 'SAC-CS': 'SOUTH AMERICA - (South Atlantic) Continental Shelf', 

370 'SAC-GH': 'SOUTH AMERICA - Guiana Highlands', 

371 'SAC-LL': 'SOUTH AMERICA - Llanos (Orinoco Basin)', 

372 'SAC-MA': 'SOUTH AMERICA - Maracaibo Lowland/Basin', 

373 'SAC-MC': 'SOUTH AMERICA - Magdalena-Cauca Lowland/Basin', 

374 'SAC-PA': 'SOUTH AMERICA - Pampas', 

375 'SAC-PB': 'SOUTH AMERICA - Pacific Border', 

376 'SAC-PT': 'SOUTH AMERICA - Patagonia', 

377 'SAO-AA': 'SOUTH ATLANTIC - American-Antarctic Ridge', 

378 'SAO-AG': 'SOUTH ATLANTIC - Agulhas Basin', 

379 'SAO-AI': 'SOUTH ATLANTIC - Atlantic-Indian (Antarctic) Basin', 

380 'SAO-AN': 'SOUTH ATLANTIC - Angola Basin', 

381 'SAO-AR': 'SOUTH ATLANTIC - Argentine Basin', 

382 'SAO-BR': 'SOUTH ATLANTIC - Brazil Basin', 

383 'SAO-CA': 'SOUTH ATLANTIC - Cape Basin', 

384 'SAO-FA': 'SOUTH ATLANTIC - Falkland Plateau', 

385 'SAO-FT': 'SOUTH ATLANTIC - Falkland Trough', 

386 'SAO-GB': 'SOUTH ATLANTIC - Guinea Basin', 

387 'SAO-MI': 'SOUTH ATLANTIC - Mid-Atlantic Ridge', 

388 'SAO-RG': 'SOUTH ATLANTIC - Rio Grande Rise', 

389 'SAO-SC': 'SOUTH ATLANTIC - Scotia Basin', 

390 'SAO-SG': 'SOUTH ATLANTIC - South Georgia Basin', 

391 'SAO-SH': 'SOUTH ATLANTIC - Shona-Agulhas Ridges (Cape Rise)', 

392 'SAO-SR': 'SOUTH ATLANTIC - Scotia Ridge', 

393 'SAO-ST': 'SOUTH ATLANTIC - South Sandwich Trench', 

394 'SAO-WA': 'SOUTH ATLANTIC - Walvis Ridge', 

395 'SPO-BA': 'SOUTHERN PACIFIC - Banda Sea Basin', 

396 'SPO-BI': 'SOUTHERN PACIFIC - Bismarck Sea', 

397 'SPO-BO': 'SOUTHERN PACIFIC - Bounty Trough', 

398 'SPO-BT': 'SOUTHERN PACIFIC - New Britain Trench', 

399 'SPO-CH': 'SOUTHERN PACIFIC - Chile Basin', 

400 'SPO-CL': 'SOUTHERN PACIFIC - Chile Rise', 

401 'SPO-CM': 'SOUTHERN PACIFIC - Campbell Plateau', 

402 'SPO-CO': 'SOUTHERN PACIFIC - Coral Sea Basin', 

403 'SPO-CR': 'SOUTHERN PACIFIC - Carnegie Ridge', 

404 'SPO-CT': 'SOUTHERN PACIFIC - Chatham Rise', 

405 'SPO-EA': 'SOUTHERN PACIFIC - East Pacific Rise', 

406 'SPO-EC': 'SOUTHERN PACIFIC - East Coral Sea Basin', 

407 'SPO-EM': 'SOUTHERN PACIFIC - Emerald Basin', 

408 'SPO-FP': 'SOUTHERN PACIFIC - Fiji Plateau (North Fiji Basin)', 

409 'SPO-GA': 'SOUTHERN PACIFIC - Gazelle Basin', 

410 'SPO-GL': 'SOUTHERN PACIFIC - Galapagos Rise', 

411 'SPO-HT': 'SOUTHERN PACIFIC - New Hebrides Trench', 

412 'SPO-KE': 'SOUTHERN PACIFIC - Kermadec-Lau-Tonga Ridges', 

413 'SPO-KT': 'SOUTHERN PACIFIC - Kermadec Trench', 

414 'SPO-LA': 'SOUTHERN PACIFIC - Lau Basin', 

415 'SPO-LH': 'SOUTHERN PACIFIC - Lord Howe Rise', 

416 'SPO-MA': 'SOUTHERN PACIFIC - Macquarie Ridge Complex', 

417 'SPO-MG': 'SOUTHERN PACIFIC - Marquesas-Galapagos Crustal Block', 

418 'SPO-MP': 'SOUTHERN PACIFIC - Manihiki Plateau', 

419 'SPO-MQ': 'SOUTHERN PACIFIC - Marquesas Islands', 

420 'SPO-NA': 'SOUTHERN PACIFIC - Nazca Ridge', 

421 'SPO-NC': 'SOUTHERN PACIFIC - New Caledonia Trough/Basin', 

422 'SPO-NO': 'SOUTHERN PACIFIC - Norfork Ridge', 

423 'SPO-ON': 'SOUTHERN PACIFIC - Ontong-Java Plateau', 

424 'SPO-PA': 'SOUTHERN PACIFIC - Pacific-Antarctic Ridge', 

425 'SPO-PC': 'SOUTHERN PACIFIC - Peru-Chile Trench', 

426 'SPO-PE': 'SOUTHERN PACIFIC - Peru Basin', 

427 'SPO-PN': 'SOUTHERN PACIFIC - Penrhyn Basin', 

428 'SPO-QU': 'SOUTHERN PACIFIC - Queensland Plateau', 

429 'SPO-RO': 'SOUTHERN PACIFIC - Roggeveen Basin', 

430 'SPO-SA': 'SOUTHERN PACIFIC - Samoa Basin', 

431 'SPO-SC': 'SOUTHERN PACIFIC - Santa Cruz Basin', 

432 'SPO-SE': 'SOUTHERN PACIFIC - Southeast Pacific Basin', 

433 'SPO-SF': 'SOUTHERN PACIFIC - South Fiji Basin', 

434 'SPO-SG': 'SOUTHERN PACIFIC - Sala-y-Gomez Ridge', 

435 'SPO-SI': 'SOUTHERN PACIFIC - Solomon Islands', 

436 'SPO-SL': 'SOUTHERN PACIFIC - Solomon Sea Basin', 

437 'SPO-SO': 'SOUTHERN PACIFIC - Society Ridge', 

438 'SPO-SS': 'SOUTHERN PACIFIC - South Shetland Trough', 

439 'SPO-ST': 'SOUTHERN PACIFIC - South Tasman Rise/Plateau', 

440 'SPO-SW': 'SOUTHERN PACIFIC - Southwest Pacific Basin', 

441 'SPO-TA': 'SOUTHERN PACIFIC - Tasman Basin', 

442 'SPO-TI': 'SOUTHERN PACIFIC - Tiki Basin', 

443 'SPO-TT': 'SOUTHERN PACIFIC - Tonga Trench', 

444 'SPO-TU': 'SOUTHERN PACIFIC - Tuamotu Ridge', 

445 'SPO-TV': 'SOUTHERN PACIFIC - Tuvalu (Ellice) Ridge' 

446} 

447 

448 

449PROVINCE_KEYS = PROVINCES.keys() 

450 

451 

452def provinceKey(province): 

453 if province.upper() in PROVINCE_KEYS: 

454 return PROVINCES[province.upper()] 

455 return 'Undefined' 

456 

457 

458def ageKey(age): 

459 for key, value in EONS.items(): 

460 if age.strip().lower() == key.lower(): 

461 return value 

462 return 'Undefined' 

463 

464 

465def referenceKey(ref): 

466 if int(ref[:2]) > 50: 

467 y_prefix = '19' 

468 else: 

469 y_prefix = '20' 

470 return 'Year %s%s - %s. Author %s.' % ( 

471 y_prefix, ref[:2], ref[4], ref[2]) 

472 

473 

474def pubYear(ref): 

475 try: 

476 if int(ref[:2]) > 50: 

477 y_prefix = '19' 

478 else: 

479 y_prefix = '20' 

480 year = '%s%s' % (y_prefix, ref[:2]) 

481 return int(year) 

482 except ValueError: 

483 return None