play_arrowdatasetViewer.description
The Consortium of Organizations for Strong Motion Observation Systems (COSMOS) owns and publishes a database, managed by CESMD, of acceleration records of seismic events captured by the instruments of the various members that compose it. In that database it is possible to find records from various stations for the 1985 San Antonio earthquake and several of its aftershocks. This collection contains the records available in the original database, allowing you to view and download each of the stations recorded by COSMOS.
Collection records are available in *npz* format for Python and *mat* for Matlab. In the case of *npz* files, these can be read through the following example
```python
import numpy as np
with np.load(filename, allow_pickle=True) as f:
data = {}
for key, value in f.items():
data[key] = value.item()
```
play_arrowdatasetViewer.preview
datasetViewer.previewCollectionInfo
Fecha (UTC) | Latitud | Longitud | Profundidad [km] | Magnitud [*] | Tipo magnitud | Estaciones | Identificador |
---|
1985-03-03 22:47:07 | -33.135 | -71.871 | 33.0 | 7.8 | Ms | Cauquenes; Chillán Institute; Colbún; Constitución; Hualane; Illapel; Iloca; La Ligua; Llayllay; Llolleo; Los Vilos; Melipilla; Papudo; Pichilemu; Quintay; Rapel; San Felipe; San Fernando; San Isidro; Santiago (Endesa Bldg); Talca; Valparaíso El Almendral; Valparaíso; Ventanas; Viña del Mar; Zapallar | 151 |
1985-03-03 23:38:31 | -32.738 | -71.215 | 33.0 | 6.3 | - | Llolleo; Valparaíso; Viña del Mar | 152 |
1985-04-08 23:27:25 | -33.025 | -71.974 | 33.0 | 5.0 | - | Llolleo | 153 |
1985-04-09 01:56:59 | -34.131 | -71.618 | 37.8 | 7.2 | Ms | Cauquenes; Constitución; Iloca; Quintay; Rapel; San Fernando; Santiago (Endesa Bldg); Santiago; Ventanas | 154 |
play_arrowdatasetViewer.download
datasetViewer.download1 datasetViewer.here. datasetViewer.download3
play_arrowdatasetViewer.programaticAccess
datasetViewer.programaticAccess1 itrend-ds:7c473f40d7862735
datasetViewer.programaticAccess2 Identificador
datasetViewer.programaticAccess3 datasetViewer.programaticAccess4 datasetViewer.programaticAccess5 datasetViewer.here
```python
import pytrend
import pandas as pd
session = pytrend.itrend_developer_tools()
session.set_credentials(
access_key_id = '', # Type your access_key_id
secret_access_key = '' # Type your secret_access_key
)
# Dataset
dataset_id = 'itrend-ds:7c473f40d7862735'
collection_id = 'Identificador'
# Get available formats
dataset_formats = session.get_dataset_formats(dataset_id)
fmt = dataset_formats[0] # Choose your preferred format: dataset_formats = [csv, xlsx, geojson, shp]
# Download file
response = session.download_file(dataset_id, fmt)
# Download an element
filename = response.get('filename')
delimiter = response.get('delimiter')
df = pd.read_csv(filename, delimiter)
element_formats = session.get_element_formats(dataset_id)
efmt = element_formats[0] # Choose your preferred format: element_formats = [npz, mat]
for r, row in df.iterrows():
element_id = row[collection_id]
element_response = session.download_file(dataset_id, efmt, element_id)
break
```
play_arrowdatasetViewer.attribution
datasetViewer.attributionMessage1
datasetViewer.attribution1 Center for Engineering Strong Motion Data, «Non-corrected acceleration records from the COSMOS network». datasetViewer.attribution2
file_copy
datasetViewer.attributionMessage2
datasetViewer.attribution3 Center for Engineering Strong Motion Data («Non-corrected acceleration records from the COSMOS network»), datasetViewer.attribution4
file_copy
play_arrowdatasetViewer.permanentLink
datasetViewer.permanentLinkDescription
https://www.plataformadedatos.cl/datasets/en/7c473f40d7862735
file_copy
play_arrowdatasetViewer.metadata
datasetViewer.noMetadata