Skip to content

Commit

Permalink
Merge pull request #53 from Terradue/feature/landsat-orbit_ESACPE-1858
Browse files Browse the repository at this point in the history
Correction for incorrect Landsat-8/9 orbit states (orbit direction)
  • Loading branch information
floeschau authored May 21, 2024
2 parents 9a28bc7 + 6557595 commit ef25633
Show file tree
Hide file tree
Showing 17 changed files with 2,205 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
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 = "LC08_L1GT_119160_20240208_20240208_02_RT"
PROCESSING_LEVEL = "L1GT"
COLLECTION_NUMBER = 02
COLLECTION_CATEGORY = "RT"
OUTPUT_FORMAT = "GEOTIFF"
FILE_NAME_BAND_1 = "LC08_L1GT_119160_20240208_20240208_02_RT_B1.TIF"
FILE_NAME_BAND_2 = "LC08_L1GT_119160_20240208_20240208_02_RT_B2.TIF"
FILE_NAME_BAND_3 = "LC08_L1GT_119160_20240208_20240208_02_RT_B3.TIF"
FILE_NAME_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_B4.TIF"
FILE_NAME_BAND_5 = "LC08_L1GT_119160_20240208_20240208_02_RT_B5.TIF"
FILE_NAME_BAND_6 = "LC08_L1GT_119160_20240208_20240208_02_RT_B6.TIF"
FILE_NAME_BAND_7 = "LC08_L1GT_119160_20240208_20240208_02_RT_B7.TIF"
FILE_NAME_BAND_8 = "LC08_L1GT_119160_20240208_20240208_02_RT_B8.TIF"
FILE_NAME_BAND_9 = "LC08_L1GT_119160_20240208_20240208_02_RT_B9.TIF"
FILE_NAME_BAND_10 = "LC08_L1GT_119160_20240208_20240208_02_RT_B10.TIF"
FILE_NAME_BAND_11 = "LC08_L1GT_119160_20240208_20240208_02_RT_B11.TIF"
FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1GT_119160_20240208_20240208_02_RT_QA_PIXEL.TIF"
FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1GT_119160_20240208_20240208_02_RT_QA_RADSAT.TIF"
FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1GT_119160_20240208_20240208_02_RT_ANG.txt"
FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_VAA.TIF"
FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_VZA.TIF"
FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_SAA.TIF"
FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_SZA.TIF"
FILE_NAME_METADATA_ODL = "LC08_L1GT_119160_20240208_20240208_02_RT_MTL.txt"
FILE_NAME_METADATA_XML = "LC08_L1GT_119160_20240208_20240208_02_RT_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_8"
SENSOR_ID = "OLI_TIRS"
WRS_TYPE = 2
WRS_PATH = 119
WRS_ROW = 160
NADIR_OFFNADIR = "NADIR"
TARGET_WRS_PATH = 119
TARGET_WRS_ROW = 160
DATE_ACQUIRED = 2024-02-08
SCENE_CENTER_TIME = "03:19:59.8906490Z"
STATION_ID = "LGN"
CLOUD_COVER = -1
CLOUD_COVER_LAND = -1
IMAGE_QUALITY_OLI = 9
IMAGE_QUALITY_TIRS = 7
SATURATION_BAND_1 = "N"
SATURATION_BAND_2 = "N"
SATURATION_BAND_3 = "N"
SATURATION_BAND_4 = "N"
SATURATION_BAND_5 = "N"
SATURATION_BAND_6 = "N"
SATURATION_BAND_7 = "Y"
SATURATION_BAND_8 = "N"
SATURATION_BAND_9 = "N"
ROLL_ANGLE = -0.000
SUN_AZIMUTH = -150.43843225
SUN_ELEVATION = -34.92585239
EARTH_SUN_DISTANCE = 0.9863477
TRUNCATION_OLI = "UPPER"
TIRS_SSM_MODEL = "PRELIMINARY"
TIRS_SSM_POSITION_STATUS = "ESTIMATED"
END_GROUP = IMAGE_ATTRIBUTES
GROUP = PROJECTION_ATTRIBUTES
MAP_PROJECTION = "UTM"
DATUM = "WGS84"
ELLIPSOID = "WGS84"
UTM_ZONE = 19
GRID_CELL_SIZE_PANCHROMATIC = 15.00
GRID_CELL_SIZE_REFLECTIVE = 30.00
GRID_CELL_SIZE_THERMAL = 30.00
PANCHROMATIC_LINES = 15841
PANCHROMATIC_SAMPLES = 15761
REFLECTIVE_LINES = 7921
REFLECTIVE_SAMPLES = 7881
THERMAL_LINES = 7921
THERMAL_SAMPLES = 7881
ORIENTATION = "NORTH_UP"
CORNER_UL_LAT_PRODUCT = -33.50808
CORNER_UL_LON_PRODUCT = -72.49948
CORNER_UR_LAT_PRODUCT = -33.55386
CORNER_UR_LON_PRODUCT = -69.95552
CORNER_LL_LAT_PRODUCT = -35.64666
CORNER_LL_LON_PRODUCT = -72.59040
CORNER_LR_LAT_PRODUCT = -35.69623
CORNER_LR_LON_PRODUCT = -69.98040
CORNER_UL_PROJECTION_X_PRODUCT = 174900.000
CORNER_UL_PROJECTION_Y_PRODUCT = -3713100.000
CORNER_UR_PROJECTION_X_PRODUCT = 411300.000
CORNER_UR_PROJECTION_Y_PRODUCT = -3713100.000
CORNER_LL_PROJECTION_X_PRODUCT = 174900.000
CORNER_LL_PROJECTION_Y_PRODUCT = -3950700.000
CORNER_LR_PROJECTION_X_PRODUCT = 411300.000
CORNER_LR_PROJECTION_Y_PRODUCT = -3950700.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 = "1849220_00003"
LANDSAT_SCENE_ID = "LC81191602024039LGN00"
LANDSAT_PRODUCT_ID = "LC08_L1GT_119160_20240208_20240208_02_RT"
PROCESSING_LEVEL = "L1GT"
COLLECTION_CATEGORY = "RT"
OUTPUT_FORMAT = "GEOTIFF"
DATE_PRODUCT_GENERATED = 2024-02-08T04:51:23Z
PROCESSING_SOFTWARE_VERSION = "LPGS_16.3.1"
FILE_NAME_BAND_1 = "LC08_L1GT_119160_20240208_20240208_02_RT_B1.TIF"
FILE_NAME_BAND_2 = "LC08_L1GT_119160_20240208_20240208_02_RT_B2.TIF"
FILE_NAME_BAND_3 = "LC08_L1GT_119160_20240208_20240208_02_RT_B3.TIF"
FILE_NAME_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_B4.TIF"
FILE_NAME_BAND_5 = "LC08_L1GT_119160_20240208_20240208_02_RT_B5.TIF"
FILE_NAME_BAND_6 = "LC08_L1GT_119160_20240208_20240208_02_RT_B6.TIF"
FILE_NAME_BAND_7 = "LC08_L1GT_119160_20240208_20240208_02_RT_B7.TIF"
FILE_NAME_BAND_8 = "LC08_L1GT_119160_20240208_20240208_02_RT_B8.TIF"
FILE_NAME_BAND_9 = "LC08_L1GT_119160_20240208_20240208_02_RT_B9.TIF"
FILE_NAME_BAND_10 = "LC08_L1GT_119160_20240208_20240208_02_RT_B10.TIF"
FILE_NAME_BAND_11 = "LC08_L1GT_119160_20240208_20240208_02_RT_B11.TIF"
FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1GT_119160_20240208_20240208_02_RT_QA_PIXEL.TIF"
FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1GT_119160_20240208_20240208_02_RT_QA_RADSAT.TIF"
FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1GT_119160_20240208_20240208_02_RT_ANG.txt"
FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_VAA.TIF"
FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_VZA.TIF"
FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_SAA.TIF"
FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1GT_119160_20240208_20240208_02_RT_SZA.TIF"
FILE_NAME_METADATA_ODL = "LC08_L1GT_119160_20240208_20240208_02_RT_MTL.txt"
FILE_NAME_METADATA_XML = "LC08_L1GT_119160_20240208_20240208_02_RT_MTL.xml"
FILE_NAME_CPF = "LC08CPF_20240101_20240331_02.02"
FILE_NAME_BPF_OLI = "LO8BPF20240208004037_20240208020923.01"
FILE_NAME_BPF_TIRS = "LT8BPF20240204132607_20240204135422.01"
FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5"
DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS"
DATA_SOURCE_ELEVATION = "GLS2000"
END_GROUP = LEVEL1_PROCESSING_RECORD
GROUP = LEVEL1_MIN_MAX_RADIANCE
RADIANCE_MAXIMUM_BAND_1 = 781.24866
RADIANCE_MINIMUM_BAND_1 = -64.51577
RADIANCE_MAXIMUM_BAND_2 = 800.00818
RADIANCE_MINIMUM_BAND_2 = -66.06493
RADIANCE_MAXIMUM_BAND_3 = 737.20068
RADIANCE_MINIMUM_BAND_3 = -60.87827
RADIANCE_MAXIMUM_BAND_4 = 621.64911
RADIANCE_MINIMUM_BAND_4 = -51.33599
RADIANCE_MAXIMUM_BAND_5 = 380.41827
RADIANCE_MINIMUM_BAND_5 = -31.41506
RADIANCE_MAXIMUM_BAND_6 = 94.60657
RADIANCE_MINIMUM_BAND_6 = -7.81264
RADIANCE_MAXIMUM_BAND_7 = 31.88748
RADIANCE_MINIMUM_BAND_7 = -2.63328
RADIANCE_MAXIMUM_BAND_8 = 703.53577
RADIANCE_MINIMUM_BAND_8 = -58.09821
RADIANCE_MAXIMUM_BAND_9 = 148.67609
RADIANCE_MINIMUM_BAND_9 = -12.27772
RADIANCE_MAXIMUM_BAND_10 = 22.00180
RADIANCE_MINIMUM_BAND_10 = 0.10033
RADIANCE_MAXIMUM_BAND_11 = 22.00180
RADIANCE_MINIMUM_BAND_11 = 0.10033
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.2906E-02
RADIANCE_MULT_BAND_2 = 1.3216E-02
RADIANCE_MULT_BAND_3 = 1.2178E-02
RADIANCE_MULT_BAND_4 = 1.0269E-02
RADIANCE_MULT_BAND_5 = 6.2843E-03
RADIANCE_MULT_BAND_6 = 1.5628E-03
RADIANCE_MULT_BAND_7 = 5.2676E-04
RADIANCE_MULT_BAND_8 = 1.1622E-02
RADIANCE_MULT_BAND_9 = 2.4560E-03
RADIANCE_MULT_BAND_10 = 3.3420E-04
RADIANCE_MULT_BAND_11 = 3.3420E-04
RADIANCE_ADD_BAND_1 = -64.52867
RADIANCE_ADD_BAND_2 = -66.07815
RADIANCE_ADD_BAND_3 = -60.89045
RADIANCE_ADD_BAND_4 = -51.34626
RADIANCE_ADD_BAND_5 = -31.42135
RADIANCE_ADD_BAND_6 = -7.81420
RADIANCE_ADD_BAND_7 = -2.63380
RADIANCE_ADD_BAND_8 = -58.10983
RADIANCE_ADD_BAND_9 = -12.28018
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 = 774.8853
K2_CONSTANT_BAND_10 = 1321.0789
K1_CONSTANT_BAND_11 = 480.8883
K2_CONSTANT_BAND_11 = 1201.1442
END_GROUP = LEVEL1_THERMAL_CONSTANTS
GROUP = LEVEL1_PROJECTION_PARAMETERS
MAP_PROJECTION = "UTM"
DATUM = "WGS84"
ELLIPSOID = "WGS84"
UTM_ZONE = 19
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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"gsd": 15.0,
"sat:absolute_orbit": 121,
"sat:relative_orbit": 121,
"sat:orbit_state": "descending",
"sat:orbit_state": "ascending",
"landsat:wrs_type": 2,
"landsat:wrs_row": 157,
"landsat:wrs_path": 121,
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Data/Model/Metadata/Landsat8/Auxiliary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public double GSD
public int OrbitNumber => int.Parse(GetProperty("WRS_PATH"));
public int Row => int.Parse(GetProperty("WRS_ROW"));
public int Path => int.Parse(GetProperty("WRS_PATH"));
public readonly string OrbitDirection = "descending";
public string OrbitDirection => Row <= 122 ? "descending" : "ascending";

// images attributes
public double SunAzimuth => double.Parse(GetProperty("SUN_AZIMUTH"));
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Data/Model/Metadata/Landsat9/Auxiliary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public double GSD
public int OrbitNumber => int.Parse(GetProperty("WRS_PATH"));
public int Row => int.Parse(GetProperty("WRS_ROW"));
public int Path => int.Parse(GetProperty("WRS_PATH"));
public readonly string OrbitDirection = "descending";
public string OrbitDirection => Row <= 122 ? "descending" : "ascending";

// images attributes
public double SunAzimuth => double.Parse(GetProperty("SUN_AZIMUTH"));
Expand Down

0 comments on commit ef25633

Please sign in to comment.