{ "cells": [ { "cell_type": "markdown", "id": "18079553", "metadata": { "papermill": { "duration": 0.012227, "end_time": "2024-07-01T13:29:35.908888", "exception": false, "start_time": "2024-07-01T13:29:35.896661", "status": "completed" }, "tags": [] }, "source": [ "# Metadata table" ] }, { "cell_type": "code", "execution_count": 1, "id": "0c07195e", "metadata": { "execution": { "iopub.execute_input": "2024-07-01T13:29:35.922660Z", "iopub.status.busy": "2024-07-01T13:29:35.920805Z", "iopub.status.idle": "2024-07-01T13:29:35.935885Z", "shell.execute_reply": "2024-07-01T13:29:35.935081Z" }, "papermill": { "duration": 0.024455, "end_time": "2024-07-01T13:29:35.938501", "exception": false, "start_time": "2024-07-01T13:29:35.914046", "status": "completed" }, "tags": [ "remove-input" ] }, "outputs": [], "source": [ "# NO CODE\n", "from json2html import json2html\n", "import json, re\n", "from IPython.display import HTML" ] }, { "cell_type": "code", "execution_count": 2, "id": "238495a6", "metadata": { "execution": { "iopub.execute_input": "2024-07-01T13:29:35.954104Z", "iopub.status.busy": "2024-07-01T13:29:35.953423Z", "iopub.status.idle": "2024-07-01T13:29:35.960836Z", "shell.execute_reply": "2024-07-01T13:29:35.959256Z" }, "papermill": { "duration": 0.017996, "end_time": "2024-07-01T13:29:35.963852", "exception": false, "start_time": "2024-07-01T13:29:35.945856", "status": "completed" }, "tags": [ "parameters", "remove-input" ] }, "outputs": [], "source": [ "# NO CODE\n", "# PARAMETERS\n", "path = './meta/environment/meteocat_xema'" ] }, { "cell_type": "code", "execution_count": 3, "id": "f4c03d2a", "metadata": { "execution": { "iopub.execute_input": "2024-07-01T13:29:35.980111Z", "iopub.status.busy": "2024-07-01T13:29:35.979564Z", "iopub.status.idle": "2024-07-01T13:29:35.986344Z", "shell.execute_reply": "2024-07-01T13:29:35.985213Z" }, "papermill": { "duration": 0.018381, "end_time": "2024-07-01T13:29:35.989710", "exception": false, "start_time": "2024-07-01T13:29:35.971329", "status": "completed" }, "tags": [ "injected-parameters" ] }, "outputs": [], "source": [ "# Parameters\n", "path = \"./meta/mosquito_alert/muni_preds\"\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "14266c74", "metadata": { "execution": { "iopub.execute_input": "2024-07-01T13:29:36.004572Z", "iopub.status.busy": "2024-07-01T13:29:36.004110Z", "iopub.status.idle": "2024-07-01T13:29:36.024812Z", "shell.execute_reply": "2024-07-01T13:29:36.023731Z" }, "papermill": { "duration": 0.029743, "end_time": "2024-07-01T13:29:36.026877", "exception": false, "start_time": "2024-07-01T13:29:35.997134", "status": "completed" }, "tags": [ "remove-input", "full-width" ] }, "outputs": [ { "data": { "text/html": [ "
$schema../schema.json
@context
@vocabhttps://schema.org/
qudthttp://qudt.org/schema/qudt/
xsdhttp://www.w3.org/2001/XMLSchema#
@typeDataset
namemuni_preds
conditionsOfAccessPublic
descriptionDaily estimates of Mosquito Alert probabilities for Ae. albopictus in Spain, aggregated by municipality. The day for which these estimates are made is shown in last 10 characters of the file name (before the file extension) in the format YYYY-MM-DD. So, for example, muni_preds_2018-02-01.json contains estimates for 1 February 2018.
urlhttps://github.com/Mosquito-Alert/MosquitoAlertES/tree/main/data
licensehttps://creativecommons.org/publicdomain/zero/1.0/
citation
  • Palmer, J. R. B., “Citizen science provides a reliable and scalable tool to track disease-carrying mosquitoes”, Nature Communications, vol. 8, 2017. doi:10.1038/s41467-017-00914-9
temporalCoverage2018-01-01/..
spatialCoverage
@typePlace
nameSpain
sameAshttps://en.wikipedia.org/wiki/Spain
distribution
  • @typeDataDownload
    namemosquitoalert_github
    descriptionDistribution from Mosquito-Alert/MosquitoAlertES Github repository
    encodingFormatJSON
    workExample
    contentUrl
    • https://raw.githubusercontent.com/Mosquito-Alert/MosquitoAlertES/main/data/muni_preds_{DATE}.json
    contentSize230kB
variableMeasured
  • @typePropertyValue
    nameNATCODE
    descriptionUnique 11 digit code for municipality taken from Instituto Geográfico Nacional (IGN) Spanish municipality polygons dataset: recintos_municipales_inspire_peninbal_etrs89. The code is formed, from left to right, from codes for country (2 digits), autonomous communit (2 digits), province (2 ditis), and municipality (5 digits).
    qudt:dataTypexsd:int
  • @typePropertyValue
    nameNAMEUNIT
    descriptionMunicopality name, taken from Instituto Geográfico Nacional (IGN) Spanish municipality polygons dataset: recintos_municipales_inspire_peninbal_etrs89.
    qudt:dataTypexsd:string
  • @typePropertyValue
    nameCODNUT1
    descriptionNUTS 1 region containing the municipality. NUTS 1 refers to 'major socio-economic regions' and for Spain IGN identifies it as 'Grandes Regiones'.
    qudt:dataTypexsd:string
  • @typePropertyValue
    nameCODNUT2
    descriptionNUTS 2 region containing the municipality. NUTS 2 refers to 'basic regions for the application of regional policies' and for Spain IGN identifies it as 'CCAA'.
    qudt:dataTypexsd:string
  • @typePropertyValue
    nameCODNUT3
    descriptionNUTS 3 region containing the municipality. NUTS 4 refers to 'small regions for specific diagnoses' and for Spain IGN identifies it as 'Provincia'.
    qudt:dataTypexsd:string
  • @typePropertyValue
    namema_prob_mean
    descriptionMosquito Alert Ae. albopictus probability estimated for the municipality. The estimate is made by first estimating the probabilities of at least one valid Ae. albopictus report being submitted to Mosquito Alert on the day in question from a grid of points across Spain at 1 km intervals, assuming a fixed, uniform sampling effort of 0.025. Point estimates are then averaged across municipalities.
    qudt:dataTypexsd:float
    maxValue1
    minValue0
  • @typePropertyValue
    namema_prob_mean_codnut3
    descriptionMosquito Alert Ae. albopictus probability estimated for the NUTS 3 region (province) containing the municipality. The estimates are made in the same way as for ma_prob_mean, but with points averaged across provinces.
    qudt:dataTypexsd:float
    maxValue1
    minValue0
measurementTechnique
creator
  • @typeProject
    @idMA
    nameMosquito Alert, Proyecto Coordinado por CREAF, CEAB-CSIC e ICREA
    contactPoint
    @typeContactPoint
    emailinfo@mosquitoalert.com
    urlhttp://www.mosquitoalert.com/
  • @typePerson
    @idJP
    namePalmer, John Rossman Bertholf
    identifierhttps://orcid.org/0000-0002-2648-7860
    contactPoint
    @typeContactPoint
    contactTypeprincipal investigator
    emailjohn.palmer@upf.edu
    urlhttps://www.upf.edu/web/gritim/entry/-/-/50722/adscripcion/john-rossman-bertholf-palmer/
" ], "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# NO CODE\n", "# FULL WIDTH\n", "with open(f'{path}.json') as f:\n", " data = json.load(f)\n", "\n", "table = json2html.convert(json=data, clubbing=False)\n", "table_sub = re.sub('', '', table)\n", "\n", "HTML(table_sub)\n", "\n", "# Run the following in the command line to build a html table\n", "# $ jupyter nbconvert --to html --no-input --no-prompt build_tables.ipynb\n" ] }, { "cell_type": "code", "execution_count": null, "id": "6bcbbb45", "metadata": { "papermill": { "duration": 0.005818, "end_time": "2024-07-01T13:29:36.040738", "exception": false, "start_time": "2024-07-01T13:29:36.034920", "status": "completed" }, "tags": [] }, "outputs": [], "source": [] } ], "metadata": { "interpreter": { "hash": "524d3359b179f3b444361f48db8ae048bd8c237924fac1cd48a4c6f8144f6452" }, "kernelspec": { "display_name": "Python 3.7.10 64-bit ('scidb': conda)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.4" }, "metadata": { "interpreter": { "hash": "e3961729dbf4ff77740ff872c9a3eef08621b5b434e3d8d81026af4505918c74" } }, "papermill": { "default_parameters": {}, "duration": 1.40609, "end_time": "2024-07-01T13:29:36.270347", "environment_variables": {}, "exception": null, "input_path": "build_info.ipynb", "output_path": "./meta_ipynb/muni_preds.ipynb", "parameters": { "path": "./meta/mosquito_alert/muni_preds" }, "start_time": "2024-07-01T13:29:34.864257", "version": "2.3.4" } }, "nbformat": 4, "nbformat_minor": 5 }