# These are configuration parameters that can be set by users
# The parameters enable access to the cloud collections

sources:
    MPC                     :
        s3_class            : ["mpc_cube", "stac_cube", "eo_cube",
                               "raster_cube"]
        service             : "STAC"
        rstac_version       : "1.0.0"
        url                 : "https://planetarycomputer.microsoft.com/api/stac/v1"
        token_url           : "https://planetarycomputer.microsoft.com/api/sas/v1/token"
        collections         :
            MOD13Q1-6.1     : &mpc_mod13q1
                bands       :
                    NDVI    : &mpc_modis_ndvi
                        missing_value : -3000
                        minimum_value : -2000
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution    : 250
                        band_name     : "250m_16_days_NDVI"
                        data_type     : "INT2S"
                    EVI     :
                        <<: *mpc_modis_ndvi
                        band_name     : "250m_16_days_EVI"
                    BLUE    : &mpc_modis_blue
                        missing_value : -1000
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution   :  250
                        band_name     : "250m_16_days_blue_reflectance"
                        data_type     : "INT2S"
                    RED     :
                        <<: *mpc_modis_blue
                        band_name     : "250m_16_days_red_reflectance"
                    NIR     :
                        <<: *mpc_modis_blue
                        band_name     : "250m_16_days_NIR_reflectance"
                    MIR     :
                        <<: *mpc_modis_blue
                        band_name     : "250m_16_days_MIR_reflectance"
                    CLOUD   : &mpc_modis_cloud
                        bit_mask      : false
                        band_name     : "250m_16_days_pixel_reliability"
                        values        :
                            0         : "Use with confidence"
                            1         : "Useful, but look at other QA information"
                            2         : "Target covered with snow/ice"
                            3         : "Target not visible, covered with cloud"
                            255       : "Fill/No Data-Not Processed"
                        interp_values : [3, 255]
                        resolution   :  250
                        data_type     : "INT1U"
                satellite       : "TERRA"
                sensor          : "MODIS"
                collection_name : "modis-13Q1-061"
                open_data       : true
                open_data_token : false
                metadata_search : "tile"
                ext_tolerance   : 0.01
                grid_system     : "STG"
                dates           : "2000 to now"
            MOD10A1-6.1      : &mpc_mod10a1
                bands       :
                    SNOW    : &mpc_modis09_snow
                        missing_value : -1000
                        minimum_value : 0
                        maximum_value : 100
                        scale_factor  : 0.003921569
                        offset_value  : 0
                        resolution   :  500
                        band_name     : "NDSI_Snow_Cover"
                        data_type     : "INT1U"
                    ALBEDO     :
                        <<: *mpc_modis09_snow
                        band_name     : "Snow_Albedo_Daily_Tile"
                satellite       : "TERRA"
                sensor          : "MODIS"
                collection_name : "modis-10A1-061"
                open_data       : true
                open_data_token : false
                metadata_search : "tile"
                ext_tolerance   : 0.01
                grid_system     : "STG"
                dates           : "2000 to now"
            MOD09A1-6.1      : &mpc_mod09a1
                bands       :
                    BLUE    : &mpc_modis_blue
                        missing_value : -1000
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution   :  500
                        band_name     : "sur_refl_b03"
                        data_type     : "INT2S"
                    RED     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b01"
                    GREEN     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b04"
                    NIR08     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b02"
                    LWIR12     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b05"
                    SWIR16     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b06"
                    SWIR22     :
                        <<: *mpc_modis_blue
                        band_name     : "sur_refl_b07"
                satellite       : "TERRA"
                sensor          : "MODIS"
                collection_name : "modis-09A1-061"
                open_data       : true
                open_data_token : false
                metadata_search : "tile"
                ext_tolerance   : 0.01
                grid_system     : "STG"
                dates           : "2000 to now"
            COP-DEM-GLO-30  :
                bands:
                    ELEVATION:
                        band_name     : "data"
                        resolution    : 30
                        data_type     : "FLT4S"
                        missing_value : -32768
                        minimum_value : -32767
                        maximum_value : 65534
                        scale_factor  : 1
                        offset_value  : 0
                        resampling    : "bilinear"
                satellite       : "TANDEM-X"
                sensor          : "X-band-SAR"
                collection_name : "cop-dem-glo-30"
                dem_cube        : true
                open_data       : true
                open_data_token : false
                metadata_search : "feature"
                ext_tolerance   : 0
                grid_system     : "DEM-GRID-SYSTEM"
                dates           : "2019"
            LANDSAT-C2-L2   : &mspc_oli
                bands       :
                    BLUE    : &mspc_oli_30m
                        missing_value : 0
                        minimum_value : 7273
                        maximum_value : 43636
                        scale_factor  : 0.0000275
                        offset_value  : -0.2
                        resampling    : "bilinear"
                        resolution    : 30
                        band_name     : "blue"
                        data_type     : "INT2U"
                    GREEN   :
                        <<: *mspc_oli_30m
                        band_name     : "green"
                    RED     :
                        <<: *mspc_oli_30m
                        band_name     : "red"
                    NIR08   :
                        <<: *mspc_oli_30m
                        band_name     : "nir08"
                    SWIR16  :
                        <<: *mspc_oli_30m
                        band_name     : "swir16"
                    SWIR22  :
                        <<: *mspc_oli_30m
                        band_name     : "swir22"
                    CLOUD   :
                        bit_mask      : true
                        band_name     : "qa_pixel"
                        values        :
                            0         : "Missing data"
                            1         : "Dilated Cloud"
                            2         : "High confidence cirrus"
                            3         : "High confidence cloud"
                            4         : "High confidence cloud shadow"
                            5         : "High confidence snow cover"
                            6         : "Clear"
                            7         : "Water"
                            8         : "Low/High confidence of cloud"
                            9         : "Medium/High confidence of cloud"
                            10        : "Low/High confidence of cloud shadow"
                            11        : "Medium/High confidence of cloud shadow"
                            12        : "Low/High confidence of snow"
                            13        : "Medium/High confidence of snow"
                            14        : "Low/High confidence of cirrus"
                            15        : "Medium/High confidence of cirrus"
                        interp_values : [0, 1, 2, 3, 4, 9, 11, 15]
                        resampling    : "near"
                        resolution    : 30
                        data_type     : "INT2U"
                satellite   : "LANDSAT"
                sensor      : "TM-ETM-OLI"
                platforms   :
                    LANDSAT-5: "landsat-5"
                    LANDSAT-7: "landsat-7"
                    LANDSAT-8: "landsat-8"
                    LANDSAT-9: "landsat-9"
                collection_name : "landsat-c2-l2"
                open_data       : true
                open_data_token : false
                tile_required   : false
                metadata_search : "feature"
                ext_tolerance   : 0
                grid_system     : "WRS-2"
                dates           : "1982 to now"
            SENTINEL-2-L2A  : &mspc_msi
                bands       :
                    B01     : &mspc_msi_60m
                        missing_value : -9999
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution   :  60
                        band_name     : "B01"
                        data_type     : "INT2S"
                    B02     : &mspc_msi_10m
                        missing_value : -9999
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution   :  10
                        band_name     : "B02"
                        data_type     : "INT2S"
                    B03     :
                        <<: *mspc_msi_10m
                        band_name     : "B03"
                    B04     :
                        <<: *mspc_msi_10m
                        band_name     : "B04"
                    B05     : &mspc_msi_20m
                        missing_value : -9999
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution   :  20
                        band_name     : "B05"
                        data_type     : "INT2S"
                    B06     :
                        <<: *mspc_msi_20m
                        band_name     : "B06"
                    B07     :
                        <<: *mspc_msi_20m
                        band_name     : "B07"
                    B08     :
                        <<: *mspc_msi_10m
                        band_name     : "B08"
                    B8A     :
                        <<: *mspc_msi_20m
                        band_name     : "B8A"
                    B09     :
                        <<: *mspc_msi_60m
                        band_name     : "B09"
                    B11     :
                        <<: *mspc_msi_20m
                        band_name     : "B11"
                    B12     :
                        <<: *mspc_msi_20m
                        band_name     : "B12"
                    CLOUD   :
                        bit_mask      : false
                        band_name     : "SCL"
                        values        :
                            0         : "missing_data"
                            1         : "defective pixel"
                            2         : "shadows"
                            3         : "cloud shadows"
                            4         : "vegetation"
                            5         : "non-vegetated"
                            6         : "water"
                            7         : "unclassified"
                            8         : "cloud medium"
                            9         : "cloud high"
                            10        : "thin cirrus"
                            11        : "snow or ice"
                        interp_values : [0, 1, 2, 3, 8, 9, 10]
                        resolution   :  20
                        data_type     : "INT1U"
                satellite   : "SENTINEL-2"
                sensor      : "MSI"
                platforms   :
                    SENTINEL-2A: "Sentinel-2A"
                    SENTINEL-2B: "Sentinel-2B"
                collection_name: "sentinel-2-l2a"
                open_data: true
                open_data_token: false
                metadata_search : "tile"
                ext_tolerance: 0
                grid_system  : "MGRS"
                dates        : "2015 to now"
            SENTINEL-1-GRD  : &mspc_s1_grd
                bands       :
                    VV      : &mspc_grd_10m
                        missing_value : 0
                        minimum_value : 1
                        maximum_value : 65534
                        scale_factor  : 0.001
                        offset_value  : 0
                        resolution    : 10
                        band_name     : "vv"
                        data_type     : "INT2U"
                    VH     :
                        <<: *mspc_grd_10m
                        band_name     : "vh"
                satellite   : "SENTINEL-1"
                sensor      : "C-band-SAR"
                orbits      : ["ascending", "descending"]
                platforms   :
                    SENTINEL-1A: "Sentinel-1A"
                    SENTINEL-1B: "Sentinel-1B"
                collection_name: "sentinel-1-grd"
                sar_cube: true
                open_data: true
                open_data_token: false
                metadata_search: "feature"
                ext_tolerance: 0
                grid_system : "NoTilingSystem"
                dates       : "2014 to now"
            SENTINEL-1-RTC  : &mspc_s1_rtc
                bands       :
                    VV      : &mspc_rtc_10m
                        missing_value : -32768.0
                        minimum_value : 0
                        maximum_value : 65534.0
                        scale_factor  : 1
                        offset_value  : 0
                        resolution    : 10
                        band_name     : "vv"
                        data_type     : "FLT4S"
                    VH     :
                        <<: *mspc_rtc_10m
                        band_name     : "vh"
                satellite   : "SENTINEL-1"
                sensor      : "C-band-SAR"
                orbits      : ["ascending", "descending"]
                platforms   :
                    SENTINEL-1A: "Sentinel-1A"
                    SENTINEL-1B: "Sentinel-1B"
                collection_name: "sentinel-1-rtc"
                sar_cube: true
                open_data: true
                open_data_token: false
                metadata_search: "feature"
                ext_tolerance: 0
                grid_system : "NoTilingSystem"
                dates       : "2014 to now"
            HLSS30          :
                bands       :
                    COASTAL-AEROSOL: &mspc_hls_s2_30m
                        missing_value : -9999
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution    :  30
                        band_name     : "B01"
                        data_type     : "INT2S"
                    BLUE    :
                        <<: *mspc_hls_s2_30m
                        band_name     : "B02"
                    GREEN   :
                        <<: *mspc_hls_s2_30m
                        band_name     : "B03"
                    RED     :
                        <<: *mspc_hls_s2_30m
                        band_name     : "B04"
                    RED-EDGE-1:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B05"
                    RED-EDGE-2:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B06"
                    RED-EDGE-3:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B07"
                    NIR-BROAD:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B08"
                    NIR-NARROW:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B8A"
                    WATER-VAPOR:
                        <<: *mspc_hls_s2_30m
                        band_name     : "B09"
                    SWIR-1  :
                        <<: *mspc_hls_s2_30m
                        band_name     : "B11"
                    SWIR-2  :
                        <<: *mspc_hls_s2_30m
                        band_name     : "B12"
                    CLOUD   :
                        bit_mask      : true
                        band_name     : "Fmask"
                        values        :
                            0         : "Cirrus"
                            1         : "Cloud"
                            2         : "Adjacent to cloud/shadow"
                            3         : "Cloud shadow"
                            4         : "Snow/ice"
                            5         : "Water"
                            6         : "Aerosol level (low)"
                            7         : "Aerosol level (moderate or high)"
                        interp_values : [1, 2, 3, 7]
                        resampling    : "near"
                        resolution    : 30
                        data_type     : "INT1U"
                satellite   : "SENTINEL-2"
                sensor      : "MSI"
                collection_name: "hls2-s30"
                open_data: true
                open_data_token: false
                metadata_search : "tile"
                ext_tolerance: 0
                hls_cube: true
                grid_system  : "MGRS"
                dates        : "2015 to now"
            HLSL30          :
                bands       :
                    COASTAL-AEROSOL: &mspc_hls_l8_30m
                        missing_value : -9999
                        minimum_value : 0
                        maximum_value : 10000
                        scale_factor  : 0.0001
                        offset_value  : 0
                        resolution    : 30
                        band_name     : "B01"
                        data_type     : "INT2S"
                    BLUE    :
                        <<: *mspc_hls_l8_30m
                        band_name     : "B02"
                    GREEN   :
                        <<: *mspc_hls_l8_30m
                        band_name     : "B03"
                    RED     :
                        <<: *mspc_hls_l8_30m
                        band_name     : "B04"
                    NIR-NARROW:
                        <<: *mspc_hls_l8_30m
                        band_name     : "B05"
                    SWIR-1  :
                        <<: *mspc_hls_l8_30m
                        band_name     : "B06"
                    SWIR-2  :
                        <<: *mspc_hls_l8_30m
                        band_name     : "B07"
                    CLOUD   :
                        bit_mask      : true
                        band_name     : "Fmask"
                        values        :
                            0         : "Cirrus"
                            1         : "Cloud"
                            2         : "Adjacent to cloud/shadow"
                            3         : "Cloud shadow"
                            4         : "Snow/ice"
                            5         : "Water"
                            6         : "Aerosol level (low)"
                            7         : "Aerosol level (moderate or high)"
                        interp_values : [1, 2, 3, 7]
                        resampling    : "near"
                        resolution    : 30
                        data_type     : "INT1U"
                satellite   : "LANDSAT-8"
                sensor      : "OLI"
                collection_name: "hls2-l30"
                open_data: true
                open_data_token: false
                metadata_search : "tile"
                ext_tolerance: 0
                hls_cube: true
                grid_system  : "MGRS"
                dates        : "2013 to now"
