xlandsat.nbr#
- xlandsat.nbr(scene, swir_band='swir2', nir_band='nir')[source]#
Normalized Burn Ratio
Calculate the NBR for the given scene, defined as:
\[NBR = \dfrac{NIR - SWIR}{NIR + SWIR}\]- Parameters:
scene (
xarray.Dataset
) – A Landsat scene, as read withxlandsat.load_scene
.swir_band (str) – The name of the variable in
scene
that corresponds to the SWIR band.nir_band (str) – The name of the variable in
scene
that corresponds to the NIR band.
- Returns:
nbr (
xarray.DataArray
) – The calculated NBR, with the metadata attributes from the original scene.