vendor-utils

Calculate Surface Reflectance

Description:
Calculates the surface reflectance from PlanetScope imagery files. This function opens a PlanetScope .tif file to access the reflectance coefficient and the shape of the surface reflectance data array.

Code Snippet:

with PlanetScope.open(tif_file) as planet_obj:
    print(planet_obj.reflectance_coefficient)

with PlanetScope.open(tif_file) as planet_obj:
    print(planet_obj.surface_reflectance.shape)