--- type: dataset title: Sismología de Bolivia — Observatorio San Calixto description: Catálogo oficial de eventos sísmicos registrados en Bolivia con coordenadas epicentrales, profundidad y magnitud Richter. spatial: country: BO regions: [BO-L, BO-P, BO-O, BO-C, BO-S, BO-H, BO-T, BO-B, BO-N] granularity: point temporal: start: 2009-04-18T11:29:00Z end: 2026-11-19T03:35:25Z frequency: irregular timezone: America/La_Paz quality: status: verified completeness: 1.0 contracts: - type: datapackage path: ./datapackage.yaml lineage: source: - name: Observatorio San Calixto url: http://www.sancalixto.org.bo version: 1.0.0 updated_at: '2026-11-19T13:38:50Z' --- # Sismología de Bolivia — Observatorio San Calixto Catálogo oficial de eventos sísmicos registrados en Bolivia por el **Observatorio San Calixto (OSC)**, entidad privada sin fines de lucro de la Compañía de Jesús y centro oficial de monitoreo sismológico en Bolivia. ## Contenido del Conjunto de Datos - **`data/sismology.csv`**: Registro completo de eventos sísmicos con fecha, hora local y UTC, coordenadas geográficas del epicentro (WGS84), profundidad focal en kilómetros, magnitud estimada en escala Richter y enlaces al reporte oficial de registro. - **`data/sismology.parquet`**: Versión columnar optimizada con tipado estricto para análisis analíticos de alto rendimiento. ## Análisis Espacio-Temporal Recomendado - **Distribución de Magnitudes**: Filtrar por magnitud $\ge 4.0$ para sismos perceptibles y de relevancia estructural. - **Frecuencia Mensual**: Agrupación por `DATE_TRUNC('month', fecha_hora_registro)` para evaluar actividad sísmica acumulada. - **Profundidad Focal**: Clasificación entre sismos superficiales ($< 70$ km, mayor riesgo destructivo) e intermedios/profundos ($> 70$ km, comunes en la placa de Nazca subducida bajo los Andes bolivianos). ```ojs const resourcePath = "sismos:sismology"; const res = await datamesh.query({ resource_uri: resourcePath }); // Inyectar CSS de Leaflet si no existe if (!document.getElementById("leaflet-css")) { const link = document.createElement("link"); link.id = "leaflet-css"; link.rel = "stylesheet"; link.href = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"; document.head.appendChild(link); } // Cargar librería Leaflet de forma resiliente let L = window.L; if (!L) { try { L = await require("leaflet@1.9.4"); } catch (e) { const mod = await import("https://esm.sh/leaflet@1.9.4"); L = mod.default || mod; } if (!L && window.L) L = window.L; } const dateIdx = res.columns.indexOf("fecha_hora_registro"); const magIdx = res.columns.indexOf("magnitud"); const depthIdx = res.columns.indexOf("profundidad"); const latIdx = res.columns.indexOf("latitud"); const lonIdx = res.columns.indexOf("longitud"); const regIdx = res.columns.indexOf("region_base"); const linkIdx = res.columns.indexOf("enlace_detalle"); const distIdx = res.columns.indexOf("distancia_epicentral"); // Contenedor del mapa (evita colisión con parámetro formal 'container') const mapDiv = document.createElement("div"); mapDiv.style.width = "100%"; mapDiv.style.height = "640px"; mapDiv.style.borderRadius = "10px"; mapDiv.style.overflow = "hidden"; mapDiv.style.border = "1px solid #cbd5e1"; mapDiv.style.boxShadow = "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)"; mapDiv.style.position = "relative"; mapDiv.style.zIndex = "1"; const map = L.map(mapDiv, { center: [-16.8, -64.8], zoom: 6, minZoom: 4, maxZoom: 14 }); // Capas base cartográficas const positron = L.tileLayer("https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png", { attribution: '© CARTO | © OpenStreetMap' }); const darkMatter = L.tileLayer("https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png", { attribution: '© CARTO | © OpenStreetMap' }); const topo = L.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}", { attribution: '© Esri, USGS' }); const osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: '© OpenStreetMap contributors' }); positron.addTo(map); L.control.layers({ "Mapa Claro (CartoDB)": positron, "Relieve Topográfico (Esri)": topo, "Mapa Oscuro (CartoDB)": darkMatter, "Calles (OpenStreetMap)": osm }, null, { position: "topright" }).addTo(map); L.control.scale({ metric: true, imperial: false, position: "bottomleft" }).addTo(map); // Código de color por profundidad focal function getDepthColor(depth) { if (isNaN(depth)) return "#94a3b8"; if (depth < 70) return "#ef4444"; // Superficial (<70 km, rojo cortical) if (depth < 150) return "#f97316"; // Intermedio (70-150 km, naranja) if (depth < 300) return "#2563eb"; // Subducción (150-300 km, azul) return "#7c3aed"; // Profundo (>300 km, púrpura) } function getDepthLabel(depth) { if (isNaN(depth)) return "No determinada"; if (depth < 70) return "Superficial (< 70 km)"; if (depth < 150) return "Intermedio (70–150 km)"; if (depth < 300) return "Subducción (150–300 km)"; return "Profundo (> 300 km)"; } // Mayor profundidad = mayor transparencia (menor opacidad) function getDepthOpacity(depth) { if (isNaN(depth)) return { fill: 0.5, stroke: 0.8 }; const normalized = Math.min(1, Math.max(0, depth / 650)); const fill = Math.max(0.15, +(0.90 - normalized * 0.75).toFixed(2)); const stroke = Math.max(0.35, +(1.0 - normalized * 0.65).toFixed(2)); return { fill, stroke }; } // Escala exponencial que hace el tamaño notablemente mayor según la magnitud Richter function getMarkerRadius(mag) { if (isNaN(mag) || mag <= 0) return 3; return Math.min(45, Math.round(Math.pow(1.85, mag - 2.0) * 2.2 + 2)); } // Renderizador Canvas para rendimiento fluido con miles de sismos const canvasRenderer = L.canvas({ padding: 0.5 }); const markersLayer = L.layerGroup().addTo(map); // Parsear y ordenar sismos const records = res.rows .map(r => ({ lat: parseFloat(r[latIdx]), lon: parseFloat(r[lonIdx]), mag: parseFloat(r[magIdx]), depth: parseFloat(r[depthIdx]), region: r[regIdx] || "Sin registrar", fecha: r[dateIdx] || "", dist: distIdx >= 0 ? r[distIdx] : "", link: linkIdx >= 0 ? r[linkIdx] : "" })) .filter(d => !isNaN(d.lat) && !isNaN(d.lon) && !isNaN(d.mag)) .sort((a, b) => a.mag - b.mag); let counterEl; function renderMarkers(minMag = 2.0, depthFilter = "all") { markersLayer.clearLayers(); const filtered = records.filter(d => { if (d.mag < minMag) return false; if (depthFilter === "superficial" && (isNaN(d.depth) || d.depth >= 70)) return false; if (depthFilter === "intermedio" && (isNaN(d.depth) || d.depth < 70 || d.depth >= 150)) return false; if (depthFilter === "subduccion" && (isNaN(d.depth) || d.depth < 150 || d.depth >= 300)) return false; if (depthFilter === "profundo" && (isNaN(d.depth) || d.depth < 300)) return false; return true; }); for (const d of filtered) { const radius = getMarkerRadius(d.mag); const color = getDepthColor(d.depth); const opacities = getDepthOpacity(d.depth); const depthLabel = getDepthLabel(d.depth); const marker = L.circleMarker([d.lat, d.lon], { renderer: canvasRenderer, radius: radius, fillColor: color, color: color, weight: 1, opacity: opacities.stroke, fillOpacity: opacities.fill }); const popupHtml = `