If your source data uses a different file format, see Ingesting from common file formats for examples of loading CSV, Parquet, GeoParquet, and NetCDF data before ingestion.
Prerequisites
- You have a Tilebox API key.
- You have installed the Python SDK.
- You have created the catalog from Build a spatio-temporal catalog, or an equivalent spatio-temporal dataset with matching fields.
Download the example metadata
The example metadata is available as a GeoParquet file:Read and preview the source data
Read the GeoParquet file with Geopandas. The resultingGeoDataFrame includes a geometry column, which Tilebox uses for spatial indexing in spatio-temporal datasets.
Python
Output
lonboard.
Python

Match the catalog schema
Prepare a DataFrame with the fields required by the catalog. This example targets the schema from Build a spatio-temporal catalog:time, geometry, product_id, location, cloud_cover, and processing_level.
Python
id and ingestion_time are generated by Tilebox during ingestion, so you do not include them in the input DataFrame.
Connect to the catalog collection
Access the catalog dataset and create or reuse a collection for the MODIS products.Python
internal_imagery_catalog with the code name of your catalog if you used a different value in the previous guide.
Ingest the products
Ingest the prepared DataFrame into the collection. Tilebox validates each row against the dataset schema before storing it.Python
Output
Query the ingested catalog
After ingestion, query the collection by time and location. The query model is the same one used by Tilebox open data catalogs.Python
Output
View the data in the Console
You can also inspect ingested datapoints in the Tilebox Console. Open the dataset, select the collection, and click a datapoint to inspect its fields and geometry.
Next steps
Build a spatio-temporal catalog
Create and document the catalog schema used by this guide.
Query data
Learn more about querying datasets by time, location, collection, and ID.
Ingest from common file formats
Load CSV, Parquet, GeoParquet, and NetCDF data before ingestion.

