sen2nbar.nbar.nbar_stackstac

sen2nbar.nbar.nbar_stackstac(da: DataArray, stac: str, collection: str, quiet: bool = False) DataArray[source]

Computes the Nadir BRDF Adjusted Reflectance (NBAR) for a xarray.DataArray obtained via stackstac.

If the processing baseline is greater than 04.00, the DN values are automatically shifted before computing NBAR.

Parameters:
  • da (xarray.DataArray) – Data array obtained via stackstac to use for the NBAR calculation.

  • stac (str) – STAC Endpoint of the data array.

  • collection (str) – Collection name of the data array.

  • quiet (bool, default = False) – Whether to show progress.

Returns:

NBAR data array.

Return type:

xarray.DataArray