Learn how to ingest data from common file formats into Tilebox
pandas.DataFrame
or xarray.Dataset
, which can then be directly ingested into Tilebox.
pandas.DataFrame
or an xarray.Dataset
.
How that can be achieved depends on the file format. The following sections show examples for a couple of common
file formats.
pandas.read_csv
function.
Assuming you have a CSV file named data.csv
with the following content. If you want to follow along, you can
download the file here.
pandas.read_parquet
function.
The parquet file used in this example is available here.
geopandas.read_parquet
function.
The GeoParquet file used in this example is available here.
pandas.read_feather
function.
The feather file used in this example is available here.
pandas.DataFrame
or an xarray.Dataset
, it can be ingested into Tilebox directly.
The column names of the pandas.DataFrame
or the variables and coordinates of the xarray.Dataset
are mapped to the fields of the
Tilebox dataset to ingest into.
Depending on how closely the column names or variable/coordinate names match the field names in the Tilebox dataset,
you might need to rename some columns/variables/coordinates before ingestion.