Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix invalid raster/eo bands/statistics definitions in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Apr 5, 2024
1 parent 4eb30da commit 2155745
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 90 deletions.
167 changes: 98 additions & 69 deletions examples/item_eo_bands.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,44 +98,60 @@
"norm_by_channel": true,
"norm_type": "z-score",
"resize_type": null,
"parameters": null,
"statistics": {
"minimum": null,
"maximum": null,
"mean": [
1354.40546513,
1118.24399958,
1042.92983953,
947.62620298,
1199.47283961,
1999.79090914,
2369.22292565,
2296.82608323,
732.08340178,
12.11327804,
1819.01027855,
1118.92391149,
2594.14080798
],
"stddev": [
245.71762908,
333.00778264,
395.09249139,
593.75055589,
566.4170017,
861.18399006,
1086.63139075,
1117.98170791,
404.91978886,
4.77584468,
1002.58768311,
761.30323499,
1231.58581042
],
"count": null,
"valid_percent": null
},
"norm_with_clip_values": null,
"statistics": [
{
"mean": 1354.40546513,
"stddev": 245.71762908
},
{
"mean": 1118.24399958,
"stddev": 333.00778264
},
{
"mean": 1042.92983953,
"stddev": 395.09249139
},
{
"mean": 947.62620298,
"stddev": 593.75055589
},
{
"mean": 1199.47283961,
"stddev": 566.4170017
},
{
"mean": 1999.79090914,
"stddev": 861.18399006
},
{
"mean": 2369.22292565,
"stddev": 1086.63139075
},
{
"mean": 2296.82608323,
"stddev": 1117.98170791
},
{
"mean": 732.08340178,
"stddev": 404.91978886
},
{
"mean": 12.11327804,
"stddev": 4.77584468
},
{
"mean": 1819.01027855,
"stddev": 1002.58768311
},
{
"mean": 1118.92391149,
"stddev": 761.30323499
},
{
"mean": 2594.14080798,
"stddev": 1231.58581042
}
],
"pre_processing_function": {
"format": "python",
"expression": "torchgeo.datamodules.eurosat.EuroSATDataModule.collate_fn"
Expand All @@ -148,19 +164,17 @@
"tasks": [
"classification"
],
"result": [
{
"shape": [
-1,
10
],
"dim_order": [
"batch",
"class"
],
"data_type": "float32"
}
],
"result": {
"shape": [
-1,
10
],
"dim_order": [
"batch",
"class"
],
"data_type": "float32"
},
"classification_classes": [
{
"value": 0,
Expand Down Expand Up @@ -248,91 +262,91 @@
],
"eo:bands": [
{
"name": "coastal",
"name": "B01",
"common_name": "coastal",
"description": "Coastal aerosol (band 1)",
"center_wavelength": 0.443,
"full_width_half_max": 0.027
},
{
"name": "blue",
"name": "B02",
"common_name": "blue",
"description": "Blue (band 2)",
"center_wavelength": 0.49,
"full_width_half_max": 0.098
},
{
"name": "green",
"name": "B03",
"common_name": "green",
"description": "Green (band 3)",
"center_wavelength": 0.56,
"full_width_half_max": 0.045
},
{
"name": "red",
"name": "B04",
"common_name": "red",
"description": "Red (band 4)",
"center_wavelength": 0.665,
"full_width_half_max": 0.038
},
{
"name": "rededge1",
"name": "B05",
"common_name": "rededge",
"description": "Red edge 1 (band 5)",
"center_wavelength": 0.704,
"full_width_half_max": 0.019
},
{
"name": "rededge2",
"name": "B06",
"common_name": "rededge",
"description": "Red edge 2 (band 6)",
"center_wavelength": 0.74,
"full_width_half_max": 0.018
},
{
"name": "rededge3",
"name": "B07",
"common_name": "rededge",
"description": "Red edge 3 (band 7)",
"center_wavelength": 0.783,
"full_width_half_max": 0.028
},
{
"name": "nir",
"name": "B08",
"common_name": "nir",
"description": "NIR 1 (band 8)",
"center_wavelength": 0.842,
"full_width_half_max": 0.145
},
{
"name": "nir08",
"name": "B8A",
"common_name": "nir08",
"description": "NIR 2 (band 8A)",
"center_wavelength": 0.865,
"full_width_half_max": 0.033
},
{
"name": "nir09",
"name": "B09",
"common_name": "nir09",
"description": "NIR 3 (band 9)",
"center_wavelength": 0.945,
"full_width_half_max": 0.026
},
{
"name": "cirrus",
"name": "B10",
"common_name": "cirrus",
"description": "SWIR - Cirrus (band 10)",
"center_wavelength": 1.375,
"full_width_half_max": 0.026
},
{
"name": "swir16",
"name": "B11",
"common_name": "swir16",
"description": "SWIR 1 (band 11)",
"center_wavelength": 1.61,
"full_width_half_max": 0.143
},
{
"name": "swir22",
"name": "B12",
"common_name": "swir22",
"description": "SWIR 2 (band 12)",
"center_wavelength": 2.19,
Expand All @@ -341,13 +355,17 @@
],
"raster:bands": [
{
"name": "coastal",
"common_name": "coastal",
"description": "Coastal aerosol (band 1)",
"center_wavelength": 0.443,
"full_width_half_max": 0.027
"name": "B01",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
"spatial_resolution": 60,
"scale": 0.0001,
"offset": 0,
"unit": "m"
},
{
"name": "B02",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -357,6 +375,7 @@
"unit": "m"
},
{
"name": "B03",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -366,6 +385,7 @@
"unit": "m"
},
{
"name": "B04",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -375,6 +395,7 @@
"unit": "m"
},
{
"name": "B05",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -384,6 +405,7 @@
"unit": "m"
},
{
"name": "B06",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -393,6 +415,7 @@
"unit": "m"
},
{
"name": "B07",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -402,6 +425,7 @@
"unit": "m"
},
{
"name": "B08",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -411,6 +435,7 @@
"unit": "m"
},
{
"name": "B8A",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -420,6 +445,7 @@
"unit": "m"
},
{
"name": "B09",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -429,6 +455,7 @@
"unit": "m"
},
{
"name": "B10",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -438,6 +465,7 @@
"unit": "m"
},
{
"name": "B11",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand All @@ -447,6 +475,7 @@
"unit": "m"
},
{
"name": "B12",
"nodata": 0,
"data_type": "uint16",
"bits_per_sample": 15,
Expand Down
Loading

0 comments on commit 2155745

Please sign in to comment.