Return thermal band without radiance calibration

pull/1493/head
usplm 2022-06-15 03:34:50 -04:00 zatwierdzone przez Piero Toffanin
rodzic d640e0dfd9
commit 7ec2434072
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -26,6 +26,10 @@ def dn_to_radiance(photo, image):
if len(image.shape) != 3:
raise ValueError("Image should have shape length of 3 (got: %s)" % len(image.shape))
# Thermal (this should never happen, but just in case..)
if photo.is_thermal():
return image
# All others
a1, a2, a3 = photo.get_radiometric_calibration()
dark_level = photo.get_dark_level()