Dataset: photos_clean
Contents
Dataset: photos_clean¶
import src.utils as ut
# Setup the root path of the application
project_path = ut.project_path()
# Load the metadata
meta_filename = [
f"{ut.project_path(1)}/meta/mosquito_alert/photos_clean.json",
f"{ut.project_path(2)}/meta_ipynb/photos_clean.html",
]
metadata = ut.load_metadata(meta_filename)
# Get contentUrl from metadata file
ut.info_meta(metadata)
1. Distribution download from MosquitoAlert webserver¶
Download the hole dataset as a CSV-file.
# Get the dataset meteocat_xema_data form the meteocat_xema catalog
contentUrl, dataset_name, distr_name = ut.get_meta(
metadata, idx_distribution=0, idx_hasPart=None
)
# Make folders for data download
path = f"{project_path}/data/{dataset_name}/{distr_name}"
ut.makedirs(path)
# Download the dataset file (big files could get a while to download)
filename = f"{path}/dataset.csv"
ut.download_file(contentUrl, filename, method="curl")