PeterTor commited on
Commit
271b41d
β€’
1 Parent(s): dbcc455

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +76 -37
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
- ## Usage
11
- You can use this dataset with the following lines of code:
12
- ```
13
- #!pip install datasets
14
- from datasets import load_dataset
 
 
 
 
 
 
15
  from datasets import load_dataset
16
 
17
- dataset = load_dataset('prs-eth/BioMap',trust_remote_code=True,streaming=True,additional_features=["s2_num_days"],normalize_data=True,patch_size = 15 )["train"] # or val or test
 
18
  ```
19
 
20
- This will load an `IterableDataset` β€” you can learn more about how to operate on them at [this link](https://huggingface.co/docs/datasets/access#iterabledataset).
21
 
 
 
 
 
 
 
22
 
 
23
 
24
- ## Dataset Description
25
 
26
- Each dataset sample consists of a pair of pre-cropped, pre-normalized images and their corresponding biomass labels.
27
- The full project page including links to preprocessed uncropped data can be found on [github.com/ghjuliasialelli/AGBD/](https://github.com/ghjuliasialelli/AGBD/)
28
 
29
- ### Image Details
 
 
 
 
 
 
 
30
 
31
- Each image contains 24 channels, organized as follows:
32
 
33
- - **Spectral Bands**: B01, B02, B03, B04, B05, B06, B07, B08, B8A, B09, B11, B12
34
- - **Geographical Coordinates**: lat_cos, lat_sin, lon_cos, lon_sin
35
- - **ALOS PALSAR Bands**: alos_hh, alos_hv
36
- - **Canopy Heights**: ch, ch_std
37
- - **Land Cover Information**: lc_cos, lc_sin, lc_prob
38
- - **Digital Elevation Model**: dem
39
-
40
- ### Channel Structure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  ```plaintext
43
- (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
44
  ```
45
 
46
- ### additional_features
47
- you can add a list of additional_features to the dataset out of the following:
48
-
49
- - "agbd_se" AGBD Standard Error: The uncertainty estimate associated with the aboveground biomass density prediction for each GEDI footprint.
50
- - "elev_lowes": Elevation: The height above sea level at the location of the GEDI footprint.
51
- - "leaf_off_f" Leaf-Off Flag: Indicator of whether the measurement was taken during the leaf-off season, which affects canopy structure data.
52
- - "pft_class" Plant Functional Type (PFT) Class: Categorization of the vegetation type (e.g., deciduous broadleaf, evergreen needleleaf).
53
- - "region_cla" Region Class: The geographical area where the footprint is located (e.g., North America, South Asia).
54
- - "rh98" RH98 (Relative Height at 98\%): The height at which 98\% of the returned laser energy is reflected, serving as a key measure of canopy height.
55
- - "sensitivity" Sensitivity: The proportion of laser pulse energy reflected back to the sensor, providing insight into vegetation density and structure.
56
- - "solar_elev" Solar Elevation: The angle of the sun above the horizon at the time of measurement, which can affect the quality of the data.
57
- - "urban_prop" Urban Proportion: The percentage of the footprint area that is urbanized, which helps filter or adjust biomass estimates in mixed landscapes.
58
- - "gedi_num_days" Date of GEDI Footprints: The specific date on which each GEDI footprint was captured, providing temporal context to the measurements.
59
- - "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.
60
- - 'lat' Latitude of the central pixel
61
- - 'lon' Longitude of the central pixel
 
 
 
 
 
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.