Skip to content

Commit

Permalink
[wip] add more tests to ensure behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Apr 24, 2024
1 parent 893b4ff commit a58635b
Show file tree
Hide file tree
Showing 4 changed files with 650 additions and 139 deletions.
172 changes: 66 additions & 106 deletions examples/item_eo_bands.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands directly in the Model Asset.",
"stac_version": "1.0.0",
"stac_extensions": [
"https://crim-ca.github.io/mlm-extension/v1.0.0/schema.json",
Expand Down Expand Up @@ -260,99 +261,6 @@
],
"post_processing_function": null
}
],
"eo:bands": [
{
"name": "B01",
"common_name": "coastal",
"description": "Coastal aerosol (band 1)",
"center_wavelength": 0.443,
"full_width_half_max": 0.027
},
{
"name": "B02",
"common_name": "blue",
"description": "Blue (band 2)",
"center_wavelength": 0.49,
"full_width_half_max": 0.098
},
{
"name": "B03",
"common_name": "green",
"description": "Green (band 3)",
"center_wavelength": 0.56,
"full_width_half_max": 0.045
},
{
"name": "B04",
"common_name": "red",
"description": "Red (band 4)",
"center_wavelength": 0.665,
"full_width_half_max": 0.038
},
{
"name": "B05",
"common_name": "rededge",
"description": "Red edge 1 (band 5)",
"center_wavelength": 0.704,
"full_width_half_max": 0.019
},
{
"name": "B06",
"common_name": "rededge",
"description": "Red edge 2 (band 6)",
"center_wavelength": 0.74,
"full_width_half_max": 0.018
},
{
"name": "B07",
"common_name": "rededge",
"description": "Red edge 3 (band 7)",
"center_wavelength": 0.783,
"full_width_half_max": 0.028
},
{
"name": "B08",
"common_name": "nir",
"description": "NIR 1 (band 8)",
"center_wavelength": 0.842,
"full_width_half_max": 0.145
},
{
"name": "B8A",
"common_name": "nir08",
"description": "NIR 2 (band 8A)",
"center_wavelength": 0.865,
"full_width_half_max": 0.033
},
{
"name": "B09",
"common_name": "nir09",
"description": "NIR 3 (band 9)",
"center_wavelength": 0.945,
"full_width_half_max": 0.026
},
{
"name": "B10",
"common_name": "cirrus",
"description": "SWIR - Cirrus (band 10)",
"center_wavelength": 1.375,
"full_width_half_max": 0.026
},
{
"name": "B11",
"common_name": "swir16",
"description": "SWIR 1 (band 11)",
"center_wavelength": 1.61,
"full_width_half_max": 0.143
},
{
"name": "B12",
"common_name": "swir22",
"description": "SWIR 2 (band 12)",
"center_wavelength": 2.19,
"full_width_half_max": 0.242
}
]
},
"assets": {
Expand All @@ -368,43 +276,95 @@
"$comment": "Following 'eo:bands' is required to fulfil schema validation of 'eo' extension.",
"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,
"full_width_half_max": 0.242
}
]
},
Expand Down
Loading

0 comments on commit a58635b

Please sign in to comment.