Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Recording where your data came from and what others need to know about it

1. Why documentation matters

Data acquisition is unfortunately not complete when a file appears in your folder. You also should know where the data came from, whether you are allowed to use it, how it was accessed, what limitations it has and how another person could retrieve or understand it.

For SDS320, this matters because your final project includes a public repository and a short report. Another student should be able to understand your data choices and reproduce the main workflow.

In the previous pages, you identified raster and vector candidates. Here, you turn those choices into documentation.


2. Core idea

Every dataset in your project should have a short documentation trail:

source
→ access route
→ licence
→ version or date
→ spatial and temporal coverage
→ processing status
→ limitations
→ citation or attribution

This documentation protects your project from common problems: forgotten download links, unclear licences, missing metadata, inconsistent filenames and results that cannot be reproduced.


3. Workflow

Step 1: Record source information

For every dataset, record:

Dataset name:
Provider:
Access URL or API:
Download or access date:
Version or collection ID:
Licence:
Citation or attribution text:

Best do this before preprocessing. Once data are renamed, clipped or merged, it becomes harder to reconstruct their origin.


Step 2: Record metadata

For spatial data, document:

Study area:
Original spatial extent:
Coordinate reference system:
Spatial resolution or geometry type:
Temporal coverage:
Acquisition date or period:
File format:

This information helps you explain whether the data fit your research question.


Step 3: Separate raw and processed

Keep raw downloads separate from processed files.

A simple structure is:

data/
├── raw/
├── processed/
└── training/

Raw data should remain unchanged. Processed data can include clipped, reprojected, cleaned, merged or tiled files.

This makes it easier to rerun processing and explain what changed.


Step 4: Document access steps

For large data, restricted data or cloud-hosted assets, do not assume the reader can see what you did.

Write short instructions:

To obtain the Sentinel-2 data:
1. Open the Planetary Computer STAC API.
2. Search collection `sentinel-2-l2a`.
3. Use the bbox and date range listed below.
4. Filter cloud cover below the chosen threshold.
5. Download or load the selected assets.

If the exact data cannot be shared publicly, explain how the data can be accessed or why they cannot be redistributed.


Step 5: Track limitations

Data limitations belong in your notes, report and sometimes figure captions.

Common limitations include:

A clear limitation is better than a hidden weakness.


4. Python reactivation

You can keep a lightweight data log in a table.

import pandas as pd

data_log = pd.DataFrame(
    [
        {
            "dataset": "Sentinel-2 Level-2A",
            "provider": "Microsoft Planetary Computer / ESA",
            "collection": "sentinel-2-l2a",
            "access_date": "YYYY-MM-DD",
            "role": "input imagery",
            "licence_note": "check collection metadata",
            "limitation": "cloud cover and 10 m resolution",
        }
    ]
)

data_log

You can export this table to your repository:

from pathlib import Path

output_path = Path("data/data_inventory.csv")
output_path.parent.mkdir(parents=True, exist_ok=True)

data_log.to_csv(output_path, index=False)

5. Data citation in the report

Your short report should not contain a full data-management manual. It should include enough information for the reader to understand the data basis.

A compact sentence can work well:

The analysis used Sentinel-2 Level-2A imagery accessed through the Microsoft Planetary Computer STAC API for [area] during [date range]. Scenes were filtered by [quality criterion], and the main limitation was [limitation].

For vector data:

Building footprint data were obtained from [provider] for [area] and used as [context/training/validation]. Completeness and alignment were checked visually against [imagery/source].

6. Common pitfalls

PitfallHow to avoid it
Downloading data without recording the sourceFill in a data log immediately.
Forgetting licence informationCheck provider metadata before using data in figures or repositories.
Mixing raw and processed filesKeep separate folders.
Renaming files without preserving meaningUse names that include source, date, area and processing level.
Citing only the platform, not the datasetRecord dataset or collection name as well as access route.
Hiding data limitationsState limitations briefly and clearly.

7. Mini task

Create one data documentation entry for a dataset you may use.

Use this template:

Dataset name:
Provider:
Access route:
Access date:
Version / collection / release:
Spatial coverage:
Temporal coverage:
Resolution or geometry type:
Format:
Licence:
Role in project:
Processing planned:
Main limitation:
How I will cite or acknowledge it:

8. Key takeaways