T-Mart configuration for adjacency-effect correction

# Notes 
# Mar 28, 2024: L9 shares the same configuration as L8

# Method for identifying water pixels, options: NDWI, SWIR, MNDWI
water_detection_method = NDWI

# Thresholds for identifying water pixels, all at TOA level
mask_cirrus_threshold = 0.005
mask_NDWI_threshold = 0
mask_MNDWI_threshold = 0
mask_SWIR_threshold = 0.03
mask_highTOA_threshold = 0.3

# Cirrus band name 
S2_cirrus_band = B10
L8_cirrus_band = B9

# Green band name 
S2_green_band = B03
L8_green_band = B3

# NIR band name 
S2_NIR_band = B08
L8_NIR_band = B5

# SWIR band name 
S2_SWIR_band = B11
L8_SWIR_band = B6


# Reshape_factor
# In AEC, cell_size is tm_sensor_res * reshape_factor
# It has to be divisible by image resolution of all bands for now 
# Larger value: faster processing, lower accuracy and creating pixel artifacts on the output image
# S2 options: 2, 6, 12, 18, 24; L8 options: any

reshape_factor_S2 = 18
reshape_factor_L8 = 12


# Number of cells in AEC along each axis 
# larger value: slower processing, less violation of assuming all diffuse radiation comes from the window
# must be an odd number

window_size = 201


# Cloud contribution 
cloud_contribution = 0.5


# Correcting for AE over land, may cause unwanted changes on nearshore water pixels due to grouped processing. Useful when a large amount of water pixels are falsely masked as land. 
AE_land = False


# Lowest water-leaving reflectance in NIR, used when estimating AOT in T-Mart
min_R_NIR = 0

# Maximum amount of glint to remove when wind speed is 1 m/s, used when estimating AOT in T-Mart
max_glint = 0.01



