Sen2nbar

Latest version: v2023.8.1

Safety actively analyzes 622205 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2023.8.1

- Fixed the occurrence of infinite values.

2023.8.0

- Fixed concatenation error when c-factor had been reprojected.

2023.7.2

- Raise `ValueError` events when not all bands include angle values.
- Exclude timesteps in `nbar_stac` when not all bands include angle values.

2023.7.1

- Catch RuntimeWarning events when doing `np.nanmean` of detector angles.
- Added description to `tqdm` progress bar and set `leave=False`.
- Replaced `get_all_items()` by `item_collection()`.

2023.7.0

- Fixed path separators by os (https://github.com/ESDS-Leipzig/sen2nbar/issues/4).
- Pinned latest versions: :code:`cubo>=2023.7.0`.
- Fixed the required datatype of the EPSG code for stackstac (https://github.com/ESDS-Leipzig/sen2nbar/issues/5)

2023.3.0

Nadir BRDF Adjusted Reflectance (NBAR) for Sentinel-2 in Python

![NBAR](https://github.com/ESDS-Leipzig/sen2nbar/raw/main/docs/_static/logo.png)

SAFE

You can use `sen2nbar` to convert complete images via SAFE:

python
from sen2nbar.nbar import nbar_SAFE

Converted images are saved inside the SAFE path
nbar_SAFE("S2A_MSIL2A_20230223T075931_N0509_R035_T35HLC_20230223T120656.SAFE")


> **Note**
>
> Note that `sen2nbar` automatically shifts the DN of images with a processing baseline >= 04.00. This includes data cubes obtained via `stackstac` or `cubo`.

stackstac

Or, if you are using STAC and retrieving images via `stackstac`:

python
import pystac_client
import stackstac
import planetary_computer as pc
from sen2nbar.nbar import nbar_stackstac

Important infor for later
endpoint = "https://planetarycomputer.microsoft.com/api/stac/v1"
collection = "sentinel-2-l2a"

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.