# Data Hub — full documentation > Research data, tools and shared guidance for sustainable farming. This is the expanded companion to https://cgiar-sustainable-farming.github.io/llms.txt: docs and catalog metadata in one file. Each dataset's complete metadata record is at /catalog/.json; cite datasets per the "How to cite" section on their record page. ## Datasets ## Documentation ### Architecture and automatic updates - URL: https://cgiar-sustainable-farming.github.io/wikis/architecture/ - Cite: CGIAR Sustainable Farming Data Hub (2026-11-06) Architecture and automatic updates. https://cgiar-sustainable-farming.github.io/wikis/architecture/ The SFP site reuses the [CDH Astro website](https://github.com/CGIAR-Climate-Data-Hub/CGIAR-Climate-Data-Hub.github.io). SFP owns its identity, programme pages, catalogue and publication decisions. Upstream licences and attribution are retained. #### Daily refresh A daily GitHub Actions build retrieves the latest selected CDH technical guides, CDH agent skills and SFP catalogue. Every fetch must succeed; lint, type checks and the website build must pass before publication. The previous site stays online if any step fails. Check the site's Actions runs for failures. Source commits and refresh time are recorded in [upstream provenance](/upstream-provenance.json). Only an explicit allowlist of shared guides is refreshed: metadata conventions, data conventions, cloud optimization and glossary. Each page identifies its CDH source. SFP branding, governance, programme text and drafts cannot be overwritten by that content refresh. Skills remain upstream and their documentation links to CDH. #### Component and schema upgrades Website code stays at a tested upstream revision. A weekly workflow proposes upstream code changes in a pull request; maintainers review conflicts and checks before merging. Schema upgrades require deliberate validation and are not silently accepted with content changes. The initial records target CDH v0.5.0. #### Catalogue and STAC The [SFP catalogue](https://github.com/CGIAR-Sustainable-Farming/catalog) separates approved `records/` from `drafts/`. No CDH dataset is copied into SFP holdings by default. Links to upstream examples retain their CDH provenance. The site's `/catalog.json` uses Schema.org; it is not STAC. The [STAC root](/stac/catalog.json) is currently empty scaffolding. No dynamic STAC API or ERA–Carob release is claimed. Populating STAC requires approved records, supported mappings and separate validation of extents, links and assets. ### Cloud-optimizing data - URL: https://cgiar-sustainable-farming.github.io/wikis/cloud-optimizing-data/ - Cite: CGIAR Sustainable Farming Data Hub (2026-10-27) Cloud-optimizing data. https://cgiar-sustainable-farming.github.io/wikis/cloud-optimizing-data/ > Shared CGIAR Climate Data Hub guidance. > [Upstream source](https://github.com/CGIAR-Climate-Data-Hub/CGIAR-Climate-Data-Hub.github.io/blob/46e6208fae339243c8a40dc70c8d88755e41cf72/src/content/wikis/cloud-optimizing-data.md); > reused under CC BY 4.0. SFP publication decisions follow > [SFP review guidance](/wikis/governance/). The Hub aims to make analysis-ready, cloud-optimized (ARCO) data available wherever that is practical and useful. Formats such as Cloud Optimized GeoTIFF, Zarr, and GeoParquet let people read the parts of a dataset they need without downloading the rest. This saves time and bandwidth when working with large climate and agricultural datasets, especially if an analysis only needs one region, a few variables, or a particular period. #### Data as the API The Hub does not provide one API for every dataset. Instead, it follows the idea that the data itself should be the API: well-described files that people and tools can open directly. A [metadata record](/wikis/metadata-conventions/) describes the dataset and links to its files. A reader then requests the chunks it needs, or uses HTTP range requests to read selected parts of a file. This means data can be served from standard web or object storage without a dedicated API server for each dataset. People can keep using the tools they already know, such as GDAL, xarray, terra, and DuckDB, or browser libraries that support the format. Storage and access still have to be maintained, but most of the work of selecting and reading data happens in users' own tools. Datasets hosted elsewhere may already provide suitable files or APIs. The Hub can link to those directly, or prepare an ARCO copy where that would improve access. The [data conventions](/wikis/data-conventions/) explain when the Hub hosts data and how its files are organized. #### Why cloud optimization matters If you need rainfall for a few farms or survey results for one country, downloading the entire dataset can take much longer than the analysis itself. Cloud-optimized files let compatible tools read just the parts you need from the source. This makes queries faster, uses less memory and disk space, and avoids keeping large local copies when you only need a small part of the data. These formats build on established tools and conventions. They support partial reads in different ways: COG organizes a GeoTIFF into internal tiles and overviews, Zarr splits multidimensional arrays into separately stored chunks, and Parquet stores tables column by column in row groups that a query can skip. GeoParquet adds a standard way to store geometries in Parquet. Each tile, chunk, or column is compressed on its own, so files stay small and a reader can fetch and decompress only the parts it needs. Partial reads are the first step. The same property, files any tool can open in place, means the analysis can run next to the data instead of on a laptop: a cloud notebook, a Dask cluster, or compute instance in the same region as the storage. The Hub keeps this open on purpose: the data is not tied to any one compute platform, so it works with whatever you have, from a laptop to a cluster beside the files. #### What makes a file cloud-optimized To read part of a dataset remotely, a tool needs to know where that data is stored and be able to download it separately. This requires: 1. **Independently readable sections.** Tiles, chunks, or column chunks within row groups let a reader retrieve selected parts of a dataset. 2. **Metadata that locates the data.** Headers, chunk metadata, and footers say where everything is, so a reader can find the parts it needs. 3. **Overviews or statistics where supported.** Lower-resolution overviews support map previews, and statistics let readers skip sections that cannot match a query. The catalog metadata helps people find the right dataset. The metadata inside each file then helps their tools find and read the parts they need. #### The formats Choose a format based on the structure of the data, the tools that will read it, and how people are likely to access it. These are the main formats used by the Hub. ##### Rasters: COG A Cloud Optimized GeoTIFF (COG) arranges raster data in tiles, with metadata positioned so a reader can locate it efficiently. Overviews provide lower-resolution versions for displaying larger areas. Readers that support remote access fetch only the tiles or overview they need, and the file is still an ordinary GeoTIFF for everything else. See the [GDAL COG documentation](https://gdal.org/en/stable/drivers/raster/cog.html). Include the missing-value indicator (`nodata`), coordinate reference system (CRS), and any scale or offset in the file so readers can interpret the values. The creation options worth tuning, such as sparse tiles, the predictor, and the tile size, are covered under [Doing it well](#cog). Layers that are accessed on their own are best as separate COGs; a multi-band COG suits bands that are usually read together. ##### Cubes: Zarr Zarr stores multidimensional arrays in compressed chunks and is designed to work directly with cloud object storage. It suits climate datasets with space, time, model, and scenario dimensions. Tools such as xarray and Dask can download and process chunks as needed, including several at once, without loading the whole dataset. This supports analysis of datasets larger than the available memory or local disk. See the [xarray Zarr documentation](https://docs.xarray.dev/en/stable/user-guide/io.html#zarr). Include Climate and Forecast (CF) metadata such as `units`, `long_name`, and a valid `standard_name` where one exists. [GeoZarr](https://github.com/zarr-developers/geozarr-spec) provides conventions for geospatial metadata; use them where the tools producing and reading the data support them. Choose chunk shapes for the way people will use the data: maps, time series, or a mix of both. ##### Tables: Parquet Parquet stores tables column by column in groups of rows. Compression and dictionary encoding reduce file size, particularly for repeated codes and names. Each column within a row group can be read separately, so tools can download the parts an analysis needs without loading the whole table. Readers can also use statistics to skip row groups that do not match a filter. Sorting by commonly filtered fields, such as country and year, makes this more effective. Tools such as DuckDB select columns and skip irrelevant row groups [automatically](https://duckdb.org/docs/stable/data/parquet/overview.html#partial-reading). ##### Vectors: GeoParquet GeoParquet stores vector data in Parquet, with standard metadata describing the geometry column and CRS. It keeps Parquet's column selection and row-group skipping and adds spatial filtering. Compared with Shapefile, it has no sidecar files and none of the field-name and file-size limits. GeoParquet works across GIS and analysis tools with Parquet support, including GeoPandas, DuckDB, and GDAL-based tools. GeoPackage is still a good choice for local GIS work, particularly where its spatial index supports repeated queries over large polygon datasets. ##### Other formats and access options - **Icechunk** adds transactions and versioned snapshots to Zarr, which helps when a store is updated over time. Think Git commits but for data. - **VirtualiZarr and kerchunk** give virtual access to existing files, such as NetCDF or GeoTIFF, without making a full copy of the data. - **FlatGeobuf** supports efficient access to vector features and suits applications such as browser maps. - **PMTiles** packages map tiles for direct access, useful when a dataset needs a map viewer. #### What this means in practice Four common jobs, and what each costs from a classic file versus a cloud-optimized one. The numbers come from published benchmarks, linked in each case. Your own results will depend on the chunking, the connection, and the tool, so treat them as the order of magnitude, not a promise. **You want to look at a global raster, then clip out one country.** From a GeoTIFF stored in strips, both reads pull most of the file. The zoomed-out view needs every pixel, and the country window needs every full-width row that crosses it. From a **COG**, the map view reads one overview and the clip reads the tiles over that country. Opening the file is a single 16 KB request, and a tile costs about three range requests ([tilebench](https://github.com/developmentseed/tilebench)). The full-resolution data is still there in the same file when you need it. The [COG guide](https://cogeo.org/in-depth.html) explains how it works. **You want 40 years of daily rainfall at six farms.** A NetCDF archive is usually hundreds of files, each chunked as maps, so your tool has to open every file and read a chunk from each. AWS measured this on ERA5: a 13-year point series took 193 seconds from NetCDF and under 5 seconds from **Zarr** rechunked for time series. Rechunking MERRA-2 the same way took a query from one or two minutes to under a second ([AWS, 2023](https://aws.amazon.com/blogs/publicsector/decrease-geospatial-query-latency-minutes-seconds-using-zarr-amazon-s3/)). The format was not the main difference. The chunk shape was, and Zarr makes it easy to choose and to read many chunks at once. NetCDF read with the right library over object storage can get close ([Penard et al., 2026](https://gmd.copernicus.org/articles/19/1519/2026/)), but most tools do not read it that way by default. Either way, you can work with a dataset far bigger than your laptop can store. **You want the mean of one column from a survey, or everything for Kenya in 2020.** From a CSV, both reads are the whole file. **Parquet** stores each column separately and keeps min and max values per row group, so one column costs one column, and a file sorted by country and year lets the reader skip every row group that cannot match. On 11 million taxi rows, zstd Parquet was 6.8 times smaller than the CSV and a single-column query ran about 60 times faster ([MotherDuck](https://motherduck.com/learn/csv-vs-parquet-benchmark/)). Those timings were on a local disk. Over HTTP the gap is the download itself, which is larger. Survey data usually compresses better than taxi data, because most answers repeat. **You want the names of every district, or the features around one site.** From a GeoPackage, listing names reads nearly the whole file, geometry and all. **GeoParquet** keeps the name column apart from the geometry, so that read is a few hundred kilobytes. On 10 million AIS points, GeoPackage was 2.6 GB and GeoParquet 470 MB; a full read took 2 minutes 12 seconds versus 7 seconds, and 4 seconds with only some columns selected ([Graser, 2024](https://anitagraser.com/2024/11/23/geoparquet-in-qgis-smaller-faster-files-for-the-win/)). For the area query, sort nearby features together and write the bounding-box column so readers skip row groups outside it. Shapefile is not in the running at this size: converting a 22 GB CSV to GeoParquet took under 5 minutes, to GeoPackage over 2.5 hours, and the Shapefile write failed at its 2 GB limit ([Cloud-Native Geospatial, 2023](https://cloudnativegeo.org/blog/2023/08/performance-explorations-of-geoparquet-and-duckdb/)). #### Doing it well Start with the questions people will ask of the data, then try those reads with the tools they use. The choices below are useful starting points; adjust them when the dataset or its readers need something different. ##### Rules that apply everywhere - **Compress with zstd.** It matches deflate's ratios at several times the decode speed, and GDAL, Zarr (through Blosc), and Parquet all support it. Use deflate only when a reader cannot handle zstd. Never publish uncompressed files. - **Store the precision you have, not the type you were given.** Data with two decimals fits int16 with a scale factor, class codes fit uint8, and float64 is almost never justified. Packing floats to scaled integers halves the raw size before compression starts, and the result compresses far better. - **Make the unit of access a few megabytes.** Tiles, chunks, and row groups that are too small require many separate requests. Large ones mean downloading more unwanted data with each read. Between 1 and 10 MB compressed is a good range. - **Record any rounding.** Rounding to the precision of the measurement can substantially reduce file size. It changes the stored values, so document the precision used in the metadata. - **Test over HTTP with the real reader.** Open the published URL with xarray, rioxarray, or GeoPandas and watch the request count. A layout that works locally can still fetch everything when read remotely. ##### COG - **Tile size.** GDAL's default of 512 x 512 suits analytical rasters read in windows; 256 x 256 suits web maps. Either is fine, but keep one size across a collection. - **Predictor.** `PREDICTOR=2` for integer data and `PREDICTOR=3` for floats stores the differences between neighbouring pixels rather than the values, which compresses smooth fields such as climate surfaces much better. Set it every time. - **Sparse tiles.** `SPARSE_OK=YES` makes tiles that are entirely nodata take no space, which matters for land-only rasters and masked regions. - **Interleave.** `INTERLEAVE=PIXEL` (the default) when bands are read together; `INTERLEAVE=BAND` when people pick single bands. Variables that are never read together belong in separate files. - **Overviews.** They are built by default. Match the resampling to the data, `NEAREST` or `MODE` for classes and `AVERAGE` for continuous values, so a zoomed-out view does not invent values that do not exist. - **Metadata inside the file.** Set `nodata`, the CRS, scale and offset for packed data, and `STATISTICS=YES` so readers can stretch and mask without a full read. ##### Zarr - **Chunk for the questions.** Long stretches of time over small spatial areas suit point histories; short stretches over larger areas suit maps. If people need both, try a compromise and check both kinds of read. Document the choice in the record. - **Chunk size.** Aim for 1 to 10 MB uncompressed per chunk. Hundreds of tiny chunks can take longer to read than a larger chunk, even if the larger chunk contains more data. The [Zarr performance guide](https://zarr.readthedocs.io/en/latest/user-guide/performance/) covers chunking, sharding, and compressor trade-offs in more depth. - **Sharding.** Zarr v3 shards pack many small chunks into one object, so a small chunks for time series do not require millions of separate files. Use it for large stores with small chunks. - **Compressor.** Blosc with zstd, level 3 to 5. Use `bitshuffle` for packed integers and `shuffle` for floats. The shuffle lines up bytes or bits across values so zstd can find the repetition. - **Pack floats.** `dtype: int16` with `scale_factor` and `add_offset` when the required range and precision fit, plus an explicit `_FillValue`. Smaller types reduce storage and the amount of data readers need to decompress. - **One store, consolidated.** Put variables that share a grid in one store with one-dimensional coordinate arrays, and write consolidated metadata so a reader can open the dataset in one request. Dimension order `(time, y, x)` and CF attributes make it work in xarray and GDAL without extra setup. ##### Parquet and GeoParquet - **Types first.** Integers as integers, codes and names as dictionary-encoded strings (the default), dates as date or timestamp types rather than strings, booleans as booleans, and float32 where the precision allows. A column that mixes strings and numbers can require a less efficient storage type. - **Row group size.** Smaller groups skip more precisely on a filter; larger groups mean fewer reads for a scan. Between 50,000 and a few hundred thousand rows, or 10 to 100 MB, suits most Hub tables. The pandas default of one million rows gives a small table a single group and nothing to skip. - **Sort for the filter.** Sort by the columns people filter on, so matching rows share row groups and the statistics can rule out the rest. For spatial data, sort along a Hilbert curve or with GDAL's `SORT_BY_BBOX=YES`, and write the covering bounding-box column. - **Encodings.** Dictionary encoding is on by default and reduces the space needed for repeated codes. For float columns, `use_byte_stream_split=True` is the Parquet equivalent of a shuffle and can improve zstd compression. - **Partition only when everyone filters that way.** Splitting a table into files by country or year helps if every query starts there, and hurts if it leaves thousands of tiny files. Keep each file above a few tens of megabytes. - **GeoParquet specifics.** Geometry as WKB, the CRS in the file metadata, the geometry column last to keep attribute-only reads efficient, and the bounding-box column so spatial filters can skip row groups (`write_covering_bbox=True` in GeoPandas, on by default in recent GDAL). #### Before you publish - **Check the output.** Validate COGs with `rio cogeo validate`. Open Zarr stores with the intended reader and inspect the metadata and chunks; pass `consolidated=True` when the store has consolidated metadata. Inspect Parquet metadata with `pq.ParquetFile(...).metadata`. - **Check partial access.** Try a typical spatial, temporal, or column selection through the published URL to confirm that the layout and hosting support the intended reads. - **Include the metadata needed to use the data.** Record missing values, units, CRS, and relevant statistics inside the files or stores. - **Document layout choices.** Explain the chunking or row-group layout and the access patterns it supports. Use the catalog's fields or linked documentation, with `note` for limitations users need to know about. For Zarr writing options, including metadata consolidation, see the [xarray documentation](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.to_zarr.html). The [tutorials](/tutorials/) show how to work with Hub data. #### Further reading - [Cloud-Native Geospatial Guide](https://guide.cloudnativegeo.org/) - [Cloud-native geospatial zine](https://zines.developmentseed.org/zines/cloud-native/) - [COG spec](https://cogeo.org/), [Zarr spec](https://zarr-specs.readthedocs.io/), [GeoParquet spec](https://geoparquet.org/) ### Data conventions - URL: https://cgiar-sustainable-farming.github.io/wikis/data-conventions/ - Cite: CGIAR Sustainable Farming Data Hub (2026-10-20) Data conventions. https://cgiar-sustainable-farming.github.io/wikis/data-conventions/ > Shared CGIAR Climate Data Hub guidance. > [Upstream source](https://github.com/CGIAR-Climate-Data-Hub/CGIAR-Climate-Data-Hub.github.io/blob/46e6208fae339243c8a40dc70c8d88755e41cf72/src/content/wikis/data-conventions.md); > reused under CC BY 4.0. SFP publication decisions follow > [SFP review guidance](/wikis/governance/). The Hub brings together climate and climate-adjacent datasets produced by CGIAR and partner organizations, alongside external datasets widely used by the research and data community. Users can discover these datasets through a shared catalog, which describes their content, availability, and how to access them. Data may be hosted directly by the Hub or accessed through an external provider. In both cases, the Hub provides consistent metadata to help users understand and use the data. #### The Hub's Federated Approach Data in the Hub is managed and cataloged using a federated approach, where datasets can remain with their providers and are made discoverable through a shared metadata catalog. This includes two categories: - Hub-hosted data: datasets hosted and managed by the Hub. - Externally hosted data: datasets hosted and managed by external providers, but cataloged by the Hub. Both are described through a single, harmonized metadata layer (see [Metadata Conventions](/wikis/metadata-conventions/)). This provides a consistent way to discover datasets, understand their content, and identify how to access and use them, regardless of how and where they are stored. This approach allows the Hub to bring together data from multiple providers without having to host and maintain every dataset itself. Data can remain with the organizations responsible for producing and updating it, while the Hub maintains a shared catalog for discovery and access. ##### To Host or Not to Host The Hub aims to make climate data as accessible as possible, including datasets produced by CGIAR and partner organizations, as well as external datasets widely used by the research and data community. The Hub hosts many datasets produced by teams within CGIAR and partner organizations. This helps make data available beyond personal laptops, internal servers, and individual project sites or pipelines, providing a shared location where others can discover and access it. Where internal or external datasets are already readily available in formats suitable for modern data analysis pipelines, the Hub can catalog and link directly to them. Where access could be improved, the Hub may create and host analysis-ready, cloud-optimized (ARCO) copies. Formats such as Zarr, Cloud Optimized GeoTIFF, and Apache Parquet support efficient access, allowing users to read relevant portions of a dataset without downloading it in full. See [Cloud-optimizing data](/wikis/cloud-optimizing-data/) for more information. The Hub may also provide virtual access layers, such as GDAL GTI/VRT or virtual Zarr stores using Icechunk, that reference existing files without creating full copies. These layers can present thousands of individual files or tiles as a single dataset, simplifying access while limiting data duplication. Virtual access layers depend on the source files remaining available and unchanged. Changes to the underlying data or its location may break the layer and should be addressed as soon as possible. Decisions to host, copy, transform, or redistribute data must follow the governance policy’s [Licensing](/wikis/governance/#licensing) requirements. Responsibilities for the source data, hosted copies, and ongoing maintenance are described under [Resource classes](/wikis/governance/#resource-classes). #### Restricted and embargoed data All metadata published through the Hub must be publicly accessible, including records describing restricted or embargoed datasets. This applies to both Hub-hosted and externally hosted datasets. The underlying data can remain subject to access restrictions. Public metadata allows users to discover that a dataset exists, understand its content, and determine how to obtain access. This supports the FAIR principles by making datasets discoverable and providing the information needed to understand, access, and reuse them. Data does not have to be openly available to be FAIR, but its content, provenance, access conditions, and terms of use should be clearly described. For restricted or embargoed datasets, the metadata must explain the access conditions and, where applicable, how to request access and who to contact. Any embargo period should also be recorded. This makes the dataset discoverable and provides a clear route to requesting access while respecting restrictions on the data itself. For more information, please see [Governance — FAIR Alignment](/wikis/governance/#fair-alignment). --- #### Data Storage Conventions These conventions apply to data hosted by the Hub where the Hub controls the storage layout and output formats. They define how datasets are named, organized, versioned, and documented so they remain consistent and easy to access and use. Externally hosted datasets follow their providers’ conventions. Where the Hub creates a hosted copy or virtual access layer, these conventions apply to the outputs it creates. #### Naming Names should be short, descriptive, unique within the Hub, and URL-safe. Use lowercase names without spaces, following these conventions: 1. Dataset IDs and folder names: kebab-case. Examples: `mapspam-2020`, `cog`. 2. Filenames: hyphens between fields, underscores within fields. Examples: `crop-codes.json`, `glw4-2020.zarr`, `spam2020-physical_area-all.tif`. Preserve identifiers such as physical_area when including them in filenames. 3. Identifiers within the data: snake_case. Use snake_case for layer names, variables, dimensions, coordinates, attributes, and JSON keys. Examples: physical_area, crop_name. Preserve names required by the relevant format or metadata standard. This is a CF convention, and it works unquoted in Python and R. CamelCase should be avoided. Keep the source's stable codes as the machine-facing values (SPAM crop codes like `whea`, `pige`) and carry readable names alongside as labels (`crop_name` coord, `long_name` band tag, `*-codes.json`). Every asset of a dataset uses the same code vocabulary. #### Storage Layout Group each dataset release under a shared prefix, using the catalog record’s `id` and `version`: ```text cdh/data/// ``` Keep all assets and supporting files for a dataset release under a single prefix. This simplifies management, copying, versioning, and deletion by keeping the release together. Within that prefix, organize assets according to their content and format. Virtual access layers may reference source data stored elsewhere. The following illustrates possible assets; datasets do not need to provide every format or follow these exact names: ```text cdh/data/// .zarr/ .icechunk/ .parquet -partitioned.parquet/ year=2020/ crop_code=whea/ part-0.parquet cog/ -.tif crop-codes.json ``` General Guidelines: - **Use descriptive asset names.** Using the dataset ID is a useful default, but names can also distinguish variables, subsets, or other groupings within a dataset. - **Use format suffixes for directory-based datasets.** Prefer `.zarr/`, `.icechunk/`, and `.parquet/` to make their format clear, even though they contain multiple objects. - **Preserve format-specific internal structures.** Naming conventions apply to the dataset’s root name and other Hub-defined paths. Internal files, keys, and partition directories follow the conventions of the format or software that writes them. Hive-style partitions use `key=value/`, with snake_case for partition field names. - **Keep release assets together where practical.** Store data assets and supporting files under the release prefix. - **Describe each asset in the catalog.** A release may contain multiple formats or subsets; the catalog identifies what each asset contains and how to access it. #### Versioning Each dataset release is stored under a separate prefix. The dataset ID and release version correspond to those recorded in the catalog. Releases should sit side by side: ``` cdh/data/climate-2020/v2r2/ cdh/data/climate-2020/v2r3/ ``` Every dataset must have a version, even if it has only one release. Use the producer’s version string where available. Otherwise, assign `1` to the first release and increment it to `2`, `3`, and so on for subsequent source-data releases. Document that the version was assigned by the Hub and record the source retrieval date separately. Changes to published values, coordinates, units, missing-data interpretation, coverage, methodology, or structure that could affect users’ results or interpretation require a new release, including corrections to pipeline errors. Publish these changes under a new release prefix; do not overwrite the previous release. See [Governance — Lifecycle and Maintenance](/wikis/governance/#lifecycle-and-maintenance). When Hub processing changes the data without a new source version, append an incrementing Hub revision suffix to the source version, beginning with `-cdh.1`. For example, `v2r2` becomes `v2r2-cdh.1`, or `1` becomes `1-cdh.1`. Record the source version, processing code revision, publication date, and a summary of the changes in the catalog and output metadata. Storage-only changes, such as different compression or chunk layouts, may replace an existing asset if the decoded values, interpretation, and supported access remain unchanged. Record the processing revision, replacement date, and changes in the catalog and output metadata. Users must not encounter a mixture of old and new files during replacement. Documentation and descriptive metadata corrections may be made in place when they do not change the data or its interpretation. Keep their revision history in version control. Resolve the current release through the catalog. Avoid a separate latest/ copy or alias in storage. The catalog identifies the current release and links to its assets. #### Metadata Within Data Files Include metadata within data files and stores so users and software can interpret them independently of the Hub catalog. Follow the standards and conventions appropriate to the data type and format. - Climate and Forecast (CF) conventions: Use CF conventions for multidimensional climate data where applicable, including NetCDF and Zarr outputs. Describe variables using long_name, appropriate units, and a valid CF standard_name where one exists. Include coordinate information, calendars, missing-value conventions, and, where relevant, cell bounds and cell_methods to explain spatial or temporal aggregation. - Geospatial conventions: Preserve the information needed to locate and interpret the data, including coordinate reference systems and spatial referencing. For Zarr outputs, adopt relevant GeoZarr conventions where supported by the tools used to produce and read them. For vector data stored in Parquet, follow the GeoParquet specification. - Provenance: Record the source dataset and version, processing history, and the recipe or code revision used to produce the output. - Statistics: Include useful format-specific statistics, such as COG band statistics and Parquet column statistics, where appropriate. - Supporting lookups: Provide code-to-name tables and other supporting files alongside the data, preferably as JSON at the release prefix root. Generate these through the recipe to keep them consistent with the outputs. Record the versions of the standards and conventions applied, using their prescribed metadata fields where available. ### GAIA metadata under review - URL: https://cgiar-sustainable-farming.github.io/wikis/dataset-drafts/ - Cite: CGIAR Sustainable Farming Data Hub (2026-11-06) GAIA metadata under review. https://cgiar-sustainable-farming.github.io/wikis/dataset-drafts/ These are **metadata review drafts**, not approved catalogue releases. Source datasets remain with their original providers. The records use the CDH v0.5.0 standard and preserve research caveats. #### Acid soil management spatial products Four GAIA products cover soil pH, modelled lime requirement, acidity-related yield loss and first-year profitability in sub-Saharan Africa. Source research established pH depth 0–30 cm, lime incorporation depth 20 cm, lime units t CaCO3/ha, and gross margin USD/ha. Ordinary GeoTIFF files are not claimed to be cloud-optimized. [Read the YAML draft](https://github.com/CGIAR-Sustainable-Farming/catalog/blob/main/drafts/gaia-acid-soils.yaml) · [Source dashboard](https://www.acidsoils.africa/data) **Status:** passes structural validation. Licensing authority, accountable metadata maintainer, soil observation dates and exact source build still need confirmation. Mixed source years are not a common observation period. Modelled maps are unsuitable for direct field-specific lime prescriptions without local validation. #### Modelled crop responses to lime GAIA site summaries report absolute grain yield estimates and uncertainty in t/ha. Source code identifies 0–20 cm soil preparation; soil chemistry methods and SOC scaling still need confirmation. [Read the YAML draft](https://github.com/CGIAR-Sustainable-Farming/catalog/blob/main/drafts/gaia-liming-modelled-responses.yaml) · [GAIA source](https://www.acidsoils.africa/) **Status:** incomplete. Citation date is missing because the manuscript remains in preparation. Trial dates conflict between sources (2020 versus 2022). No observation date or site geometry has been invented. #### Roles and next steps CIMMYT is provisionally listed as producer/licensor, the SFP catalogue team as metadata maintainer, and João Vasco Silva as source contact. Licensing authority and accountable stewardship need confirmation. Read each record's notes for detailed provenance and limitations. [Report a correction](https://github.com/CGIAR-Sustainable-Farming/catalog/issues/new). Approval requires source-backed resolution and validation; neither draft is published to STAC. ### Review and publication - URL: https://cgiar-sustainable-farming.github.io/wikis/governance/ - Cite: CGIAR Sustainable Farming Data Hub (2026-11-06) Review and publication. https://cgiar-sustainable-farming.github.io/wikis/governance/ #### Dataset inclusion criteria Resources should support sustainable farming research, carry traceable source evidence and clear reuse terms, and have a responsible source contact. Supporting resources from other programmes keep their original attribution. #### Review process Metadata begin in `drafts/` in the [SFP catalogue repository](https://github.com/CGIAR-Sustainable-Farming/catalog). Resolve missing facts, verify licensing authority and source links, and validate against the shared CDH standard before promoting a record into `records/` through a reviewed pull request. Structural validation does not establish scientific accuracy or permission to redistribute data. Named catalogue stewardship and final approval responsibilities still require confirmation. No inherited CDH committee or reviewer arrangement is asserted as SFP policy. Draft updates never automatically promote a dataset. Daily website refreshes publish the approved catalogue and link separately to review drafts. Failed checks leave the previous site online. ### Metadata Conventions - URL: https://cgiar-sustainable-farming.github.io/wikis/metadata-conventions/ - Cite: CGIAR Sustainable Farming Data Hub (2026-10-23) Metadata Conventions. https://cgiar-sustainable-farming.github.io/wikis/metadata-conventions/ > Shared CGIAR Climate Data Hub guidance. > [Upstream source](https://github.com/CGIAR-Climate-Data-Hub/CGIAR-Climate-Data-Hub.github.io/blob/46e6208fae339243c8a40dc70c8d88755e41cf72/src/content/wikis/metadata-conventions.md); > reused under CC BY 4.0. SFP publication decisions follow > [SFP review guidance](/wikis/governance/). Metadata is the core of the Hub as the shared layer that brings all of the datasets together. Whether data is hosted by the Hub or an external provider, each dataset is described through a common metadata standard. These records allow people and software to discover datasets, understand their content, and identify how to access and use them. This provides a consistent way to discover datasets, understand their content, and access them, regardless of where the underlying data is stored. The catalog, data access tools, and analysis workflows can all work from these records. See [Data conventions](/wikis/data-conventions/) for more about the Hub's approach to hosting and accessing data. Each dataset is cataloged as a YAML record describing its content, coverage, provenance, license, and access options, including links to its data assets. This provides a consistent description of data stored in different locations and formats without requiring it to be hosted in one place. Users should be able to understand what a dataset contains, assess its suitability, and find out how to use it from the metadata before downloading it. This page explains the Hub’s metadata conventions and why they are used. The Metadata Standard defines the fields and requirements for a record. > **NOTE:** For help creating and submitting one, see > [Authoring a metadata record](/tutorials/authoring-a-metadata-record/). #### Why a shared metadata standard The Hub needs metadata that is easy to write, read, and validate, and that can describe the different resources included in the catalog. Using a shared standard means users and tools can find the same types of information in consistent fields, reducing the need to interpret each dataset's own documentation separately. The Hub uses the [CDH metadata standard](https://github.com/CGIAR-Climate-Data-Hub/cdh-metadata-standard) to structure its catalog records. Records are written in YAML to make them easy for people to edit and for software to read. A schema is used to validate their structure, required fields, and permitted values. The standard covers datasets, software, services, and documents. Many of its fields are drawn directly from STAC, DCAT, Frictionless Data, and OGC API Records. It provides a common authoring format from which records can be mapped and published to the community standard most appropriate to each resource type. This allows metadata authored for the Hub to be used by other community tools and catalogs. #### Working with metadata before data Metadata should allow users and tools to find and select data before opening the files. Records should describe coverage, resolution, variables, units, formats, and limitations so users can assess whether a dataset meets their needs. Analysis workflows can then use the links in the metadata to access the data, reading only the relevant area or time period where the format supports it. Workflows should select and record the dataset version used so later updates do not silently change their inputs. #### Metadata design principles The metadata fields were chosen to help people and tools understand the data, reuse it appropriately, and find resources that meet their needs. ##### Readable and understandable by people and machines The same metadata should be useful to someone browsing the catalog, a script accessing data, or an AI agent helping with an analysis. Clear descriptions explain what a dataset represents and how it can be used. Structured fields allow software to work with information such as coverage, units, and access conditions directly. Fields such as `note` and the usage guidance in `cdh.usage` help explain known biases, limitations, and situations where the data should not be used. These fields can also point users to more suitable alternatives. For example, explaining that a dataset is too coarse for field-level decisions helps both a person and an AI agent avoid using it at the wrong scale. ##### Supporting FAIR data and reuse The Hub's metadata supports the [FAIR principles](https://www.gofair.foundation/fair-principles): making data Findable, Accessible, Interoperable, and Reusable. Stable identifiers and versions identify the resource being used, while provenance records where it came from and how it was processed. Shared fields and vocabularies help other tools interpret the same information consistently. Licenses and access conditions explain how data can be obtained and reused. Citation and attribution fields explain how to acknowledge its producers, and contacts identify who to ask for help. These details should be available in the record so users can understand the conditions attached to the data before using it. All Hub metadata must be public, including records for restricted or embargoed data. These records must explain the access conditions, any applicable embargo, and how to request access or who to contact. Publishing metadata does not change the data's terms of use. Records should remain available if the data is withdrawn or becomes unavailable, with their status updated to explain what has changed. See [Governance — FAIR Alignment](/wikis/governance/#fair-alignment). ##### Discoverable and searchable Discovery fields help users find relevant data across the catalog. Titles, descriptions, and keywords support text searches, while domains group resources by subject. Other fields, such as bbox, geography, temporal coverage, and commodities, are intended to allow users to search and filter datasets quickly based on their needs. Having these as structured fields, rather than being buried in descriptions or other text fields, allows easy filtering by humans and machines without having to extract the information from prose. Further, controlled vocabularies and strict structures give these fields consistent values so the same subject is not split across different spellings or labels. Keywords allow additional search terms, such as common names, abbreviations, or methods. Together, these fields allow people and tools to narrow a search before inspecting individual datasets. A search for maize projections in a particular region, for example, can use the commodity, location, scenario, and time period described in the metadata. #### Keeping records current The metadata record should be updated and aligned with changes to the data, location, access conditions, license, and availability. Metadata corrections are tracked through version control; changes to the underlying data follow the [data versioning conventions](/wikis/data-conventions/#versioning). ## Tutorials ### Authoring a metadata record - URL: https://cgiar-sustainable-farming.github.io/tutorials/authoring-a-metadata-record/ - Cite: CGIAR Sustainable Farming Data Hub (2026-10-23) Authoring a metadata record. https://cgiar-sustainable-farming.github.io/tutorials/authoring-a-metadata-record/ This guide outlines how to prepare and submit a metadata record for a dataset, whether it is hosted by the Hub or an external provider. The [metadata conventions](/wikis/metadata-conventions/) explain why the Hub uses shared metadata. The standard's [authoring guide](https://github.com/CGIAR-Climate-Data-Hub/cdh-metadata-standard/blob/main/spec/authoring-guide.md) provides detailed field requirements and examples. Review the submitted and approved records in the [catalog repository](https://github.com/CGIAR-Sustainable-Farming/catalog/tree/main/records) to get an idea of the fields and the metadata shape. The [website catalog](https://cgiar-sustainable-farming.github.io/catalog/) shows the same records in a more human-readable format. #### Gather the source information Start with the dataset's documentation, data links, and any associated publications. Identify the release you are describing, who produced it, and who can answer questions about it. Have the license and citation details available. You can describe restricted or embargoed data too. In that case, gather the access conditions and instructions for requesting access. #### Choose an authoring method There are several ways to create a record: - **Use the form.** The [metadata app](https://cgiar-climate-data-hub.github.io/CDH-metadata-app/) provides field descriptions and validation. Copy the generated YAML into the SFP submission form below; its own Submit button sends to CDH. - **Use an AI agent.** The [cdh-metadata skill](https://github.com/CGIAR-Climate-Data-Hub/skills/tree/main/.agents/skills/cdh-metadata) helps draft a record from source documentation and data. See the [AI and agents page](/ai/) for how to use Hub skills. - **Write YAML directly.** Start from a [validated example](https://github.com/CGIAR-Climate-Data-Hub/cdh-metadata-standard/tree/main/examples) and follow the authoring guide. #### Describe the dataset Write a short description of what the data represents and what it can be used for. Add the information needed to understand, access, and cite it: - Dataset identifier and version, producer, and responsible contacts. - Geographic and temporal coverage, including resolution where relevant. - Variables, units, missing values, and any categories or dimensions. - Source data and processing applied to produce the outputs. - Data links, available formats, and access conditions. - License, attribution, citation, and known limitations. Use the fields provided by the standard. Tools can help extract technical details, but contributors still need to explain what the data means and any limitations on its use. For dataset identifiers and release versions, see the [data conventions](/wikis/data-conventions/). #### Add additional metadata Compile any additional metadata that may be useful for a user to access the data. This can include code examples, documentation often provided with the dataset, and categorical descriptions. An AGENTS.md file can also be included and linked to from the record to provide additional usage guidelines and context to AI agents. Do not repeat facts the record already states, such as extent or license, in these files; duplicated facts drift apart. #### Check the record Check the metadata against the source documentation and the data itself, including any AI-generated content. Confirm that links point to the intended release and that the record agrees with the data's variables, units, and coverage. Validate the record against the applicable schema using the metadata app or the validation checklist in the [authoring guide](https://github.com/CGIAR-Climate-Data-Hub/cdh-metadata-standard/blob/main/spec/authoring-guide.md#validation-checklist). Passing validation checks the record's structure and required fields; it does not confirm that every value is correct. Flag anything that needs clarification during review. #### Submit for review Paste the generated YAML into the [SFP submission form](https://github.com/CGIAR-Sustainable-Farming/catalog/issues/new?template=submit-record.yml), or open a pull request in the [catalog repository](https://github.com/CGIAR-Sustainable-Farming/catalog). Submissions are reviewed manually until the submission GitHub App is configured. Include any questions or gaps that need help from the reviewers. Submissions follow the [governance review process](/wikis/governance/#review-process) before publication. Reviewers may ask for corrections or additional information. The [contribute page](/contribute/) outlines the wider dataset submission process. ### Getting started with the Sustainable Farming Data Hub - URL: https://cgiar-sustainable-farming.github.io/tutorials/getting-started/ - Cite: CGIAR Sustainable Farming Data Hub (2026-07-17) Getting started with the Sustainable Farming Data Hub. https://cgiar-sustainable-farming.github.io/tutorials/getting-started/ Start with the [metadata review drafts](/wikis/dataset-drafts/). The approved catalogue is initially empty. The steps below describe how published records can be explored once available; the linked GLW4 example remains a CDH resource. #### Find a dataset Start at the [catalog](/catalog/). Three ways in: - **Search** — names, sources, variables, and keywords all match, so "livestock", "FAO", or "zarr" each work. - **Filters** — narrow by domain, geography, commodity, file format, license, or access. - **Spatial search** — draw a box on the map and only datasets whose coverage intersects it remain. Every card states the essentials up front: what the data is, who publishes it, its coverage and resolution, and its license. #### Read the record Click through to a dataset's page — say [GLW4 livestock density](https://cgiar-climate-data-hub.github.io/catalog/glw4-2020/) — and give it two minutes before committing: - **Quick facts** summarise coverage, resolution, and the time span. - **Schema** lists the variables and dimensions — what's actually in the cube. - **Appropriate use** notes, where present, tell you what the dataset should _not_ be used for. Read them; they're written from experience. - **Access & use** lists every distribution with its format and a worked code example. #### Get the data into your tool - **Python or R** — every asset on a record page carries a copy-paste snippet tailored to its format, streaming just the window you need. No boilerplate to write; start from the record page, or see a full worked analysis in the [TLU notebook](https://cgiar-climate-data-hub.github.io/tutorials/tlu_glw4/). - **Desktop GIS** — Cloud-Optimized GeoTIFF URLs load directly in QGIS or ArcGIS as raster layers: copy the asset URL from the record page and add it as a data source. No download required. - **Just the files** — assets that are single files carry a Download button. - **AI assistants** — the Hub is machine-readable end to end; point your assistant at the [AI & agents page](/ai/) for skills and endpoints. #### Cite what you use Every record page has a copy-ready citation (APA, BibTeX, and more) and, where one exists, a DOI. Cite the original producers — for GLW4 that's FAO — alongside the Hub record; the prepared citations do this for you. #### Where next - [Tutorials](/tutorials/) — runnable, worked analyses. - [Wikis](/wikis/) — the standards and methods behind the data. - [FAQ](/faq/) — licensing, formats, and contribution questions. - Stuck? [Open an issue](/contribute/#report) and the team will pick it up. ## FAQ ### What is the Sustainable Farming Data Hub? A catalogue and documentation hub for sustainable farming research, reusing CDH software, metadata standards and technical guidance. Initial GAIA records are [review drafts](/wikis/dataset-drafts/); the approved catalogue is initially empty. Each resource retains its original attribution, licence and limitations. ### Do I need an account to access the data? No. All published data is openly accessible over HTTPS and S3 — stream it directly with tools like xarray or rioxarray, or download individual files. There is no registration, API key, or quota. ### How is the data licensed? All data in the Hub is required to carry a license to align with FAIR principles. Each record carries the license its producer released it under, often CC-BY-4.0, but not always. The license is shown on every dataset page with a link to the full terms. What you may do with the data follows from that license, so check the one on the dataset you are using. Whichever it is, cite the dataset as given in its citation block. ### What formats does the Hub use? Cloud-optimised formats: Zarr for multi-dimensional data cubes and Cloud-Optimised GeoTIFF (COG) for rasters. That means you can read just the spatial or temporal window you need without downloading whole archives. ### How do I cite a dataset? Every dataset page has a copy-ready citation and, where one exists, a DOI. Cite the original producers (for example FAO or IFPRI) alongside the Hub record. ### Can I contribute a dataset? Yes. Convert your data to a cloud-optimized format, author a metadata record against the Hub metadata standard, and submit it for review. Reviewers check scope, metadata, and licensing before publication — see the [contribute page](/contribute/) for the full path. ### I found a problem with a dataset — where do I report it? Open an issue on the Hub's GitHub organization, or email the point of contact listed on the dataset page. Records are versioned, so corrections are tracked and attributed.