Repository navigation
MBTiles
Carles Tena edited this page Oct 6, 2026
·
1 revision
The CLI subcommand is disabled; the Python to_mbtile method remains implemented.
from nes import open_netcdf
dataset = open_netcdf("daily_sectors.nc", parallel_method="T")
dataset.load()
dataset.to_mbtile(mbtiles_path="tiles", domain="IP")
dataset.close()Use a dataset with one timestep per day: the method processes each timestep and names the file daily_<domain>_<YYYYMMDD>.mbtiles. Multiple timesteps on the same date target the same name. It exports level 0 and interprets variables as sectors.
parallel_method="T" is required, including serial execution. Optional geostructure supplies an existing geometry file; otherwise the method creates the grid geostructure. The geospatial driver must support MBTiles output. Cells containing NaN in any sector, or zero in every sector, are excluded. Sector totals and a tile-content hash are stored as metadata.