Hi,
I want to include my custom cloud masking pipeline with my sentinelhub ogc api data download pipeline for Landsat 8 data. For that, i require the MTL.txt metadata file that comes when any Landsat 8 data is downloaded from USGS earth explorer. Is it possible to get it or recreate it somehow using sentinelhub??
I am attaching a sample MTL.txt file as a reference of what i want to create using sentinelhub.
GROUP = LANDSAT_METADATA_FILE
GROUP = PRODUCT_CONTENTS
ORIGIN = "Image courtesy of the U.S. Geological Survey"
DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B"
LANDSAT_PRODUCT_ID = "LC09_L1TP_144041_20240910_20240910_02_T1"
PROCESSING_LEVEL = "L1TP"
COLLECTION_NUMBER = 02
COLLECTION_CATEGORY = "T1"
OUTPUT_FORMAT = "GEOTIFF"
FILE_NAME_BAND_1 = "LC09_L1TP_144041_20240910_20240910_02_T1_B1.TIF"
FILE_NAME_BAND_2 = "LC09_L1TP_144041_20240910_20240910_02_T1_B2.TIF"
FILE_NAME_BAND_3 = "LC09_L1TP_144041_20240910_20240910_02_T1_B3.TIF"
FILE_NAME_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_B4.TIF"
FILE_NAME_BAND_5 = "LC09_L1TP_144041_20240910_20240910_02_T1_B5.TIF"
FILE_NAME_BAND_6 = "LC09_L1TP_144041_20240910_20240910_02_T1_B6.TIF"
FILE_NAME_BAND_7 = "LC09_L1TP_144041_20240910_20240910_02_T1_B7.TIF"
FILE_NAME_BAND_8 = "LC09_L1TP_144041_20240910_20240910_02_T1_B8.TIF"
FILE_NAME_BAND_9 = "LC09_L1TP_144041_20240910_20240910_02_T1_B9.TIF"
FILE_NAME_BAND_10 = "LC09_L1TP_144041_20240910_20240910_02_T1_B10.TIF"
FILE_NAME_BAND_11 = "LC09_L1TP_144041_20240910_20240910_02_T1_B11.TIF"
FILE_NAME_QUALITY_L1_PIXEL = "LC09_L1TP_144041_20240910_20240910_02_T1_QA_PIXEL.TIF"
FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC09_L1TP_144041_20240910_20240910_02_T1_QA_RADSAT.TIF"
FILE_NAME_ANGLE_COEFFICIENT = "LC09_L1TP_144041_20240910_20240910_02_T1_ANG.txt"
FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_VAA.TIF"
FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_VZA.TIF"
FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_SAA.TIF"
FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_SZA.TIF"
FILE_NAME_METADATA_ODL = "LC09_L1TP_144041_20240910_20240910_02_T1_MTL.txt"
FILE_NAME_METADATA_XML = "LC09_L1TP_144041_20240910_20240910_02_T1_MTL.xml"
DATA_TYPE_BAND_1 = "UINT16"
DATA_TYPE_BAND_2 = "UINT16"
DATA_TYPE_BAND_3 = "UINT16"
DATA_TYPE_BAND_4 = "UINT16"
DATA_TYPE_BAND_5 = "UINT16"
DATA_TYPE_BAND_6 = "UINT16"
DATA_TYPE_BAND_7 = "UINT16"
DATA_TYPE_BAND_8 = "UINT16"
DATA_TYPE_BAND_9 = "UINT16"
DATA_TYPE_BAND_10 = "UINT16"
DATA_TYPE_BAND_11 = "UINT16"
DATA_TYPE_QUALITY_L1_PIXEL = "UINT16"
DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16"
DATA_TYPE_ANGLE_SENSOR_AZIMUTH_BAND_4 = "INT16"
DATA_TYPE_ANGLE_SENSOR_ZENITH_BAND_4 = "INT16"
DATA_TYPE_ANGLE_SOLAR_AZIMUTH_BAND_4 = "INT16"
DATA_TYPE_ANGLE_SOLAR_ZENITH_BAND_4 = "INT16"
END_GROUP = PRODUCT_CONTENTS
GROUP = IMAGE_ATTRIBUTES
SPACECRAFT_ID = "LANDSAT_9"
SENSOR_ID = "OLI_TIRS"
WRS_TYPE = 2
WRS_PATH = 144
WRS_ROW = 41
NADIR_OFFNADIR = "NADIR"
TARGET_WRS_PATH = 144
TARGET_WRS_ROW = 41
DATE_ACQUIRED = 2024-09-10
SCENE_CENTER_TIME = "05:06:40.8576440Z"
STATION_ID = "LGN"
CLOUD_COVER = 22.59
CLOUD_COVER_LAND = 22.59
IMAGE_QUALITY_OLI = 9
IMAGE_QUALITY_TIRS = 9
SATURATION_BAND_1 = "N"
SATURATION_BAND_2 = "N"
SATURATION_BAND_3 = "N"
SATURATION_BAND_4 = "Y"
SATURATION_BAND_5 = "Y"
SATURATION_BAND_6 = "Y"
SATURATION_BAND_7 = "Y"
SATURATION_BAND_8 = "N"
SATURATION_BAND_9 = "N"
ROLL_ANGLE = -0.001
SUN_AZIMUTH = 133.44530029
SUN_ELEVATION = 59.16676215
EARTH_SUN_DISTANCE = 1.0069402
END_GROUP = IMAGE_ATTRIBUTES
GROUP = PROJECTION_ATTRIBUTES
MAP_PROJECTION = "UTM"
DATUM = "WGS84"
ELLIPSOID = "WGS84"
UTM_ZONE = 44
GRID_CELL_SIZE_PANCHROMATIC = 15.00
GRID_CELL_SIZE_REFLECTIVE = 30.00
GRID_CELL_SIZE_THERMAL = 30.00
PANCHROMATIC_LINES = 15581
PANCHROMATIC_SAMPLES = 15301
REFLECTIVE_LINES = 7791
REFLECTIVE_SAMPLES = 7651
THERMAL_LINES = 7791
THERMAL_SAMPLES = 7651
ORIENTATION = "NORTH_UP"
CORNER_UL_LAT_PRODUCT = 28.47322
CORNER_UL_LON_PRODUCT = 79.45346
CORNER_UR_LAT_PRODUCT = 28.47968
CORNER_UR_LON_PRODUCT = 81.79787
CORNER_LL_LAT_PRODUCT = 26.36413
CORNER_LL_LON_PRODUCT = 79.48257
CORNER_LR_LAT_PRODUCT = 26.37003
CORNER_LR_LON_PRODUCT = 81.78285
CORNER_UL_PROJECTION_X_PRODUCT = 348600.000
CORNER_UL_PROJECTION_Y_PRODUCT = 3150600.000
CORNER_UR_PROJECTION_X_PRODUCT = 578100.000
CORNER_UR_PROJECTION_Y_PRODUCT = 3150600.000
CORNER_LL_PROJECTION_X_PRODUCT = 348600.000
CORNER_LL_PROJECTION_Y_PRODUCT = 2916900.000
CORNER_LR_PROJECTION_X_PRODUCT = 578100.000
CORNER_LR_PROJECTION_Y_PRODUCT = 2916900.000
END_GROUP = PROJECTION_ATTRIBUTES
GROUP = LEVEL1_PROCESSING_RECORD
ORIGIN = "Image courtesy of the U.S. Geological Survey"
DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B"
REQUEST_ID = "1933591_00036"
LANDSAT_SCENE_ID = "LC91440412024254LGN00"
LANDSAT_PRODUCT_ID = "LC09_L1TP_144041_20240910_20240910_02_T1"
PROCESSING_LEVEL = "L1TP"
COLLECTION_CATEGORY = "T1"
OUTPUT_FORMAT = "GEOTIFF"
DATE_PRODUCT_GENERATED = 2024-09-10T07:39:19Z
PROCESSING_SOFTWARE_VERSION = "LPGS_16.4.0"
FILE_NAME_BAND_1 = "LC09_L1TP_144041_20240910_20240910_02_T1_B1.TIF"
FILE_NAME_BAND_2 = "LC09_L1TP_144041_20240910_20240910_02_T1_B2.TIF"
FILE_NAME_BAND_3 = "LC09_L1TP_144041_20240910_20240910_02_T1_B3.TIF"
FILE_NAME_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_B4.TIF"
FILE_NAME_BAND_5 = "LC09_L1TP_144041_20240910_20240910_02_T1_B5.TIF"
FILE_NAME_BAND_6 = "LC09_L1TP_144041_20240910_20240910_02_T1_B6.TIF"
FILE_NAME_BAND_7 = "LC09_L1TP_144041_20240910_20240910_02_T1_B7.TIF"
FILE_NAME_BAND_8 = "LC09_L1TP_144041_20240910_20240910_02_T1_B8.TIF"
FILE_NAME_BAND_9 = "LC09_L1TP_144041_20240910_20240910_02_T1_B9.TIF"
FILE_NAME_BAND_10 = "LC09_L1TP_144041_20240910_20240910_02_T1_B10.TIF"
FILE_NAME_BAND_11 = "LC09_L1TP_144041_20240910_20240910_02_T1_B11.TIF"
FILE_NAME_QUALITY_L1_PIXEL = "LC09_L1TP_144041_20240910_20240910_02_T1_QA_PIXEL.TIF"
FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC09_L1TP_144041_20240910_20240910_02_T1_QA_RADSAT.TIF"
FILE_NAME_ANGLE_COEFFICIENT = "LC09_L1TP_144041_20240910_20240910_02_T1_ANG.txt"
FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_VAA.TIF"
FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_VZA.TIF"
FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_SAA.TIF"
FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC09_L1TP_144041_20240910_20240910_02_T1_SZA.TIF"
FILE_NAME_METADATA_ODL = "LC09_L1TP_144041_20240910_20240910_02_T1_MTL.txt"
FILE_NAME_METADATA_XML = "LC09_L1TP_144041_20240910_20240910_02_T1_MTL.xml"
FILE_NAME_CPF = "LC09CPF_20240701_20240930_02.02"
FILE_NAME_BPF_OLI = "LO9BPF20240910044336_20240910062103.01"
FILE_NAME_BPF_TIRS = "LT9BPF20240910035655_20240910052803.01"
FILE_NAME_RLUT = "LC09RLUT_20240701_20531231_02_11.h5"
DATA_SOURCE_ELEVATION = "GLS2000"
GROUND_CONTROL_POINTS_VERSION = 5
GROUND_CONTROL_POINTS_MODEL = 43
GEOMETRIC_RMSE_MODEL = 8.162
GEOMETRIC_RMSE_MODEL_Y = 5.756
GEOMETRIC_RMSE_MODEL_X = 5.786
END_GROUP = LEVEL1_PROCESSING_RECORD
GROUP = LEVEL1_MIN_MAX_RADIANCE
RADIANCE_MAXIMUM_BAND_1 = 747.17865
RADIANCE_MINIMUM_BAND_1 = -61.70226
RADIANCE_MAXIMUM_BAND_2 = 767.41296
RADIANCE_MINIMUM_BAND_2 = -63.37321
RADIANCE_MAXIMUM_BAND_3 = 707.98083
RADIANCE_MINIMUM_BAND_3 = -58.46529
RADIANCE_MAXIMUM_BAND_4 = 596.47113
RADIANCE_MINIMUM_BAND_4 = -49.25678
RADIANCE_MAXIMUM_BAND_5 = 365.57834
RADIANCE_MINIMUM_BAND_5 = -30.18958
RADIANCE_MAXIMUM_BAND_6 = 90.87099
RADIANCE_MINIMUM_BAND_6 = -7.50416
RADIANCE_MAXIMUM_BAND_7 = 30.62115
RADIANCE_MINIMUM_BAND_7 = -2.52870
RADIANCE_MAXIMUM_BAND_8 = 673.14734
RADIANCE_MINIMUM_BAND_8 = -55.58873
RADIANCE_MAXIMUM_BAND_9 = 142.88829
RADIANCE_MINIMUM_BAND_9 = -11.79976
RADIANCE_MAXIMUM_BAND_10 = 25.00330
RADIANCE_MINIMUM_BAND_10 = 0.10038
RADIANCE_MAXIMUM_BAND_11 = 22.97172
RADIANCE_MINIMUM_BAND_11 = 0.10035
END_GROUP = LEVEL1_MIN_MAX_RADIANCE
GROUP = LEVEL1_MIN_MAX_REFLECTANCE
REFLECTANCE_MAXIMUM_BAND_1 = 1.210700
REFLECTANCE_MINIMUM_BAND_1 = -0.099980
REFLECTANCE_MAXIMUM_BAND_2 = 1.210700
REFLECTANCE_MINIMUM_BAND_2 = -0.099980
REFLECTANCE_MAXIMUM_BAND_3 = 1.210700
REFLECTANCE_MINIMUM_BAND_3 = -0.099980
REFLECTANCE_MAXIMUM_BAND_4 = 1.210700
REFLECTANCE_MINIMUM_BAND_4 = -0.099980
REFLECTANCE_MAXIMUM_BAND_5 = 1.210700
REFLECTANCE_MINIMUM_BAND_5 = -0.099980
REFLECTANCE_MAXIMUM_BAND_6 = 1.210700
REFLECTANCE_MINIMUM_BAND_6 = -0.099980
REFLECTANCE_MAXIMUM_BAND_7 = 1.210700
REFLECTANCE_MINIMUM_BAND_7 = -0.099980
REFLECTANCE_MAXIMUM_BAND_8 = 1.210700
REFLECTANCE_MINIMUM_BAND_8 = -0.099980
REFLECTANCE_MAXIMUM_BAND_9 = 1.210700
REFLECTANCE_MINIMUM_BAND_9 = -0.099980
END_GROUP = LEVEL1_MIN_MAX_REFLECTANCE
GROUP = LEVEL1_MIN_MAX_PIXEL_VALUE
QUANTIZE_CAL_MAX_BAND_1 = 65535
QUANTIZE_CAL_MIN_BAND_1 = 1
QUANTIZE_CAL_MAX_BAND_2 = 65535
QUANTIZE_CAL_MIN_BAND_2 = 1
QUANTIZE_CAL_MAX_BAND_3 = 65535
QUANTIZE_CAL_MIN_BAND_3 = 1
QUANTIZE_CAL_MAX_BAND_4 = 65535
QUANTIZE_CAL_MIN_BAND_4 = 1
QUANTIZE_CAL_MAX_BAND_5 = 65535
QUANTIZE_CAL_MIN_BAND_5 = 1
QUANTIZE_CAL_MAX_BAND_6 = 65535
QUANTIZE_CAL_MIN_BAND_6 = 1
QUANTIZE_CAL_MAX_BAND_7 = 65535
QUANTIZE_CAL_MIN_BAND_7 = 1
QUANTIZE_CAL_MAX_BAND_8 = 65535
QUANTIZE_CAL_MIN_BAND_8 = 1
QUANTIZE_CAL_MAX_BAND_9 = 65535
QUANTIZE_CAL_MIN_BAND_9 = 1
QUANTIZE_CAL_MAX_BAND_10 = 65535
QUANTIZE_CAL_MIN_BAND_10 = 1
QUANTIZE_CAL_MAX_BAND_11 = 65535
QUANTIZE_CAL_MIN_BAND_11 = 1
END_GROUP = LEVEL1_MIN_MAX_PIXEL_VALUE
GROUP = LEVEL1_RADIOMETRIC_RESCALING
RADIANCE_MULT_BAND_1 = 1.2343E-02
RADIANCE_MULT_BAND_2 = 1.2677E-02
RADIANCE_MULT_BAND_3 = 1.1695E-02
RADIANCE_MULT_BAND_4 = 9.8533E-03
RADIANCE_MULT_BAND_5 = 6.0391E-03
RADIANCE_MULT_BAND_6 = 1.5011E-03
RADIANCE_MULT_BAND_7 = 5.0584E-04
RADIANCE_MULT_BAND_8 = 1.1120E-02
RADIANCE_MULT_BAND_9 = 2.3604E-03
RADIANCE_MULT_BAND_10 = 3.8000E-04
RADIANCE_MULT_BAND_11 = 3.4900E-04
RADIANCE_ADD_BAND_1 = -61.71460
RADIANCE_ADD_BAND_2 = -63.38589
RADIANCE_ADD_BAND_3 = -58.47698
RADIANCE_ADD_BAND_4 = -49.26664
RADIANCE_ADD_BAND_5 = -30.19562
RADIANCE_ADD_BAND_6 = -7.50566
RADIANCE_ADD_BAND_7 = -2.52921
RADIANCE_ADD_BAND_8 = -55.59984
RADIANCE_ADD_BAND_9 = -11.80212
RADIANCE_ADD_BAND_10 = 0.10000
RADIANCE_ADD_BAND_11 = 0.10000
REFLECTANCE_MULT_BAND_1 = 2.0000E-05
REFLECTANCE_MULT_BAND_2 = 2.0000E-05
REFLECTANCE_MULT_BAND_3 = 2.0000E-05
REFLECTANCE_MULT_BAND_4 = 2.0000E-05
REFLECTANCE_MULT_BAND_5 = 2.0000E-05
REFLECTANCE_MULT_BAND_6 = 2.0000E-05
REFLECTANCE_MULT_BAND_7 = 2.0000E-05
REFLECTANCE_MULT_BAND_8 = 2.0000E-05
REFLECTANCE_MULT_BAND_9 = 2.0000E-05
REFLECTANCE_ADD_BAND_1 = -0.100000
REFLECTANCE_ADD_BAND_2 = -0.100000
REFLECTANCE_ADD_BAND_3 = -0.100000
REFLECTANCE_ADD_BAND_4 = -0.100000
REFLECTANCE_ADD_BAND_5 = -0.100000
REFLECTANCE_ADD_BAND_6 = -0.100000
REFLECTANCE_ADD_BAND_7 = -0.100000
REFLECTANCE_ADD_BAND_8 = -0.100000
REFLECTANCE_ADD_BAND_9 = -0.100000
END_GROUP = LEVEL1_RADIOMETRIC_RESCALING
GROUP = LEVEL1_THERMAL_CONSTANTS
K1_CONSTANT_BAND_10 = 799.0284
K2_CONSTANT_BAND_10 = 1329.2405
K1_CONSTANT_BAND_11 = 475.6581
K2_CONSTANT_BAND_11 = 1198.3494
END_GROUP = LEVEL1_THERMAL_CONSTANTS
GROUP = LEVEL1_PROJECTION_PARAMETERS
MAP_PROJECTION = "UTM"
DATUM = "WGS84"
ELLIPSOID = "WGS84"
UTM_ZONE = 44
GRID_CELL_SIZE_PANCHROMATIC = 15.00
GRID_CELL_SIZE_REFLECTIVE = 30.00
GRID_CELL_SIZE_THERMAL = 30.00
ORIENTATION = "NORTH_UP"
RESAMPLING_OPTION = "CUBIC_CONVOLUTION"
END_GROUP = LEVEL1_PROJECTION_PARAMETERS
END_GROUP = LANDSAT_METADATA_FILE
END
Thanks,
Sidharrth