Loading and cropping scenes#
One of the main features of xlandsat is being able to read scenes downloaded from USGS EarthExplorer along with all of the associated metadata. EarthExplorer allows you to download scenes in two main formats:
As a single
.tar
file containing.TIF
files for the bands and a file ending inMTL.txt
with the metadata.As individual
.TIF
and metadata files.
We support reading from both formats so you don’t have really have to do much after downloading the scene.
In this tutorial, we’ll be using some of our sample datasets instead of actual full scenes from EarthExplorer. This is mostly so we don’t have to use the large (~1Gb) files, which can take a bit of time to download and load. The scenes we use have been cropped to make them smaller. But everything we do here is exactly the same when you use it on full scenes from EarthExplorer.
Downloading scenes from EarthExplorer
New to EarthExplorer? Watch this tutorial on how to use the service and download scenes that you can use with xlandsat: https://www.youtube.com/watch?v=Wn_G4fvitV8
As always, we’ll start by importing xlandsat and other libraries we’ll use:
import xlandsat as xls
import matplotlib.pyplot as plt
import pathlib
Note
All of this works for Collection 2 Level 2 and Level 1 scenes.
Load a scene from a .tar
archive#
If you downloaded a full scene from EarthExplorer in a .tar
archive,
xlandsat can load the data from the archive directly. You don’t have to unpack
it yourself and xlandsat reads everything in it by default. This is usually
the easiest way to work with these data but the downside is that the archive
can be quite large, particularly if you don’t need all of the different bands
(see below for an alternative).
To simulate this use case, let’s download the .tar
archive for one of our
sample scenes using xlandsat.datasets.fetch_liverpool
:
path_to_archive = xls.datasets.fetch_liverpool()
print(path_to_archive)
/home/runner/.cache/xlandsat/main/LC08_L2SP_204023_20200927_20201006_02_T1-cropped.tar.gz
This will download the .tar
archive to your computer and return the path
to the file.
Note
Our sample data come in .tar.gz
archives, which have been compressed
(hence the .gz
to save space and bandwidth. But all our functions work
the same with .tar
or .tar.gz
archives.
To load a scene directly from the archive, use xlandsat.load_scene
with
the path to the archive file, which can be a string or a pathlib.Path
:
scene = xls.load_scene(path_to_archive)
scene
<xarray.Dataset> Size: 2MB Dimensions: (easting: 433, northing: 267) Coordinates: * easting (easting) float64 3kB 4.87e+05 4.87e+05 ... 5e+05 5e+05 * northing (northing) float64 2kB 5.922e+06 5.922e+06 ... 5.93e+06 Data variables: coastal_aerosol (northing, easting) float16 231kB 0.06238 ... 0.0769 blue (northing, easting) float16 231kB 0.0708 ... 0.08301 green (northing, easting) float16 231kB 0.08618 ... 0.09753 red (northing, easting) float16 231kB 0.06824 0.06824 ... 0.116 nir (northing, easting) float16 231kB 0.04553 0.04553 ... 0.173 swir1 (northing, easting) float16 231kB 0.04626 ... 0.2213 swir2 (northing, easting) float16 231kB 0.047 0.04663 ... 0.1686 thermal (northing, easting) float16 231kB 287.0 287.0 ... 290.5 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 433
- northing: 267
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487020., 487050., 487080., ..., 499920., 499950., 499980.], shape=(433,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922030., 5922060., ..., 5929920., 5929950., 5929980.], shape=(267,))
- coastal_aerosol(northing, easting)float160.06238 0.06238 ... 0.07751 0.0769
- long_name :
- coastal aerosol
- units :
- reflectance
- number :
- 1
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06238, 0.06238, 0.0625 , ..., 0.1581 , 0.1278 , 0.0862 ], [0.0631 , 0.06323, 0.06287, ..., 0.1318 , 0.10364, 0.07654], [0.06055, 0.0598 , 0.05957, ..., 0.135 , 0.0896 , 0.0774 ], ..., [0.0614 , 0.06165, 0.06128, ..., 0.07776, 0.0774 , 0.0773 ], [0.06104, 0.06104, 0.06165, ..., 0.0785 , 0.07654, 0.07837], [0.06238, 0.06116, 0.0625 , ..., 0.07996, 0.0775 , 0.0769 ]], shape=(267, 433), dtype=float16)
- blue(northing, easting)float160.0708 0.07117 ... 0.08423 0.08301
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0708 , 0.07117, 0.07117, ..., 0.1771 , 0.1381 , 0.0896 ], [0.0708 , 0.0709 , 0.0709 , ..., 0.1296 , 0.1068 , 0.07825], [0.06934, 0.0698 , 0.0697 , ..., 0.1554 , 0.0923 , 0.0774 ], ..., [0.0709 , 0.0708 , 0.07117, ..., 0.084 , 0.0835 , 0.08374], [0.0714 , 0.0707 , 0.0714 , ..., 0.0856 , 0.08215, 0.0834 ], [0.0714 , 0.0718 , 0.07166, ..., 0.0862 , 0.0842 , 0.083 ]], shape=(267, 433), dtype=float16)
- green(northing, easting)float160.08618 0.08667 ... 0.09985 0.09753
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0862 , 0.0867 , 0.08655, ..., 0.2067 , 0.1556 , 0.10095], [0.0862 , 0.08655, 0.08655, ..., 0.137 , 0.11694, 0.09265], [0.0856 , 0.08545, 0.08545, ..., 0.1803 , 0.1046 , 0.08923], ..., [0.08826, 0.08777, 0.08826, ..., 0.1001 , 0.0985 , 0.09937], [0.0885 , 0.08826, 0.088 , ..., 0.10205, 0.0978 , 0.0978 ], [0.0885 , 0.0886 , 0.08813, ..., 0.1019 , 0.09985, 0.09753]], shape=(267, 433), dtype=float16)
- red(northing, easting)float160.06824 0.06824 ... 0.1193 0.116
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06824, 0.06824, 0.0687 , ..., 0.2181 , 0.1649 , 0.10254], [0.06824, 0.06885, 0.06885, ..., 0.1451 , 0.11804, 0.0856 ], [0.06775, 0.06824, 0.0676 , ..., 0.1869 , 0.1113 , 0.0868 ], ..., [0.06934, 0.0692 , 0.0692 , ..., 0.12085, 0.1179 , 0.1185 ], [0.06934, 0.0691 , 0.0692 , ..., 0.12305, 0.11694, 0.1166 ], [0.0686 , 0.06885, 0.0687 , ..., 0.1185 , 0.11926, 0.11597]], shape=(267, 433), dtype=float16)
- nir(northing, easting)float160.04553 0.04553 ... 0.1801 0.173
- long_name :
- near-infrared
- units :
- reflectance
- number :
- 5
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04553, 0.04553, 0.04578, ..., 0.2335 , 0.1722 , 0.1571 ], [0.0454 , 0.04553, 0.04565, ..., 0.1893 , 0.1534 , 0.2052 ], [0.04492, 0.04492, 0.04504, ..., 0.1864 , 0.1534 , 0.1996 ], ..., [0.04395, 0.04395, 0.04382, ..., 0.1815 , 0.1774 , 0.1791 ], [0.04395, 0.04395, 0.0437 , ..., 0.1871 , 0.1732 , 0.1725 ], [0.0442 , 0.04395, 0.0437 , ..., 0.1888 , 0.18 , 0.173 ]], shape=(267, 433), dtype=float16)
- swir1(northing, easting)float160.04626 0.04651 ... 0.2301 0.2213
- long_name :
- short-wave infrared 1
- units :
- reflectance
- number :
- 6
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04626, 0.0465 , 0.0465 , ..., 0.2588 , 0.1891 , 0.1367 ], [0.04602, 0.04614, 0.0464 , ..., 0.2247 , 0.1632 , 0.1493 ], [0.04626, 0.04614, 0.0465 , ..., 0.1766 , 0.1333 , 0.1406 ], ..., [0.0459 , 0.04614, 0.04614, ..., 0.2228 , 0.2201 , 0.2203 ], [0.04602, 0.04614, 0.04614, ..., 0.2303 , 0.2198 , 0.2189 ], [0.0459 , 0.04614, 0.04614, ..., 0.2372 , 0.2301 , 0.2213 ]], shape=(267, 433), dtype=float16)
- swir2(northing, easting)float160.047 0.04663 ... 0.1744 0.1686
- long_name :
- short-wave infrared 2
- units :
- reflectance
- number :
- 7
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.047 , 0.04663, 0.0465 , ..., 0.215 , 0.1613 , 0.1189 ], [0.04663, 0.0464 , 0.04626, ..., 0.1783 , 0.1422 , 0.10986], [0.04663, 0.0465 , 0.0465 , ..., 0.1649 , 0.1183 , 0.1134 ], ..., [0.04626, 0.0465 , 0.0464 , ..., 0.1678 , 0.1661 , 0.1659 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.173 , 0.1664 , 0.1678 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.1798 , 0.1744 , 0.1686 ]], shape=(267, 433), dtype=float16)
- thermal(northing, easting)float16287.0 287.0 287.0 ... 290.5 290.5
- long_name :
- thermal
- units :
- Kelvin
- number :
- 10
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
- scaling_mult :
- 0.00341802
- scaling_add :
- 149.0
array([[287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], ..., [286.5, 286.5, 286.5, ..., 290. , 290.2, 290.2], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5]], shape=(267, 433), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487020.0, 487050.0, 487080.0, 487110.0, 487140.0, 487170.0, 487200.0, 487230.0, 487260.0, 487290.0, ... 499710.0, 499740.0, 499770.0, 499800.0, 499830.0, 499860.0, 499890.0, 499920.0, 499950.0, 499980.0], dtype='float64', name='easting', length=433))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922030.0, 5922060.0, 5922090.0, 5922120.0, 5922150.0, 5922180.0, 5922210.0, 5922240.0, 5922270.0, ... 5929710.0, 5929740.0, 5929770.0, 5929800.0, 5929830.0, 5929860.0, 5929890.0, 5929920.0, 5929950.0, 5929980.0], dtype='float64', name='northing', length=267))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
The scene
contains all of the bands available in the archive and has
metadata populated from the MTL.txt
file. Notice also that the values for
each band have been converted to surface reflectance and surface
temperature automatically.
Load a scene from a folder#
If you don’t need all of the bands, you can save space by downloading only the
.TIF
files that you need from EarthExplorer. Once you do that, place the
.TIF
files and the associated MTL.txt
file (don’t forget it) in
the same folder. It’s important that a folder can only contain a single
scene, so if you’re working with multiple scenes you’ll have to place them in
different folders.
Let’s simulate this use case by telling
fetch_liverpool
to unpack the archive and give us
the path to the folder instead of the archive:
path_to_folder = xls.datasets.fetch_liverpool(untar=True)
print(path_to_folder)
/home/runner/.cache/xlandsat/main/LC08_L2SP_204023_20200927_20201006_02_T1-cropped.tar.gz.untar
Notice that there is now a .untar
at the end of the name, indicating that
this is the folder where the archive has been unpacked.
We can use the pathlib
module from the Python standard library to list
all of the files that are in this folder:
path_to_folder = pathlib.Path(path_to_folder)
print(f"This is indeed a folder: {path_to_folder.is_dir()}")
print("Folder contents:")
for file in path_to_folder.iterdir():
print(f" {file.name}")
This is indeed a folder: True
Folder contents:
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
As you can see, the band .TIF
files are there as well as the MTL.txt
file. Now that we have the path to a folder that has these files, we can pass
it to xlandsat.load_scene
and it will do its job:
scene = xls.load_scene(path_to_folder)
scene
<xarray.Dataset> Size: 2MB Dimensions: (easting: 433, northing: 267) Coordinates: * easting (easting) float64 3kB 4.87e+05 4.87e+05 ... 5e+05 5e+05 * northing (northing) float64 2kB 5.922e+06 5.922e+06 ... 5.93e+06 Data variables: coastal_aerosol (northing, easting) float16 231kB 0.06238 ... 0.0769 blue (northing, easting) float16 231kB 0.0708 ... 0.08301 green (northing, easting) float16 231kB 0.08618 ... 0.09753 red (northing, easting) float16 231kB 0.06824 0.06824 ... 0.116 nir (northing, easting) float16 231kB 0.04553 0.04553 ... 0.173 swir1 (northing, easting) float16 231kB 0.04626 ... 0.2213 swir2 (northing, easting) float16 231kB 0.047 0.04663 ... 0.1686 thermal (northing, easting) float16 231kB 287.0 287.0 ... 290.5 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 433
- northing: 267
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487020., 487050., 487080., ..., 499920., 499950., 499980.], shape=(433,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922030., 5922060., ..., 5929920., 5929950., 5929980.], shape=(267,))
- coastal_aerosol(northing, easting)float160.06238 0.06238 ... 0.07751 0.0769
- long_name :
- coastal aerosol
- units :
- reflectance
- number :
- 1
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06238, 0.06238, 0.0625 , ..., 0.1581 , 0.1278 , 0.0862 ], [0.0631 , 0.06323, 0.06287, ..., 0.1318 , 0.10364, 0.07654], [0.06055, 0.0598 , 0.05957, ..., 0.135 , 0.0896 , 0.0774 ], ..., [0.0614 , 0.06165, 0.06128, ..., 0.07776, 0.0774 , 0.0773 ], [0.06104, 0.06104, 0.06165, ..., 0.0785 , 0.07654, 0.07837], [0.06238, 0.06116, 0.0625 , ..., 0.07996, 0.0775 , 0.0769 ]], shape=(267, 433), dtype=float16)
- blue(northing, easting)float160.0708 0.07117 ... 0.08423 0.08301
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0708 , 0.07117, 0.07117, ..., 0.1771 , 0.1381 , 0.0896 ], [0.0708 , 0.0709 , 0.0709 , ..., 0.1296 , 0.1068 , 0.07825], [0.06934, 0.0698 , 0.0697 , ..., 0.1554 , 0.0923 , 0.0774 ], ..., [0.0709 , 0.0708 , 0.07117, ..., 0.084 , 0.0835 , 0.08374], [0.0714 , 0.0707 , 0.0714 , ..., 0.0856 , 0.08215, 0.0834 ], [0.0714 , 0.0718 , 0.07166, ..., 0.0862 , 0.0842 , 0.083 ]], shape=(267, 433), dtype=float16)
- green(northing, easting)float160.08618 0.08667 ... 0.09985 0.09753
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0862 , 0.0867 , 0.08655, ..., 0.2067 , 0.1556 , 0.10095], [0.0862 , 0.08655, 0.08655, ..., 0.137 , 0.11694, 0.09265], [0.0856 , 0.08545, 0.08545, ..., 0.1803 , 0.1046 , 0.08923], ..., [0.08826, 0.08777, 0.08826, ..., 0.1001 , 0.0985 , 0.09937], [0.0885 , 0.08826, 0.088 , ..., 0.10205, 0.0978 , 0.0978 ], [0.0885 , 0.0886 , 0.08813, ..., 0.1019 , 0.09985, 0.09753]], shape=(267, 433), dtype=float16)
- red(northing, easting)float160.06824 0.06824 ... 0.1193 0.116
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06824, 0.06824, 0.0687 , ..., 0.2181 , 0.1649 , 0.10254], [0.06824, 0.06885, 0.06885, ..., 0.1451 , 0.11804, 0.0856 ], [0.06775, 0.06824, 0.0676 , ..., 0.1869 , 0.1113 , 0.0868 ], ..., [0.06934, 0.0692 , 0.0692 , ..., 0.12085, 0.1179 , 0.1185 ], [0.06934, 0.0691 , 0.0692 , ..., 0.12305, 0.11694, 0.1166 ], [0.0686 , 0.06885, 0.0687 , ..., 0.1185 , 0.11926, 0.11597]], shape=(267, 433), dtype=float16)
- nir(northing, easting)float160.04553 0.04553 ... 0.1801 0.173
- long_name :
- near-infrared
- units :
- reflectance
- number :
- 5
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04553, 0.04553, 0.04578, ..., 0.2335 , 0.1722 , 0.1571 ], [0.0454 , 0.04553, 0.04565, ..., 0.1893 , 0.1534 , 0.2052 ], [0.04492, 0.04492, 0.04504, ..., 0.1864 , 0.1534 , 0.1996 ], ..., [0.04395, 0.04395, 0.04382, ..., 0.1815 , 0.1774 , 0.1791 ], [0.04395, 0.04395, 0.0437 , ..., 0.1871 , 0.1732 , 0.1725 ], [0.0442 , 0.04395, 0.0437 , ..., 0.1888 , 0.18 , 0.173 ]], shape=(267, 433), dtype=float16)
- swir1(northing, easting)float160.04626 0.04651 ... 0.2301 0.2213
- long_name :
- short-wave infrared 1
- units :
- reflectance
- number :
- 6
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04626, 0.0465 , 0.0465 , ..., 0.2588 , 0.1891 , 0.1367 ], [0.04602, 0.04614, 0.0464 , ..., 0.2247 , 0.1632 , 0.1493 ], [0.04626, 0.04614, 0.0465 , ..., 0.1766 , 0.1333 , 0.1406 ], ..., [0.0459 , 0.04614, 0.04614, ..., 0.2228 , 0.2201 , 0.2203 ], [0.04602, 0.04614, 0.04614, ..., 0.2303 , 0.2198 , 0.2189 ], [0.0459 , 0.04614, 0.04614, ..., 0.2372 , 0.2301 , 0.2213 ]], shape=(267, 433), dtype=float16)
- swir2(northing, easting)float160.047 0.04663 ... 0.1744 0.1686
- long_name :
- short-wave infrared 2
- units :
- reflectance
- number :
- 7
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.047 , 0.04663, 0.0465 , ..., 0.215 , 0.1613 , 0.1189 ], [0.04663, 0.0464 , 0.04626, ..., 0.1783 , 0.1422 , 0.10986], [0.04663, 0.0465 , 0.0465 , ..., 0.1649 , 0.1183 , 0.1134 ], ..., [0.04626, 0.0465 , 0.0464 , ..., 0.1678 , 0.1661 , 0.1659 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.173 , 0.1664 , 0.1678 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.1798 , 0.1744 , 0.1686 ]], shape=(267, 433), dtype=float16)
- thermal(northing, easting)float16287.0 287.0 287.0 ... 290.5 290.5
- long_name :
- thermal
- units :
- Kelvin
- number :
- 10
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
- scaling_mult :
- 0.00341802
- scaling_add :
- 149.0
array([[287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], ..., [286.5, 286.5, 286.5, ..., 290. , 290.2, 290.2], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5]], shape=(267, 433), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487020.0, 487050.0, 487080.0, 487110.0, 487140.0, 487170.0, 487200.0, 487230.0, 487260.0, 487290.0, ... 499710.0, 499740.0, 499770.0, 499800.0, 499830.0, 499860.0, 499890.0, 499920.0, 499950.0, 499980.0], dtype='float64', name='easting', length=433))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922030.0, 5922060.0, 5922090.0, 5922120.0, 5922150.0, 5922180.0, 5922210.0, 5922240.0, 5922270.0, ... 5929710.0, 5929740.0, 5929770.0, 5929800.0, 5929830.0, 5929860.0, 5929890.0, 5929920.0, 5929950.0, 5929980.0], dtype='float64', name='northing', length=267))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
Notice that this is the same result we had before.
Hint
Only the .TIF
files present will be loaded by
xlandsat.load_scene
. So you don’t need some of them, don’t include
them in the folder.
The scene, bands, and metadata#
The scene
itself is a xarray.Dataset
that contains:
easting
andnorthing
dimensions which are the UTM coordinates of the pixels (in meters).Several data variables that each represent a band. The bands are referenced by name, not by number. Each band is a
xarray.DataArray
that has the same dimensions as the scene.Missing values in the scene (either from the padding or out-of-bounds pixels) are represented by
numpy.nan
.Metadata for the scene, each dimension, and each band.
Placing a xarray.Dataset
or xarray.DataArray
at the end of a
Jupyter notebook cell will display a nice preview of the contents:
scene
<xarray.Dataset> Size: 2MB Dimensions: (easting: 433, northing: 267) Coordinates: * easting (easting) float64 3kB 4.87e+05 4.87e+05 ... 5e+05 5e+05 * northing (northing) float64 2kB 5.922e+06 5.922e+06 ... 5.93e+06 Data variables: coastal_aerosol (northing, easting) float16 231kB 0.06238 ... 0.0769 blue (northing, easting) float16 231kB 0.0708 ... 0.08301 green (northing, easting) float16 231kB 0.08618 ... 0.09753 red (northing, easting) float16 231kB 0.06824 0.06824 ... 0.116 nir (northing, easting) float16 231kB 0.04553 0.04553 ... 0.173 swir1 (northing, easting) float16 231kB 0.04626 ... 0.2213 swir2 (northing, easting) float16 231kB 0.047 0.04663 ... 0.1686 thermal (northing, easting) float16 231kB 287.0 287.0 ... 290.5 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 433
- northing: 267
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487020., 487050., 487080., ..., 499920., 499950., 499980.], shape=(433,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922030., 5922060., ..., 5929920., 5929950., 5929980.], shape=(267,))
- coastal_aerosol(northing, easting)float160.06238 0.06238 ... 0.07751 0.0769
- long_name :
- coastal aerosol
- units :
- reflectance
- number :
- 1
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06238, 0.06238, 0.0625 , ..., 0.1581 , 0.1278 , 0.0862 ], [0.0631 , 0.06323, 0.06287, ..., 0.1318 , 0.10364, 0.07654], [0.06055, 0.0598 , 0.05957, ..., 0.135 , 0.0896 , 0.0774 ], ..., [0.0614 , 0.06165, 0.06128, ..., 0.07776, 0.0774 , 0.0773 ], [0.06104, 0.06104, 0.06165, ..., 0.0785 , 0.07654, 0.07837], [0.06238, 0.06116, 0.0625 , ..., 0.07996, 0.0775 , 0.0769 ]], shape=(267, 433), dtype=float16)
- blue(northing, easting)float160.0708 0.07117 ... 0.08423 0.08301
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0708 , 0.07117, 0.07117, ..., 0.1771 , 0.1381 , 0.0896 ], [0.0708 , 0.0709 , 0.0709 , ..., 0.1296 , 0.1068 , 0.07825], [0.06934, 0.0698 , 0.0697 , ..., 0.1554 , 0.0923 , 0.0774 ], ..., [0.0709 , 0.0708 , 0.07117, ..., 0.084 , 0.0835 , 0.08374], [0.0714 , 0.0707 , 0.0714 , ..., 0.0856 , 0.08215, 0.0834 ], [0.0714 , 0.0718 , 0.07166, ..., 0.0862 , 0.0842 , 0.083 ]], shape=(267, 433), dtype=float16)
- green(northing, easting)float160.08618 0.08667 ... 0.09985 0.09753
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0862 , 0.0867 , 0.08655, ..., 0.2067 , 0.1556 , 0.10095], [0.0862 , 0.08655, 0.08655, ..., 0.137 , 0.11694, 0.09265], [0.0856 , 0.08545, 0.08545, ..., 0.1803 , 0.1046 , 0.08923], ..., [0.08826, 0.08777, 0.08826, ..., 0.1001 , 0.0985 , 0.09937], [0.0885 , 0.08826, 0.088 , ..., 0.10205, 0.0978 , 0.0978 ], [0.0885 , 0.0886 , 0.08813, ..., 0.1019 , 0.09985, 0.09753]], shape=(267, 433), dtype=float16)
- red(northing, easting)float160.06824 0.06824 ... 0.1193 0.116
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06824, 0.06824, 0.0687 , ..., 0.2181 , 0.1649 , 0.10254], [0.06824, 0.06885, 0.06885, ..., 0.1451 , 0.11804, 0.0856 ], [0.06775, 0.06824, 0.0676 , ..., 0.1869 , 0.1113 , 0.0868 ], ..., [0.06934, 0.0692 , 0.0692 , ..., 0.12085, 0.1179 , 0.1185 ], [0.06934, 0.0691 , 0.0692 , ..., 0.12305, 0.11694, 0.1166 ], [0.0686 , 0.06885, 0.0687 , ..., 0.1185 , 0.11926, 0.11597]], shape=(267, 433), dtype=float16)
- nir(northing, easting)float160.04553 0.04553 ... 0.1801 0.173
- long_name :
- near-infrared
- units :
- reflectance
- number :
- 5
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04553, 0.04553, 0.04578, ..., 0.2335 , 0.1722 , 0.1571 ], [0.0454 , 0.04553, 0.04565, ..., 0.1893 , 0.1534 , 0.2052 ], [0.04492, 0.04492, 0.04504, ..., 0.1864 , 0.1534 , 0.1996 ], ..., [0.04395, 0.04395, 0.04382, ..., 0.1815 , 0.1774 , 0.1791 ], [0.04395, 0.04395, 0.0437 , ..., 0.1871 , 0.1732 , 0.1725 ], [0.0442 , 0.04395, 0.0437 , ..., 0.1888 , 0.18 , 0.173 ]], shape=(267, 433), dtype=float16)
- swir1(northing, easting)float160.04626 0.04651 ... 0.2301 0.2213
- long_name :
- short-wave infrared 1
- units :
- reflectance
- number :
- 6
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04626, 0.0465 , 0.0465 , ..., 0.2588 , 0.1891 , 0.1367 ], [0.04602, 0.04614, 0.0464 , ..., 0.2247 , 0.1632 , 0.1493 ], [0.04626, 0.04614, 0.0465 , ..., 0.1766 , 0.1333 , 0.1406 ], ..., [0.0459 , 0.04614, 0.04614, ..., 0.2228 , 0.2201 , 0.2203 ], [0.04602, 0.04614, 0.04614, ..., 0.2303 , 0.2198 , 0.2189 ], [0.0459 , 0.04614, 0.04614, ..., 0.2372 , 0.2301 , 0.2213 ]], shape=(267, 433), dtype=float16)
- swir2(northing, easting)float160.047 0.04663 ... 0.1744 0.1686
- long_name :
- short-wave infrared 2
- units :
- reflectance
- number :
- 7
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.047 , 0.04663, 0.0465 , ..., 0.215 , 0.1613 , 0.1189 ], [0.04663, 0.0464 , 0.04626, ..., 0.1783 , 0.1422 , 0.10986], [0.04663, 0.0465 , 0.0465 , ..., 0.1649 , 0.1183 , 0.1134 ], ..., [0.04626, 0.0465 , 0.0464 , ..., 0.1678 , 0.1661 , 0.1659 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.173 , 0.1664 , 0.1678 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.1798 , 0.1744 , 0.1686 ]], shape=(267, 433), dtype=float16)
- thermal(northing, easting)float16287.0 287.0 287.0 ... 290.5 290.5
- long_name :
- thermal
- units :
- Kelvin
- number :
- 10
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
- scaling_mult :
- 0.00341802
- scaling_add :
- 149.0
array([[287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], [287. , 287. , 287. , ..., 291.5, 291.5, 291.5], ..., [286.5, 286.5, 286.5, ..., 290. , 290.2, 290.2], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5], [286.5, 286.5, 286.5, ..., 290.2, 290.5, 290.5]], shape=(267, 433), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487020.0, 487050.0, 487080.0, 487110.0, 487140.0, 487170.0, 487200.0, 487230.0, 487260.0, 487290.0, ... 499710.0, 499740.0, 499770.0, 499800.0, 499830.0, 499860.0, 499890.0, 499920.0, 499950.0, 499980.0], dtype='float64', name='easting', length=433))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922030.0, 5922060.0, 5922090.0, 5922120.0, 5922150.0, 5922180.0, 5922210.0, 5922240.0, 5922270.0, ... 5929710.0, 5929740.0, 5929770.0, 5929800.0, 5929830.0, 5929860.0, 5929890.0, 5929920.0, 5929950.0, 5929980.0], dtype='float64', name='northing', length=267))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
In the preview above, click on the icons to the right to access the metadata for each dimension and band and a preview of their data values. The metadata for the scene itself can be accessed by clicking in “Attributes”. Go ahead and explore what’s available!
The metadata is available programmatically through the attrs
attribute of
the scene. It behaves like a dictionary:
print(scene.attrs["landsat_product_id"])
print(scene.attrs["date_acquired"])
LC08_L2SP_204023_20200927_20201006_02_T1
2020-09-27
The metadata for the bands and the dimensions can be accessed the same way:
print(scene.blue.attrs["filename"])
print(scene.easting.attrs["long_name"])
LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
UTM easting
Selecting which bands to load#
If you have more bands downloaded than you actually want to use, then we can
save time and memory by only loading the desired bands.
For example, if our only goal is to make an RGB composite, then we only really
need the red, green, and blue bands.
Instead of having to edit the .tar
archive or move files out of our data
folder, we can tell xlandsat.load_scene
which bands we want by passing
it a list of band names like so:
scene = xls.load_scene(path_to_archive, bands=["red", "green", "blue"])
scene
<xarray.Dataset> Size: 699kB Dimensions: (easting: 433, northing: 267) Coordinates: * easting (easting) float64 3kB 4.87e+05 4.87e+05 4.871e+05 ... 5e+05 5e+05 * northing (northing) float64 2kB 5.922e+06 5.922e+06 ... 5.93e+06 5.93e+06 Data variables: blue (northing, easting) float16 231kB 0.0708 0.07117 ... 0.08301 green (northing, easting) float16 231kB 0.08618 0.08667 ... 0.09753 red (northing, easting) float16 231kB 0.06824 0.06824 ... 0.1193 0.116 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 433
- northing: 267
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487020., 487050., 487080., ..., 499920., 499950., 499980.], shape=(433,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922030., 5922060., ..., 5929920., 5929950., 5929980.], shape=(267,))
- blue(northing, easting)float160.0708 0.07117 ... 0.08423 0.08301
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0708 , 0.07117, 0.07117, ..., 0.1771 , 0.1381 , 0.0896 ], [0.0708 , 0.0709 , 0.0709 , ..., 0.1296 , 0.1068 , 0.07825], [0.06934, 0.0698 , 0.0697 , ..., 0.1554 , 0.0923 , 0.0774 ], ..., [0.0709 , 0.0708 , 0.07117, ..., 0.084 , 0.0835 , 0.08374], [0.0714 , 0.0707 , 0.0714 , ..., 0.0856 , 0.08215, 0.0834 ], [0.0714 , 0.0718 , 0.07166, ..., 0.0862 , 0.0842 , 0.083 ]], shape=(267, 433), dtype=float16)
- green(northing, easting)float160.08618 0.08667 ... 0.09985 0.09753
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0862 , 0.0867 , 0.08655, ..., 0.2067 , 0.1556 , 0.10095], [0.0862 , 0.08655, 0.08655, ..., 0.137 , 0.11694, 0.09265], [0.0856 , 0.08545, 0.08545, ..., 0.1803 , 0.1046 , 0.08923], ..., [0.08826, 0.08777, 0.08826, ..., 0.1001 , 0.0985 , 0.09937], [0.0885 , 0.08826, 0.088 , ..., 0.10205, 0.0978 , 0.0978 ], [0.0885 , 0.0886 , 0.08813, ..., 0.1019 , 0.09985, 0.09753]], shape=(267, 433), dtype=float16)
- red(northing, easting)float160.06824 0.06824 ... 0.1193 0.116
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06824, 0.06824, 0.0687 , ..., 0.2181 , 0.1649 , 0.10254], [0.06824, 0.06885, 0.06885, ..., 0.1451 , 0.11804, 0.0856 ], [0.06775, 0.06824, 0.0676 , ..., 0.1869 , 0.1113 , 0.0868 ], ..., [0.06934, 0.0692 , 0.0692 , ..., 0.12085, 0.1179 , 0.1185 ], [0.06934, 0.0691 , 0.0692 , ..., 0.12305, 0.11694, 0.1166 ], [0.0686 , 0.06885, 0.0687 , ..., 0.1185 , 0.11926, 0.11597]], shape=(267, 433), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487020.0, 487050.0, 487080.0, 487110.0, 487140.0, 487170.0, 487200.0, 487230.0, 487260.0, 487290.0, ... 499710.0, 499740.0, 499770.0, 499800.0, 499830.0, 499860.0, 499890.0, 499920.0, 499950.0, 499980.0], dtype='float64', name='easting', length=433))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922030.0, 5922060.0, 5922090.0, 5922120.0, 5922150.0, 5922180.0, 5922210.0, 5922240.0, 5922270.0, ... 5929710.0, 5929740.0, 5929770.0, 5929800.0, 5929830.0, 5929860.0, 5929890.0, 5929920.0, 5929950.0, 5929980.0], dtype='float64', name='northing', length=267))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
This works the same if reading from an archive or from a folder that contains more band files than we want:
scene = xls.load_scene(path_to_folder, bands=["red", "green", "blue"])
scene
<xarray.Dataset> Size: 699kB Dimensions: (easting: 433, northing: 267) Coordinates: * easting (easting) float64 3kB 4.87e+05 4.87e+05 4.871e+05 ... 5e+05 5e+05 * northing (northing) float64 2kB 5.922e+06 5.922e+06 ... 5.93e+06 5.93e+06 Data variables: blue (northing, easting) float16 231kB 0.0708 0.07117 ... 0.08301 green (northing, easting) float16 231kB 0.08618 0.08667 ... 0.09753 red (northing, easting) float16 231kB 0.06824 0.06824 ... 0.1193 0.116 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 433
- northing: 267
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487020., 487050., 487080., ..., 499920., 499950., 499980.], shape=(433,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922030., 5922060., ..., 5929920., 5929950., 5929980.], shape=(267,))
- blue(northing, easting)float160.0708 0.07117 ... 0.08423 0.08301
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0708 , 0.07117, 0.07117, ..., 0.1771 , 0.1381 , 0.0896 ], [0.0708 , 0.0709 , 0.0709 , ..., 0.1296 , 0.1068 , 0.07825], [0.06934, 0.0698 , 0.0697 , ..., 0.1554 , 0.0923 , 0.0774 ], ..., [0.0709 , 0.0708 , 0.07117, ..., 0.084 , 0.0835 , 0.08374], [0.0714 , 0.0707 , 0.0714 , ..., 0.0856 , 0.08215, 0.0834 ], [0.0714 , 0.0718 , 0.07166, ..., 0.0862 , 0.0842 , 0.083 ]], shape=(267, 433), dtype=float16)
- green(northing, easting)float160.08618 0.08667 ... 0.09985 0.09753
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0862 , 0.0867 , 0.08655, ..., 0.2067 , 0.1556 , 0.10095], [0.0862 , 0.08655, 0.08655, ..., 0.137 , 0.11694, 0.09265], [0.0856 , 0.08545, 0.08545, ..., 0.1803 , 0.1046 , 0.08923], ..., [0.08826, 0.08777, 0.08826, ..., 0.1001 , 0.0985 , 0.09937], [0.0885 , 0.08826, 0.088 , ..., 0.10205, 0.0978 , 0.0978 ], [0.0885 , 0.0886 , 0.08813, ..., 0.1019 , 0.09985, 0.09753]], shape=(267, 433), dtype=float16)
- red(northing, easting)float160.06824 0.06824 ... 0.1193 0.116
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06824, 0.06824, 0.0687 , ..., 0.2181 , 0.1649 , 0.10254], [0.06824, 0.06885, 0.06885, ..., 0.1451 , 0.11804, 0.0856 ], [0.06775, 0.06824, 0.0676 , ..., 0.1869 , 0.1113 , 0.0868 ], ..., [0.06934, 0.0692 , 0.0692 , ..., 0.12085, 0.1179 , 0.1185 ], [0.06934, 0.0691 , 0.0692 , ..., 0.12305, 0.11694, 0.1166 ], [0.0686 , 0.06885, 0.0687 , ..., 0.1185 , 0.11926, 0.11597]], shape=(267, 433), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487020.0, 487050.0, 487080.0, 487110.0, 487140.0, 487170.0, 487200.0, 487230.0, 487260.0, 487290.0, ... 499710.0, 499740.0, 499770.0, 499800.0, 499830.0, 499860.0, 499890.0, 499920.0, 499950.0, 499980.0], dtype='float64', name='easting', length=433))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922030.0, 5922060.0, 5922090.0, 5922120.0, 5922150.0, 5922180.0, 5922210.0, 5922240.0, 5922270.0, ... 5929710.0, 5929740.0, 5929770.0, 5929800.0, 5929830.0, 5929860.0, 5929890.0, 5929920.0, 5929950.0, 5929980.0], dtype='float64', name='northing', length=267))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
Loading only a segment of the scene#
Since Landsat scenes are large, it’s not uncommon to need only a smaller
section of a scene. Limiting the spatial extent loaded can also help reduce the
memory requirement, particularly when loading a time series of scenes.
We could crop an existing scene after loading by using xarray.Dataset.sel
with the UTM bounding box of the desired region:
scene = xls.load_scene(path_to_archive)
cropped = scene.sel(
easting=slice(4.88e5, 4.90e5),
northing=slice(5.925e6, 5.927e6),
)
cropped
<xarray.Dataset> Size: 73kB Dimensions: (easting: 67, northing: 67) Coordinates: * easting (easting) float64 536B 4.88e+05 4.88e+05 ... 4.9e+05 * northing (northing) float64 536B 5.925e+06 5.925e+06 ... 5.927e+06 Data variables: coastal_aerosol (northing, easting) float16 9kB 0.05811 0.06042 ... 0.05505 blue (northing, easting) float16 9kB 0.0675 0.06873 ... 0.06519 green (northing, easting) float16 9kB 0.08569 0.08655 ... 0.08752 red (northing, easting) float16 9kB 0.06885 0.06934 ... 0.07495 nir (northing, easting) float16 9kB 0.04407 0.0448 ... 0.04346 swir1 (northing, easting) float16 9kB 0.04602 0.04651 ... 0.04553 swir2 (northing, easting) float16 9kB 0.04626 0.04639 ... 0.04675 thermal (northing, easting) float16 9kB 286.8 286.8 ... 286.5 286.5 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 67
- northing: 67
- easting(easting)float644.88e+05 4.88e+05 ... 4.9e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([488010., 488040., 488070., 488100., 488130., 488160., 488190., 488220., 488250., 488280., 488310., 488340., 488370., 488400., 488430., 488460., 488490., 488520., 488550., 488580., 488610., 488640., 488670., 488700., 488730., 488760., 488790., 488820., 488850., 488880., 488910., 488940., 488970., 489000., 489030., 489060., 489090., 489120., 489150., 489180., 489210., 489240., 489270., 489300., 489330., 489360., 489390., 489420., 489450., 489480., 489510., 489540., 489570., 489600., 489630., 489660., 489690., 489720., 489750., 489780., 489810., 489840., 489870., 489900., 489930., 489960., 489990.])
- northing(northing)float645.925e+06 5.925e+06 ... 5.927e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5925000., 5925030., 5925060., 5925090., 5925120., 5925150., 5925180., 5925210., 5925240., 5925270., 5925300., 5925330., 5925360., 5925390., 5925420., 5925450., 5925480., 5925510., 5925540., 5925570., 5925600., 5925630., 5925660., 5925690., 5925720., 5925750., 5925780., 5925810., 5925840., 5925870., 5925900., 5925930., 5925960., 5925990., 5926020., 5926050., 5926080., 5926110., 5926140., 5926170., 5926200., 5926230., 5926260., 5926290., 5926320., 5926350., 5926380., 5926410., 5926440., 5926470., 5926500., 5926530., 5926560., 5926590., 5926620., 5926650., 5926680., 5926710., 5926740., 5926770., 5926800., 5926830., 5926860., 5926890., 5926920., 5926950., 5926980.])
- coastal_aerosol(northing, easting)float160.05811 0.06042 ... 0.05237 0.05505
- long_name :
- coastal aerosol
- units :
- reflectance
- number :
- 1
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0581 , 0.06042, 0.0614 , ..., 0.0569 , 0.05737, 0.0581 ], [0.05786, 0.05798, 0.05945, ..., 0.05798, 0.05933, 0.0581 ], [0.057 , 0.05847, 0.0586 , ..., 0.05872, 0.05933, 0.05908], ..., [0.05933, 0.06018, 0.05957, ..., 0.05005, 0.05066, 0.05127], [0.0597 , 0.05994, 0.05908, ..., 0.0514 , 0.05212, 0.05322], [0.0598 , 0.05994, 0.05933, ..., 0.05164, 0.05237, 0.05505]], shape=(67, 67), dtype=float16)
- blue(northing, easting)float160.0675 0.06873 ... 0.06409 0.06519
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0675 , 0.0687 , 0.0703 , ..., 0.0665 , 0.067 , 0.0681 ], [0.0675 , 0.06824, 0.0696 , ..., 0.06824, 0.0686 , 0.0686 ], [0.0676 , 0.06775, 0.06836, ..., 0.06885, 0.0686 , 0.0686 ], ..., [0.0691 , 0.06934, 0.06934, ..., 0.0625 , 0.0625 , 0.06287], [0.06934, 0.0692 , 0.0687 , ..., 0.063 , 0.0635 , 0.0646 ], [0.0691 , 0.0692 , 0.06934, ..., 0.06323, 0.0641 , 0.0652 ]], shape=(67, 67), dtype=float16)
- green(northing, easting)float160.08569 0.08655 ... 0.0863 0.08752
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0857 , 0.08655, 0.08716, ..., 0.08545, 0.0858 , 0.08704], [0.0856 , 0.08606, 0.08655, ..., 0.08765, 0.08765, 0.0875 ], [0.0842 , 0.0862 , 0.0857 , ..., 0.08765, 0.0886 , 0.08777], ..., [0.0873 , 0.0873 , 0.0873 , ..., 0.0862 , 0.0862 , 0.0863 ], [0.0875 , 0.08777, 0.0875 , ..., 0.0862 , 0.0863 , 0.0867 ], [0.0873 , 0.0873 , 0.0868 , ..., 0.08606, 0.0863 , 0.0875 ]], shape=(67, 67), dtype=float16)
- red(northing, easting)float160.06885 0.06934 ... 0.07495 0.07495
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06885, 0.06934, 0.0698 , ..., 0.0698 , 0.0708 , 0.07336], [0.06885, 0.06934, 0.06934, ..., 0.07336, 0.074 , 0.0747 ], [0.0681 , 0.0686 , 0.0692 , ..., 0.074 , 0.07495, 0.07544], ..., [0.07007, 0.0702 , 0.0703 , ..., 0.0753 , 0.07495, 0.0747 ], [0.0702 , 0.07007, 0.0702 , ..., 0.07495, 0.0747 , 0.0742 ], [0.0703 , 0.07007, 0.07043, ..., 0.0742 , 0.07495, 0.07495]], shape=(67, 67), dtype=float16)
- nir(northing, easting)float160.04407 0.0448 ... 0.04211 0.04346
- long_name :
- near-infrared
- units :
- reflectance
- number :
- 5
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04407, 0.0448 , 0.0453 , ..., 0.0442 , 0.04443, 0.04468], [0.0443 , 0.04443, 0.0448 , ..., 0.0448 , 0.04492, 0.04468], [0.0443 , 0.04395, 0.04443, ..., 0.0448 , 0.0448 , 0.04504], ..., [0.04395, 0.04407, 0.04407, ..., 0.04248, 0.0421 , 0.04224], [0.0442 , 0.04395, 0.0442 , ..., 0.0426 , 0.04236, 0.04285], [0.04468, 0.04443, 0.04468, ..., 0.04248, 0.0421 , 0.04346]], shape=(67, 67), dtype=float16)
- swir1(northing, easting)float160.04602 0.04651 ... 0.04578 0.04553
- long_name :
- short-wave infrared 1
- units :
- reflectance
- number :
- 6
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04602, 0.0465 , 0.0465 , ..., 0.04626, 0.04614, 0.04602], [0.04614, 0.04602, 0.04614, ..., 0.04626, 0.04614, 0.04602], [0.04578, 0.0459 , 0.04602, ..., 0.04578, 0.04614, 0.04602], ..., [0.04602, 0.04578, 0.04602, ..., 0.04553, 0.04517, 0.0453 ], [0.04626, 0.04626, 0.04626, ..., 0.04565, 0.04553, 0.04578], [0.04614, 0.04602, 0.04626, ..., 0.04565, 0.04578, 0.04553]], shape=(67, 67), dtype=float16)
- swir2(northing, easting)float160.04626 0.04639 ... 0.04626 0.04675
- long_name :
- short-wave infrared 2
- units :
- reflectance
- number :
- 7
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04626, 0.0464 , 0.04688, ..., 0.04675, 0.04626, 0.0464 ], [0.04675, 0.04626, 0.0464 , ..., 0.047 , 0.04675, 0.0464 ], [0.0464 , 0.04663, 0.04614, ..., 0.0465 , 0.04663, 0.0465 ], ..., [0.04675, 0.04663, 0.0465 , ..., 0.04663, 0.0465 , 0.0465 ], [0.0465 , 0.0465 , 0.0465 , ..., 0.04675, 0.04626, 0.04663], [0.0464 , 0.04626, 0.0464 , ..., 0.0465 , 0.04626, 0.04675]], shape=(67, 67), dtype=float16)
- thermal(northing, easting)float16286.8 286.8 286.8 ... 286.5 286.5
- long_name :
- thermal
- units :
- Kelvin
- number :
- 10
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
- scaling_mult :
- 0.00341802
- scaling_add :
- 149.0
array([[286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], [286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], [286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], ..., [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5], [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5], [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5]], shape=(67, 67), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([488010.0, 488040.0, 488070.0, 488100.0, 488130.0, 488160.0, 488190.0, 488220.0, 488250.0, 488280.0, 488310.0, 488340.0, 488370.0, 488400.0, 488430.0, 488460.0, 488490.0, 488520.0, 488550.0, 488580.0, 488610.0, 488640.0, 488670.0, 488700.0, 488730.0, 488760.0, 488790.0, 488820.0, 488850.0, 488880.0, 488910.0, 488940.0, 488970.0, 489000.0, 489030.0, 489060.0, 489090.0, 489120.0, 489150.0, 489180.0, 489210.0, 489240.0, 489270.0, 489300.0, 489330.0, 489360.0, 489390.0, 489420.0, 489450.0, 489480.0, 489510.0, 489540.0, 489570.0, 489600.0, 489630.0, 489660.0, 489690.0, 489720.0, 489750.0, 489780.0, 489810.0, 489840.0, 489870.0, 489900.0, 489930.0, 489960.0, 489990.0], dtype='float64', name='easting'))
- northingPandasIndex
PandasIndex(Index([5925000.0, 5925030.0, 5925060.0, 5925090.0, 5925120.0, 5925150.0, 5925180.0, 5925210.0, 5925240.0, 5925270.0, 5925300.0, 5925330.0, 5925360.0, 5925390.0, 5925420.0, 5925450.0, 5925480.0, 5925510.0, 5925540.0, 5925570.0, 5925600.0, 5925630.0, 5925660.0, 5925690.0, 5925720.0, 5925750.0, 5925780.0, 5925810.0, 5925840.0, 5925870.0, 5925900.0, 5925930.0, 5925960.0, 5925990.0, 5926020.0, 5926050.0, 5926080.0, 5926110.0, 5926140.0, 5926170.0, 5926200.0, 5926230.0, 5926260.0, 5926290.0, 5926320.0, 5926350.0, 5926380.0, 5926410.0, 5926440.0, 5926470.0, 5926500.0, 5926530.0, 5926560.0, 5926590.0, 5926620.0, 5926650.0, 5926680.0, 5926710.0, 5926740.0, 5926770.0, 5926800.0, 5926830.0, 5926860.0, 5926890.0, 5926920.0, 5926950.0, 5926980.0], dtype='float64', name='northing'))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
But this will still load the full scene, which takes up time and memory. A better way to do this is to crop the scene directly when loading it:
cropped = xls.load_scene(
path_to_archive,
region=(4.88e5, 4.90e5, 5.925e6, 5.927e6),
)
cropped
<xarray.Dataset> Size: 74kB Dimensions: (easting: 68, northing: 67) Coordinates: * easting (easting) float64 544B 4.88e+05 4.88e+05 ... 4.9e+05 * northing (northing) float64 536B 5.925e+06 5.925e+06 ... 5.927e+06 Data variables: coastal_aerosol (northing, easting) float16 9kB 0.05786 0.05811 ... 0.05505 blue (northing, easting) float16 9kB 0.06775 0.0675 ... 0.06519 green (northing, easting) float16 9kB 0.08557 0.08569 ... 0.08752 red (northing, easting) float16 9kB 0.06885 0.06885 ... 0.07495 nir (northing, easting) float16 9kB 0.04431 0.04407 ... 0.04346 swir1 (northing, easting) float16 9kB 0.04602 0.04602 ... 0.04553 swir2 (northing, easting) float16 9kB 0.04651 0.04626 ... 0.04675 thermal (northing, easting) float16 9kB 286.8 286.8 ... 286.5 286.5 Attributes: (12/19) Conventions: CF-1.8 title: Landsat 8 scene from 2020-09-27 (path/row=204... digital_object_identifier: https://doi.org/10.5066/P9OGBGM6 origin: Image courtesy of the U.S. Geological Survey landsat_product_id: LC08_L2SP_204023_20200927_20201006_02_T1 processing_level: L2SP ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- easting: 68
- northing: 67
- easting(easting)float644.88e+05 4.88e+05 ... 4.9e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487980., 488010., 488040., 488070., 488100., 488130., 488160., 488190., 488220., 488250., 488280., 488310., 488340., 488370., 488400., 488430., 488460., 488490., 488520., 488550., 488580., 488610., 488640., 488670., 488700., 488730., 488760., 488790., 488820., 488850., 488880., 488910., 488940., 488970., 489000., 489030., 489060., 489090., 489120., 489150., 489180., 489210., 489240., 489270., 489300., 489330., 489360., 489390., 489420., 489450., 489480., 489510., 489540., 489570., 489600., 489630., 489660., 489690., 489720., 489750., 489780., 489810., 489840., 489870., 489900., 489930., 489960., 489990.])
- northing(northing)float645.925e+06 5.925e+06 ... 5.927e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5925000., 5925030., 5925060., 5925090., 5925120., 5925150., 5925180., 5925210., 5925240., 5925270., 5925300., 5925330., 5925360., 5925390., 5925420., 5925450., 5925480., 5925510., 5925540., 5925570., 5925600., 5925630., 5925660., 5925690., 5925720., 5925750., 5925780., 5925810., 5925840., 5925870., 5925900., 5925930., 5925960., 5925990., 5926020., 5926050., 5926080., 5926110., 5926140., 5926170., 5926200., 5926230., 5926260., 5926290., 5926320., 5926350., 5926380., 5926410., 5926440., 5926470., 5926500., 5926530., 5926560., 5926590., 5926620., 5926650., 5926680., 5926710., 5926740., 5926770., 5926800., 5926830., 5926860., 5926890., 5926920., 5926950., 5926980.])
- coastal_aerosol(northing, easting)float160.05786 0.05811 ... 0.05237 0.05505
- long_name :
- coastal aerosol
- units :
- reflectance
- number :
- 1
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.05786, 0.0581 , 0.06042, ..., 0.0569 , 0.05737, 0.0581 ], [0.0581 , 0.05786, 0.05798, ..., 0.05798, 0.05933, 0.0581 ], [0.0586 , 0.057 , 0.05847, ..., 0.05872, 0.05933, 0.05908], ..., [0.05933, 0.05933, 0.06018, ..., 0.05005, 0.05066, 0.05127], [0.05908, 0.0597 , 0.05994, ..., 0.0514 , 0.05212, 0.05322], [0.05957, 0.0598 , 0.05994, ..., 0.05164, 0.05237, 0.05505]], shape=(67, 68), dtype=float16)
- blue(northing, easting)float160.06775 0.0675 ... 0.06409 0.06519
- long_name :
- blue
- units :
- reflectance
- number :
- 2
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06775, 0.0675 , 0.0687 , ..., 0.0665 , 0.067 , 0.0681 ], [0.06775, 0.0675 , 0.06824, ..., 0.06824, 0.0686 , 0.0686 ], [0.0675 , 0.0676 , 0.06775, ..., 0.06885, 0.0686 , 0.0686 ], ..., [0.06824, 0.0691 , 0.06934, ..., 0.0625 , 0.0625 , 0.06287], [0.0692 , 0.06934, 0.0692 , ..., 0.063 , 0.0635 , 0.0646 ], [0.0692 , 0.0691 , 0.0692 , ..., 0.06323, 0.0641 , 0.0652 ]], shape=(67, 68), dtype=float16)
- green(northing, easting)float160.08557 0.08569 ... 0.0863 0.08752
- long_name :
- green
- units :
- reflectance
- number :
- 3
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0856 , 0.0857 , 0.08655, ..., 0.08545, 0.0858 , 0.08704], [0.0856 , 0.0856 , 0.08606, ..., 0.08765, 0.08765, 0.0875 ], [0.0852 , 0.0842 , 0.0862 , ..., 0.08765, 0.0886 , 0.08777], ..., [0.0863 , 0.0873 , 0.0873 , ..., 0.0862 , 0.0862 , 0.0863 ], [0.08716, 0.0875 , 0.08777, ..., 0.0862 , 0.0863 , 0.0867 ], [0.08716, 0.0873 , 0.0873 , ..., 0.08606, 0.0863 , 0.0875 ]], shape=(67, 68), dtype=float16)
- red(northing, easting)float160.06885 0.06885 ... 0.07495 0.07495
- long_name :
- red
- units :
- reflectance
- number :
- 4
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.06885, 0.06885, 0.06934, ..., 0.0698 , 0.0708 , 0.07336], [0.06824, 0.06885, 0.06934, ..., 0.07336, 0.074 , 0.0747 ], [0.068 , 0.0681 , 0.0686 , ..., 0.074 , 0.07495, 0.07544], ..., [0.0691 , 0.07007, 0.0702 , ..., 0.0753 , 0.07495, 0.0747 ], [0.0702 , 0.0702 , 0.07007, ..., 0.07495, 0.0747 , 0.0742 ], [0.0697 , 0.0703 , 0.07007, ..., 0.0742 , 0.07495, 0.07495]], shape=(67, 68), dtype=float16)
- nir(northing, easting)float160.04431 0.04407 ... 0.04211 0.04346
- long_name :
- near-infrared
- units :
- reflectance
- number :
- 5
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0443 , 0.04407, 0.0448 , ..., 0.0442 , 0.04443, 0.04468], [0.04407, 0.0443 , 0.04443, ..., 0.0448 , 0.04492, 0.04468], [0.04395, 0.0443 , 0.04395, ..., 0.0448 , 0.0448 , 0.04504], ..., [0.0442 , 0.04395, 0.04407, ..., 0.04248, 0.0421 , 0.04224], [0.0443 , 0.0442 , 0.04395, ..., 0.0426 , 0.04236, 0.04285], [0.04443, 0.04468, 0.04443, ..., 0.04248, 0.0421 , 0.04346]], shape=(67, 68), dtype=float16)
- swir1(northing, easting)float160.04602 0.04602 ... 0.04578 0.04553
- long_name :
- short-wave infrared 1
- units :
- reflectance
- number :
- 6
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.04602, 0.04602, 0.0465 , ..., 0.04626, 0.04614, 0.04602], [0.04602, 0.04614, 0.04602, ..., 0.04626, 0.04614, 0.04602], [0.04578, 0.04578, 0.0459 , ..., 0.04578, 0.04614, 0.04602], ..., [0.04602, 0.04602, 0.04578, ..., 0.04553, 0.04517, 0.0453 ], [0.04602, 0.04626, 0.04626, ..., 0.04565, 0.04553, 0.04578], [0.04602, 0.04614, 0.04602, ..., 0.04565, 0.04578, 0.04553]], shape=(67, 68), dtype=float16)
- swir2(northing, easting)float160.04651 0.04626 ... 0.04626 0.04675
- long_name :
- short-wave infrared 2
- units :
- reflectance
- number :
- 7
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
array([[0.0465 , 0.04626, 0.0464 , ..., 0.04675, 0.04626, 0.0464 ], [0.0465 , 0.04675, 0.04626, ..., 0.047 , 0.04675, 0.0464 ], [0.0465 , 0.0464 , 0.04663, ..., 0.0465 , 0.04663, 0.0465 ], ..., [0.0465 , 0.04675, 0.04663, ..., 0.04663, 0.0465 , 0.0465 ], [0.0464 , 0.0465 , 0.0465 , ..., 0.04675, 0.04626, 0.04663], [0.0465 , 0.0464 , 0.04626, ..., 0.0465 , 0.04626, 0.04675]], shape=(67, 68), dtype=float16)
- thermal(northing, easting)float16286.8 286.8 286.8 ... 286.5 286.5
- long_name :
- thermal
- units :
- Kelvin
- number :
- 10
- filename :
- LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF
- scaling_mult :
- 0.00341802
- scaling_add :
- 149.0
array([[286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], [286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], [286.8, 286.8, 286.8, ..., 286.5, 286.5, 286.2], ..., [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5], [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5], [286.5, 286.5, 286.5, ..., 286.5, 286.5, 286.5]], shape=(67, 68), dtype=float16)
- eastingPandasIndex
PandasIndex(Index([487980.0, 488010.0, 488040.0, 488070.0, 488100.0, 488130.0, 488160.0, 488190.0, 488220.0, 488250.0, 488280.0, 488310.0, 488340.0, 488370.0, 488400.0, 488430.0, 488460.0, 488490.0, 488520.0, 488550.0, 488580.0, 488610.0, 488640.0, 488670.0, 488700.0, 488730.0, 488760.0, 488790.0, 488820.0, 488850.0, 488880.0, 488910.0, 488940.0, 488970.0, 489000.0, 489030.0, 489060.0, 489090.0, 489120.0, 489150.0, 489180.0, 489210.0, 489240.0, 489270.0, 489300.0, 489330.0, 489360.0, 489390.0, 489420.0, 489450.0, 489480.0, 489510.0, 489540.0, 489570.0, 489600.0, 489630.0, 489660.0, 489690.0, 489720.0, 489750.0, 489780.0, 489810.0, 489840.0, 489870.0, 489900.0, 489930.0, 489960.0, 489990.0], dtype='float64', name='easting'))
- northingPandasIndex
PandasIndex(Index([5925000.0, 5925030.0, 5925060.0, 5925090.0, 5925120.0, 5925150.0, 5925180.0, 5925210.0, 5925240.0, 5925270.0, 5925300.0, 5925330.0, 5925360.0, 5925390.0, 5925420.0, 5925450.0, 5925480.0, 5925510.0, 5925540.0, 5925570.0, 5925600.0, 5925630.0, 5925660.0, 5925690.0, 5925720.0, 5925750.0, 5925780.0, 5925810.0, 5925840.0, 5925870.0, 5925900.0, 5925930.0, 5925960.0, 5925990.0, 5926020.0, 5926050.0, 5926080.0, 5926110.0, 5926140.0, 5926170.0, 5926200.0, 5926230.0, 5926260.0, 5926290.0, 5926320.0, 5926350.0, 5926380.0, 5926410.0, 5926440.0, 5926470.0, 5926500.0, 5926530.0, 5926560.0, 5926590.0, 5926620.0, 5926650.0, 5926680.0, 5926710.0, 5926740.0, 5926770.0, 5926800.0, 5926830.0, 5926860.0, 5926890.0, 5926920.0, 5926950.0, 5926980.0], dtype='float64', name='northing'))
- Conventions :
- CF-1.8
- title :
- Landsat 8 scene from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P9OGBGM6
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L2SP_204023_20200927_20201006_02_T1
- processing_level :
- L2SP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- GROUP = LANDSAT_METADATA_FILE GROUP = PRODUCT_CONTENTS ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B1.TIF" FILE_NAME_BAND_2 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B2.TIF" FILE_NAME_BAND_3 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B3.TIF" FILE_NAME_BAND_4 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B4.TIF" FILE_NAME_BAND_5 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B5.TIF" FILE_NAME_BAND_6 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B6.TIF" FILE_NAME_BAND_7 = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_B7.TIF" FILE_NAME_BAND_ST_B10 = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_B10.TIF" FILE_NAME_THERMAL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_TRAD.TIF" FILE_NAME_UPWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_URAD.TIF" FILE_NAME_DOWNWELL_RADIANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_DRAD.TIF" FILE_NAME_ATMOSPHERIC_TRANSMITTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_ATRAN.TIF" FILE_NAME_EMISSIVITY = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMIS.TIF" FILE_NAME_EMISSIVITY_STDEV = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_EMSD.TIF" FILE_NAME_CLOUD_DISTANCE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_CDIST.TIF" FILE_NAME_QUALITY_L2_AEROSOL = "LC08_L2SP_204023_20200927_20201006_02_T1_SR_QA_AEROSOL.TIF" FILE_NAME_QUALITY_L2_SURFACE_TEMPERATURE = "LC08_L2SP_204023_20200927_20201006_02_T1_ST_QA.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L2SP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L2SP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_METADATA_ODL = "LC08_L2SP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L2SP_204023_20200927_20201006_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_ST_B10 = "UINT16" DATA_TYPE_THERMAL_RADIANCE = "INT16" DATA_TYPE_UPWELL_RADIANCE = "INT16" DATA_TYPE_DOWNWELL_RADIANCE = "INT16" DATA_TYPE_ATMOSPHERIC_TRANSMITTANCE = "INT16" DATA_TYPE_EMISSIVITY = "INT16" DATA_TYPE_EMISSIVITY_STDEV = "INT16" DATA_TYPE_CLOUD_DISTANCE = "INT16" DATA_TYPE_QUALITY_L2_AEROSOL = "UINT8" DATA_TYPE_QUALITY_L2_SURFACE_TEMPERATURE = "INT16" DATA_TYPE_QUALITY_L1_PIXEL = "UINT16" DATA_TYPE_QUALITY_L1_RADIOMETRIC_SATURATION = "UINT16" END_GROUP = PRODUCT_CONTENTS GROUP = IMAGE_ATTRIBUTES SPACECRAFT_ID = "LANDSAT_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 REFLECTIVE_LINES = 267 REFLECTIVE_SAMPLES = 433 THERMAL_LINES = 267 THERMAL_SAMPLES = 433 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487020.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_UR_PROJECTION_X_PRODUCT = 499980.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929980.0 CORNER_LL_PROJECTION_X_PRODUCT = 487020.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499980.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 END_GROUP = PROJECTION_ATTRIBUTES GROUP = LEVEL2_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P9OGBGM6" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_PRODUCT_ID = "LC08_L2SP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L2SP" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:42:07Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" ALGORITHM_SOURCE_SURFACE_REFLECTANCE = "LaSRC_1.5.0" DATA_SOURCE_OZONE = "MODIS" DATA_SOURCE_PRESSURE = "Calculated" DATA_SOURCE_WATER_VAPOR = "MODIS" DATA_SOURCE_AIR_TEMPERATURE = "MODIS" ALGORITHM_SOURCE_SURFACE_TEMPERATURE = "st_1.3.0" DATA_SOURCE_REANALYSIS = "GEOS-5 FP-IT" END_GROUP = LEVEL2_PROCESSING_RECORD GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS REFLECTANCE_MAXIMUM_BAND_1 = 1.602213 REFLECTANCE_MINIMUM_BAND_1 = -0.199972 REFLECTANCE_MAXIMUM_BAND_2 = 1.602213 REFLECTANCE_MINIMUM_BAND_2 = -0.199972 REFLECTANCE_MAXIMUM_BAND_3 = 1.602213 REFLECTANCE_MINIMUM_BAND_3 = -0.199972 REFLECTANCE_MAXIMUM_BAND_4 = 1.602213 REFLECTANCE_MINIMUM_BAND_4 = -0.199972 REFLECTANCE_MAXIMUM_BAND_5 = 1.602213 REFLECTANCE_MINIMUM_BAND_5 = -0.199972 REFLECTANCE_MAXIMUM_BAND_6 = 1.602213 REFLECTANCE_MINIMUM_BAND_6 = -0.199972 REFLECTANCE_MAXIMUM_BAND_7 = 1.602213 REFLECTANCE_MINIMUM_BAND_7 = -0.199972 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 REFLECTANCE_MULT_BAND_1 = 2.75e-05 REFLECTANCE_MULT_BAND_2 = 2.75e-05 REFLECTANCE_MULT_BAND_3 = 2.75e-05 REFLECTANCE_MULT_BAND_4 = 2.75e-05 REFLECTANCE_MULT_BAND_5 = 2.75e-05 REFLECTANCE_MULT_BAND_6 = 2.75e-05 REFLECTANCE_MULT_BAND_7 = 2.75e-05 REFLECTANCE_ADD_BAND_1 = -0.2 REFLECTANCE_ADD_BAND_2 = -0.2 REFLECTANCE_ADD_BAND_3 = -0.2 REFLECTANCE_ADD_BAND_4 = -0.2 REFLECTANCE_ADD_BAND_5 = -0.2 REFLECTANCE_ADD_BAND_6 = -0.2 REFLECTANCE_ADD_BAND_7 = -0.2 END_GROUP = LEVEL2_SURFACE_REFLECTANCE_PARAMETERS GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS TEMPERATURE_MAXIMUM_BAND_ST_B10 = 372.999941 TEMPERATURE_MINIMUM_BAND_ST_B10 = 149.003418 QUANTIZE_CAL_MAXIMUM_BAND_ST_B10 = 65535 QUANTIZE_CAL_MINIMUM_BAND_ST_B10 = 1 TEMPERATURE_MULT_BAND_ST_B10 = 0.00341802 TEMPERATURE_ADD_BAND_ST_B10 = 149.0 END_GROUP = LEVEL2_SURFACE_TEMPERATURE_PARAMETERS GROUP = LEVEL1_PROCESSING_RECORD ORIGIN = "Image courtesy of the U.S. Geological Survey" DIGITAL_OBJECT_IDENTIFIER = "https://doi.org/10.5066/P975CC9B" REQUEST_ID = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
Notice that in both examples we were able to use the natural UTM coordinates of the scene instead of pixel numbers. This is particularly important when cropping scenes with the same WRS path/row at different times, since their boundaries won’t coincide exactly and cropping by pixels would result in misaligned images.
Load the panchromatic band#
The panchromatic band from Level 1 scenes will be ignored by
xlandsat.load_scene
if it’s present in an archive or folder.
This is because of it’s higher spatial resolution, which means that it can’t
share dimension coordinates with the other bands. For this reason, we have
the separate function xarray.load_panchromatic
for loading it.
Just like with regular scenes, we can provide either a .tar
archive or a
folder that contains the band and the MTL.txt
file:
path_to_pan = xls.datasets.fetch_liverpool_panchromatic()
pan = xls.load_panchromatic(path_to_pan)
pan
<xarray.DataArray 'pan' (northing: 534, easting: 867)> Size: 2MB array([[0.04228 , 0.04231999, 0.04229999, ..., 0.0603 , 0.0497 , 0.04848 ], [0.04224 , 0.04207999, 0.04212 , ..., 0.05284 , 0.04792 , 0.03968 ], [0.04251999, 0.04236 , 0.04207999, ..., 0.05194 , 0.04589999, 0.03664 ], ..., [0.04477999, 0.04421999, 0.04423999, ..., 0.05402 , 0.05444 , 0.05415999], [0.04465999, 0.04457999, 0.04387999, ..., 0.05435999, 0.05398 , 0.05471999], [0.04421999, 0.04408 , 0.04382 , ..., 0.05731999, 0.05505999, 0.05444 ]], shape=(534, 867), dtype=float32) Coordinates: * easting (easting) float64 7kB 4.87e+05 4.87e+05 4.87e+05 ... 5e+05 5e+05 * northing (northing) float64 4kB 5.922e+06 5.922e+06 ... 5.93e+06 5.93e+06 Attributes: (12/25) long_name: panchromatic units: reflectance number: 8 filename: LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF scaling_mult: 2e-05 scaling_add: -0.1 ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- northing: 534
- easting: 867
- 0.04228 0.04232 0.0423 0.0423 ... 0.05792 0.05732 0.05506 0.05444
array([[0.04228 , 0.04231999, 0.04229999, ..., 0.0603 , 0.0497 , 0.04848 ], [0.04224 , 0.04207999, 0.04212 , ..., 0.05284 , 0.04792 , 0.03968 ], [0.04251999, 0.04236 , 0.04207999, ..., 0.05194 , 0.04589999, 0.03664 ], ..., [0.04477999, 0.04421999, 0.04423999, ..., 0.05402 , 0.05444 , 0.05415999], [0.04465999, 0.04457999, 0.04387999, ..., 0.05435999, 0.05398 , 0.05471999], [0.04421999, 0.04408 , 0.04382 , ..., 0.05731999, 0.05505999, 0.05444 ]], shape=(534, 867), dtype=float32)
- easting(easting)float644.87e+05 4.87e+05 ... 5e+05 5e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487005., 487020., 487035., ..., 499965., 499980., 499995.], shape=(867,))
- northing(northing)float645.922e+06 5.922e+06 ... 5.93e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5922000., 5922015., 5922030., ..., 5929965., 5929980., 5929995.], shape=(534,))
- eastingPandasIndex
PandasIndex(Index([487005.0, 487020.0, 487035.0, 487050.0, 487065.0, 487080.0, 487095.0, 487110.0, 487125.0, 487140.0, ... 499860.0, 499875.0, 499890.0, 499905.0, 499920.0, 499935.0, 499950.0, 499965.0, 499980.0, 499995.0], dtype='float64', name='easting', length=867))
- northingPandasIndex
PandasIndex(Index([5922000.0, 5922015.0, 5922030.0, 5922045.0, 5922060.0, 5922075.0, 5922090.0, 5922105.0, 5922120.0, 5922135.0, ... 5929860.0, 5929875.0, 5929890.0, 5929905.0, 5929920.0, 5929935.0, 5929950.0, 5929965.0, 5929980.0, 5929995.0], dtype='float64', name='northing', length=534))
- long_name :
- panchromatic
- units :
- reflectance
- number :
- 8
- filename :
- LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
- Conventions :
- CF-1.8
- title :
- Landsat 8 panchromatic band from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P975CC9B
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L1TP_204023_20200927_20201006_02_T1
- processing_level :
- L1TP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- 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_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_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_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_PANCHROMATIC = 15.00 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 PANCHROMATIC_LINES = 534 PANCHROMATIC_SAMPLES = 867 REFLECTIVE_LINES = 8081 REFLECTIVE_SAMPLES = 7991 THERMAL_LINES = 8081 THERMAL_SAMPLES = 7991 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487005.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929995.0 CORNER_UR_PROJECTION_X_PRODUCT = 499995.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929995.0 CORNER_LL_PROJECTION_X_PRODUCT = 487005.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499995.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 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 = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
And we can also crop the panchromatic band upon loading to the same extent as our regular scene:
cropped_pan = xls.load_panchromatic(
path_to_pan,
region=(4.88e5, 4.90e5, 5.925e6, 5.927e6),
)
cropped_pan
<xarray.DataArray 'pan' (northing: 134, easting: 134)> Size: 72kB array([[0.04355999, 0.04343999, 0.04321999, ..., 0.04406 , 0.0451 , 0.04511999], [0.0436 , 0.04265999, 0.04251999, ..., 0.04532 , 0.04532 , 0.04545999], [0.04343999, 0.04355999, 0.04331999, ..., 0.04586 , 0.04581999, 0.046 ], ..., [0.04522 , 0.04423999, 0.04387999, ..., 0.04681999, 0.04669999, 0.04724 ], [0.04387999, 0.04457999, 0.04457999, ..., 0.04739999, 0.04756 , 0.0472 ], [0.04454 , 0.04409999, 0.04445999, ..., 0.04702 , 0.04693999, 0.04736 ]], shape=(134, 134), dtype=float32) Coordinates: * easting (easting) float64 1kB 4.88e+05 4.88e+05 ... 4.9e+05 4.9e+05 * northing (northing) float64 1kB 5.925e+06 5.925e+06 ... 5.927e+06 5.927e+06 Attributes: (12/25) long_name: panchromatic units: reflectance number: 8 filename: LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF scaling_mult: 2e-05 scaling_add: -0.1 ... ... ellipsoid: WGS84 date_acquired: 2020-09-27 scene_center_time: 11:10:50.3140030Z wrs_path: 204 wrs_row: 23 mtl_file: GROUP = LANDSAT_METADATA_FILE\n GROUP = PROD...
- northing: 134
- easting: 134
- 0.04356 0.04344 0.04322 0.04322 ... 0.0475 0.04702 0.04694 0.04736
array([[0.04355999, 0.04343999, 0.04321999, ..., 0.04406 , 0.0451 , 0.04511999], [0.0436 , 0.04265999, 0.04251999, ..., 0.04532 , 0.04532 , 0.04545999], [0.04343999, 0.04355999, 0.04331999, ..., 0.04586 , 0.04581999, 0.046 ], ..., [0.04522 , 0.04423999, 0.04387999, ..., 0.04681999, 0.04669999, 0.04724 ], [0.04387999, 0.04457999, 0.04457999, ..., 0.04739999, 0.04756 , 0.0472 ], [0.04454 , 0.04409999, 0.04445999, ..., 0.04702 , 0.04693999, 0.04736 ]], shape=(134, 134), dtype=float32)
- easting(easting)float644.88e+05 4.88e+05 ... 4.9e+05
- long_name :
- UTM easting
- standard_name :
- projection_x_coordinate
- units :
- m
array([487995., 488010., 488025., 488040., 488055., 488070., 488085., 488100., 488115., 488130., 488145., 488160., 488175., 488190., 488205., 488220., 488235., 488250., 488265., 488280., 488295., 488310., 488325., 488340., 488355., 488370., 488385., 488400., 488415., 488430., 488445., 488460., 488475., 488490., 488505., 488520., 488535., 488550., 488565., 488580., 488595., 488610., 488625., 488640., 488655., 488670., 488685., 488700., 488715., 488730., 488745., 488760., 488775., 488790., 488805., 488820., 488835., 488850., 488865., 488880., 488895., 488910., 488925., 488940., 488955., 488970., 488985., 489000., 489015., 489030., 489045., 489060., 489075., 489090., 489105., 489120., 489135., 489150., 489165., 489180., 489195., 489210., 489225., 489240., 489255., 489270., 489285., 489300., 489315., 489330., 489345., 489360., 489375., 489390., 489405., 489420., 489435., 489450., 489465., 489480., 489495., 489510., 489525., 489540., 489555., 489570., 489585., 489600., 489615., 489630., 489645., 489660., 489675., 489690., 489705., 489720., 489735., 489750., 489765., 489780., 489795., 489810., 489825., 489840., 489855., 489870., 489885., 489900., 489915., 489930., 489945., 489960., 489975., 489990.])
- northing(northing)float645.925e+06 5.925e+06 ... 5.927e+06
- long_name :
- UTM northing
- standard_name :
- projection_y_coordinate
- units :
- m
array([5925000., 5925015., 5925030., 5925045., 5925060., 5925075., 5925090., 5925105., 5925120., 5925135., 5925150., 5925165., 5925180., 5925195., 5925210., 5925225., 5925240., 5925255., 5925270., 5925285., 5925300., 5925315., 5925330., 5925345., 5925360., 5925375., 5925390., 5925405., 5925420., 5925435., 5925450., 5925465., 5925480., 5925495., 5925510., 5925525., 5925540., 5925555., 5925570., 5925585., 5925600., 5925615., 5925630., 5925645., 5925660., 5925675., 5925690., 5925705., 5925720., 5925735., 5925750., 5925765., 5925780., 5925795., 5925810., 5925825., 5925840., 5925855., 5925870., 5925885., 5925900., 5925915., 5925930., 5925945., 5925960., 5925975., 5925990., 5926005., 5926020., 5926035., 5926050., 5926065., 5926080., 5926095., 5926110., 5926125., 5926140., 5926155., 5926170., 5926185., 5926200., 5926215., 5926230., 5926245., 5926260., 5926275., 5926290., 5926305., 5926320., 5926335., 5926350., 5926365., 5926380., 5926395., 5926410., 5926425., 5926440., 5926455., 5926470., 5926485., 5926500., 5926515., 5926530., 5926545., 5926560., 5926575., 5926590., 5926605., 5926620., 5926635., 5926650., 5926665., 5926680., 5926695., 5926710., 5926725., 5926740., 5926755., 5926770., 5926785., 5926800., 5926815., 5926830., 5926845., 5926860., 5926875., 5926890., 5926905., 5926920., 5926935., 5926950., 5926965., 5926980., 5926995.])
- eastingPandasIndex
PandasIndex(Index([487995.0, 488010.0, 488025.0, 488040.0, 488055.0, 488070.0, 488085.0, 488100.0, 488115.0, 488130.0, ... 489855.0, 489870.0, 489885.0, 489900.0, 489915.0, 489930.0, 489945.0, 489960.0, 489975.0, 489990.0], dtype='float64', name='easting', length=134))
- northingPandasIndex
PandasIndex(Index([5925000.0, 5925015.0, 5925030.0, 5925045.0, 5925060.0, 5925075.0, 5925090.0, 5925105.0, 5925120.0, 5925135.0, ... 5926860.0, 5926875.0, 5926890.0, 5926905.0, 5926920.0, 5926935.0, 5926950.0, 5926965.0, 5926980.0, 5926995.0], dtype='float64', name='northing', length=134))
- long_name :
- panchromatic
- units :
- reflectance
- number :
- 8
- filename :
- LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF
- scaling_mult :
- 2e-05
- scaling_add :
- -0.1
- Conventions :
- CF-1.8
- title :
- Landsat 8 panchromatic band from 2020-09-27 (path/row=204/23)
- digital_object_identifier :
- https://doi.org/10.5066/P975CC9B
- origin :
- Image courtesy of the U.S. Geological Survey
- landsat_product_id :
- LC08_L1TP_204023_20200927_20201006_02_T1
- processing_level :
- L1TP
- collection_number :
- 02
- collection_category :
- T1
- spacecraft_id :
- LANDSAT_8
- sensor_id :
- OLI_TIRS
- map_projection :
- UTM
- utm_zone :
- 30
- datum :
- WGS84
- ellipsoid :
- WGS84
- date_acquired :
- 2020-09-27
- scene_center_time :
- 11:10:50.3140030Z
- wrs_path :
- 204
- wrs_row :
- 23
- mtl_file :
- 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_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_NUMBER = 02 COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_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_8" SENSOR_ID = "OLI_TIRS" WRS_TYPE = 2 WRS_PATH = 204 WRS_ROW = 23 NADIR_OFFNADIR = "NADIR" TARGET_WRS_PATH = 204 TARGET_WRS_ROW = 23 DATE_ACQUIRED = 2020-09-27 SCENE_CENTER_TIME = "11:10:50.3140030Z" STATION_ID = "LGN" CLOUD_COVER = 6.23 CLOUD_COVER_LAND = 1.37 IMAGE_QUALITY_OLI = 9 IMAGE_QUALITY_TIRS = 9 SATURATION_BAND_1 = "Y" SATURATION_BAND_2 = "Y" SATURATION_BAND_3 = "Y" 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 = 163.67259834 SUN_ELEVATION = 33.83332706 EARTH_SUN_DISTANCE = 1.0021760 TRUNCATION_OLI = "UPPER" TIRS_SSM_MODEL = "FINAL" TIRS_SSM_POSITION_STATUS = "ESTIMATED" END_GROUP = IMAGE_ATTRIBUTES GROUP = PROJECTION_ATTRIBUTES MAP_PROJECTION = "UTM" DATUM = "WGS84" ELLIPSOID = "WGS84" UTM_ZONE = 30 GRID_CELL_SIZE_PANCHROMATIC = 15.00 GRID_CELL_SIZE_REFLECTIVE = 30.00 GRID_CELL_SIZE_THERMAL = 30.00 PANCHROMATIC_LINES = 534 PANCHROMATIC_SAMPLES = 867 REFLECTIVE_LINES = 8081 REFLECTIVE_SAMPLES = 7991 THERMAL_LINES = 8081 THERMAL_SAMPLES = 7991 ORIENTATION = "NORTH_UP" CORNER_UL_LAT_PRODUCT = 54.16532 CORNER_UL_LON_PRODUCT = -5.36506 CORNER_UR_LAT_PRODUCT = 54.18146 CORNER_UR_LON_PRODUCT = -1.69297 CORNER_LL_LAT_PRODUCT = 51.98808 CORNER_LL_LON_PRODUCT = -5.24861 CORNER_LR_LAT_PRODUCT = 52.00299 CORNER_LR_LON_PRODUCT = -1.75737 CORNER_UL_PROJECTION_X_PRODUCT = 487005.0 CORNER_UL_PROJECTION_Y_PRODUCT = 5929995.0 CORNER_UR_PROJECTION_X_PRODUCT = 499995.0 CORNER_UR_PROJECTION_Y_PRODUCT = 5929995.0 CORNER_LL_PROJECTION_X_PRODUCT = 487005.0 CORNER_LL_PROJECTION_Y_PRODUCT = 5922000.0 CORNER_LR_PROJECTION_X_PRODUCT = 499995.0 CORNER_LR_PROJECTION_Y_PRODUCT = 5922000.0 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 = "P700g0pu7vqfu_00006" LANDSAT_SCENE_ID = "LC82040232020271LGN00" LANDSAT_PRODUCT_ID = "LC08_L1TP_204023_20200927_20201006_02_T1" PROCESSING_LEVEL = "L1TP" COLLECTION_CATEGORY = "T1" OUTPUT_FORMAT = "GEOTIFF" DATE_PRODUCT_GENERATED = 2020-10-06T10:29:11Z PROCESSING_SOFTWARE_VERSION = "LPGS_15.3.1" FILE_NAME_BAND_1 = "LC08_L1TP_204023_20200927_20201006_02_T1_B1.TIF" FILE_NAME_BAND_2 = "LC08_L1TP_204023_20200927_20201006_02_T1_B2.TIF" FILE_NAME_BAND_3 = "LC08_L1TP_204023_20200927_20201006_02_T1_B3.TIF" FILE_NAME_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_B4.TIF" FILE_NAME_BAND_5 = "LC08_L1TP_204023_20200927_20201006_02_T1_B5.TIF" FILE_NAME_BAND_6 = "LC08_L1TP_204023_20200927_20201006_02_T1_B6.TIF" FILE_NAME_BAND_7 = "LC08_L1TP_204023_20200927_20201006_02_T1_B7.TIF" FILE_NAME_BAND_8 = "LC08_L1TP_204023_20200927_20201006_02_T1_B8.TIF" FILE_NAME_BAND_9 = "LC08_L1TP_204023_20200927_20201006_02_T1_B9.TIF" FILE_NAME_BAND_10 = "LC08_L1TP_204023_20200927_20201006_02_T1_B10.TIF" FILE_NAME_BAND_11 = "LC08_L1TP_204023_20200927_20201006_02_T1_B11.TIF" FILE_NAME_QUALITY_L1_PIXEL = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_PIXEL.TIF" FILE_NAME_QUALITY_L1_RADIOMETRIC_SATURATION = "LC08_L1TP_204023_20200927_20201006_02_T1_QA_RADSAT.TIF" FILE_NAME_ANGLE_COEFFICIENT = "LC08_L1TP_204023_20200927_20201006_02_T1_ANG.txt" FILE_NAME_ANGLE_SENSOR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VAA.TIF" FILE_NAME_ANGLE_SENSOR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_VZA.TIF" FILE_NAME_ANGLE_SOLAR_AZIMUTH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SAA.TIF" FILE_NAME_ANGLE_SOLAR_ZENITH_BAND_4 = "LC08_L1TP_204023_20200927_20201006_02_T1_SZA.TIF" FILE_NAME_METADATA_ODL = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.txt" FILE_NAME_METADATA_XML = "LC08_L1TP_204023_20200927_20201006_02_T1_MTL.xml" FILE_NAME_CPF = "LC08CPF_20200701_20200930_02.02" FILE_NAME_BPF_OLI = "LO8BPF20200927110102_20200927123956.01" FILE_NAME_BPF_TIRS = "LT8BPF20200916105511_20201002071648.01" FILE_NAME_RLUT = "LC08RLUT_20150303_20431231_02_01.h5" DATA_SOURCE_TIRS_STRAY_LIGHT_CORRECTION = "TIRS" DATA_SOURCE_ELEVATION = "GLS2000" GROUND_CONTROL_POINTS_VERSION = 5 GROUND_CONTROL_POINTS_MODEL = 840 GEOMETRIC_RMSE_MODEL = 6.318 GEOMETRIC_RMSE_MODEL_Y = 4.539 GEOMETRIC_RMSE_MODEL_X = 4.394 GROUND_CONTROL_POINTS_VERIFY = 171 GEOMETRIC_RMSE_VERIFY = 3.974 END_GROUP = LEVEL1_PROCESSING_RECORD GROUP = LEVEL1_MIN_MAX_RADIANCE RADIANCE_MAXIMUM_BAND_1 = 756.76562 RADIANCE_MINIMUM_BAND_1 = -62.49395 RADIANCE_MAXIMUM_BAND_2 = 774.93726 RADIANCE_MINIMUM_BAND_2 = -63.99457 RADIANCE_MAXIMUM_BAND_3 = 714.09802 RADIANCE_MINIMUM_BAND_3 = -58.97045 RADIANCE_MAXIMUM_BAND_4 = 602.16766 RADIANCE_MINIMUM_BAND_4 = -49.72720 RADIANCE_MAXIMUM_BAND_5 = 368.49658 RADIANCE_MINIMUM_BAND_5 = -30.43057 RADIANCE_MAXIMUM_BAND_6 = 91.64175 RADIANCE_MINIMUM_BAND_6 = -7.56781 RADIANCE_MAXIMUM_BAND_7 = 30.88818 RADIANCE_MINIMUM_BAND_7 = -2.55076 RADIANCE_MAXIMUM_BAND_8 = 681.48810 RADIANCE_MINIMUM_BAND_8 = -56.27751 RADIANCE_MAXIMUM_BAND_9 = 144.01683 RADIANCE_MINIMUM_BAND_9 = -11.89296 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.2501E-02 RADIANCE_MULT_BAND_2 = 1.2801E-02 RADIANCE_MULT_BAND_3 = 1.1796E-02 RADIANCE_MULT_BAND_4 = 9.9474E-03 RADIANCE_MULT_BAND_5 = 6.0873E-03 RADIANCE_MULT_BAND_6 = 1.5139E-03 RADIANCE_MULT_BAND_7 = 5.1025E-04 RADIANCE_MULT_BAND_8 = 1.1258E-02 RADIANCE_MULT_BAND_9 = 2.3791E-03 RADIANCE_MULT_BAND_10 = 3.3420E-04 RADIANCE_MULT_BAND_11 = 3.3420E-04 RADIANCE_ADD_BAND_1 = -62.50645 RADIANCE_ADD_BAND_2 = -64.00737 RADIANCE_ADD_BAND_3 = -58.98224 RADIANCE_ADD_BAND_4 = -49.73715 RADIANCE_ADD_BAND_5 = -30.43666 RADIANCE_ADD_BAND_6 = -7.56932 RADIANCE_ADD_BAND_7 = -2.55127 RADIANCE_ADD_BAND_8 = -56.28877 RADIANCE_ADD_BAND_9 = -11.89534 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 = 30 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
This is particularly useful for pansharpening to make higher resolution RGB composites.