Update README.md
Browse files
README.md
CHANGED
@@ -7,55 +7,94 @@ license: cc-by-nc-4.0
|
|
7 |
|
8 |
Authors: Ghjulia Sialelli ([gsialelli@ethz.ch](mailto:gsialelli@ethz.ch)), Torben Peters, Jan Wegner, Konrad Schindler
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
from datasets import load_dataset
|
16 |
|
17 |
-
|
|
|
18 |
```
|
19 |
|
20 |
-
This will load an `IterableDataset
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
23 |
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
Each image
|
32 |
|
33 |
-
- **Spectral Bands**:
|
34 |
-
|
35 |
-
|
36 |
-
- **
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
```plaintext
|
43 |
-
(
|
44 |
```
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
- "
|
54 |
-
- "
|
55 |
-
- "
|
56 |
-
- "
|
57 |
-
- "
|
58 |
-
- "
|
59 |
-
- "
|
60 |
-
-
|
61 |
-
-
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
Authors: Ghjulia Sialelli ([gsialelli@ethz.ch](mailto:gsialelli@ethz.ch)), Torben Peters, Jan Wegner, Konrad Schindler
|
9 |
|
10 |
+
|
11 |
+
|
12 |
+
## π Usage
|
13 |
+
|
14 |
+
To get started with this dataset, use the following code snippet:
|
15 |
+
|
16 |
+
```python
|
17 |
+
# Install the datasets library if you haven't already
|
18 |
+
!pip install datasets
|
19 |
+
|
20 |
+
# Import necessary modules
|
21 |
from datasets import load_dataset
|
22 |
|
23 |
+
# Load the dataset
|
24 |
+
dataset = load_dataset('prs-eth/AGBD', trust_remote_code=True, streaming=True)["train"] # Options: "train", "val", "test"
|
25 |
```
|
26 |
|
27 |
+
This code will load the dataset as an `IterableDataset`. You can find more information on how to work with `IterableDataset` objects in the [Hugging Face documentation](https://huggingface.co/docs/datasets/access#iterabledataset).
|
28 |
|
29 |
+
---
|
30 |
+
|
31 |
+
|
32 |
+
## π Dataset Overview
|
33 |
+
|
34 |
+
Each sample in the dataset contains a **pair of pre-cropped, pre-normalized images** along with their corresponding **biomass labels**. For additional resources, including links to the preprocessed uncropped data, please visit the [project page on GitHub](https://github.com/ghjuliasialelli/AGBD/).
|
35 |
|
36 |
+
### βοΈ Load Dataset Options
|
37 |
|
38 |
+
The `load_dataset` function provides the following configuration options:
|
39 |
|
40 |
+
- **`normalize_data`**: `{True, False}`
|
41 |
+
Whether to return **normalized (0-1) data** or **raw values**.
|
42 |
|
43 |
+
- **`additional_features`**: `[]`
|
44 |
+
A list of additional features the dataset should include. *Refer to the documentation below for more details.*
|
45 |
+
|
46 |
+
- **`patch_size`**: `25`
|
47 |
+
The size of the returned patch (in pixels). The maximum value is **25 pixels**, which corresponds to **250 meters**.
|
48 |
+
|
49 |
+
---
|
50 |
+
### πΌοΈ Image Details
|
51 |
|
52 |
+
Each image consists of **24 channels**, organized into the following categories:
|
53 |
|
54 |
+
- **Spectral Bands**:
|
55 |
+
`B01, B02, B03, B04, B05, B06, B07, B08, B8A, B09, B11, B12`
|
56 |
+
|
57 |
+
- **Geographical Coordinates**:
|
58 |
+
`lat_cos, lat_sin, lon_cos, lon_sin`
|
59 |
+
|
60 |
+
- **ALOS PALSAR Bands**:
|
61 |
+
`alos_hh, alos_hv`
|
62 |
+
|
63 |
+
- **Canopy Heights**:
|
64 |
+
`ch, ch_std`
|
65 |
+
|
66 |
+
- **Land Cover Information**:
|
67 |
+
`lc_cos, lc_sin, lc_prob`
|
68 |
+
|
69 |
+
- **Digital Elevation Model (DEM)**:
|
70 |
+
`dem`
|
71 |
+
|
72 |
+
---
|
73 |
+
### π Channel Structure
|
74 |
+
|
75 |
+
The channels are structured as follows:
|
76 |
|
77 |
```plaintext
|
78 |
+
(Spectral Bands) | (Geographical Coordinates) | (ALOS PALSAR Bands) | (Canopy Heights) | (Land Cover Information) | DEM
|
79 |
```
|
80 |
|
81 |
+
```plaintext
|
82 |
+
(B01 B02 B03 B04 B05 B06 B07 B08 B8A B09 B11 B12) | (lat_cos, lat_sin, lon_cos, lon_sin) | (alos_hh, alos_hv) | (ch, ch_std) | (lc_cos, lc_sin, lc_prob) | dem
|
83 |
+
```
|
84 |
+
---
|
85 |
+
### β Additional Features
|
86 |
+
|
87 |
+
You can include a list of additional features from the options below in your dataset configuration:
|
88 |
+
- **`"agbd_se"` - AGBD Standard Error**: The uncertainty estimate associated with the aboveground biomass density prediction for each GEDI footprint.
|
89 |
+
- **`"elev_lowes"` - Elevation**: The height above sea level at the location of the GEDI footprint.
|
90 |
+
- **`"leaf_off_f"` - Leaf-Off Flag**: Indicates whether the measurement was taken during the leaf-off season, which can impact canopy structure data.
|
91 |
+
- **`"pft_class"` - Plant Functional Type (PFT) Class**: Categorization of the vegetation type (e.g., deciduous broadleaf, evergreen needleleaf).
|
92 |
+
- **`"region_cla"` - Region Class**: The geographical area where the footprint is located (e.g., North America, South Asia).
|
93 |
+
- **`"rh98"` - RH98 (Relative Height at 98%)**: The height at which 98% of the returned laser energy is reflected, a key measure of canopy height.
|
94 |
+
- **`"sensitivity"` - Sensitivity**: The proportion of laser pulse energy reflected back to the sensor, providing insight into vegetation density and structure.
|
95 |
+
- **`"solar_elev"` - Solar Elevation**: The angle of the sun above the horizon at the time of measurement, which can affect data quality.
|
96 |
+
- **`"urban_prop"` - Urban Proportion**: The percentage of the footprint area that is urbanized, helping to filter or adjust biomass estimates in mixed landscapes.
|
97 |
+
- **`"gedi_num_days"` - Date of GEDI Footprints**: The specific date on which each GEDI footprint was captured, adding temporal context to the measurements.
|
98 |
+
- **`"s2_num_days"` - Date of Sentinel-2 Image**: The specific date on which each Sentinel-2 image was captured, ensuring temporal alignment with GEDI data.
|
99 |
+
- **`"lat"` - Latitude**: Latitude of the central pixel.
|
100 |
+
- **`"lon"` - Longitude**: Longitude of the central pixel.
|