API Reference

Here you will find all sen2nbar methods:

sen2nbar.nbar

Core module of sen2nbar. Computes NBAR:

nbar_SAFE(path[, cog, to_int, quiet])

Computes the Nadir BRDF Adjusted Reflectance (NBAR) using the SAFE path.

nbar_stac(da, stac, collection, epsg[, quiet])

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

nbar_stackstac(da, stac, collection[, quiet])

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

nbar_cubo(da[, quiet])

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

sen2nbar.metadata

Extracts information from Sentinel-2 metadata:

angles_from_metadata(metadata)

Gets the angle values per band (and Sun) in Sentinel-2 granule metadata.

get_processing_baseline(metadata)

Gets the processing baseline in Sentinel-2 user metadata.

sen2nbar.kernels

Computes the required kernels for BRDF:

kgeo(sun_zenith, view_zenith, relative_azimuth)

Computes the Geometric Kernel (Kgeo).

kvol(sun_zenith, view_zenith, relative_azimuth)

Computes the Volumetric Kernel (Kvol).

sen2nbar.brdf

Computes the BRDF:

brdf(sun_zenith, view_zenith, relative_azimuth)

Computes the Ross-Thick/Li-Sparse Reciprocal Bidirectional Reflectance Distribution Function (BRDF) Model.

sen2nbar.c_factor

Computes the c-factor:

c_factor(sun_zenith, view_zenith, ...)

Computes the c-factor.

c_factor_from_metadata(metadata)

Gets the c-factor per band from Sentinel-2 granule metadata.

c_factor_from_item(item, to_epsg)

Gets the c-factor per band from a Sentinel-2 pystac.Item.