Extracting reflectance coefficients from a SkySat analytic image by using Python

Before you can convert to reflectance values, you must extract the conversion coefficients included in the GeoTIFF Header, under 'TIFFTAG_IMAGEDESCRIPTION' in the SkySat analytic image.

import rasterio
import json

filename = rasterio.open('20210913_211131_ssc15_u0001_analytic.tif') #item ID: SkySat

tags = filename.tags()['TIFFTAG_IMAGEDESCRIPTION']
jtags = json.loads(tags)
coeffs = jtags['properties']['reflectance_coefficients']
# print ("reflectance coefficients:", coeffs)

for coeff in [0, 1, 2, 3]:
    print('reflectance coefficient band', coeff + 1, ':' , coeffs[coeff])

Script output listing the reflectance coefficient for each band

For more information about converting radiance values to reflectance, see:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.