Merge pull request #1238 from pierotofy/tempfix

Fix band order bug, temperature formulas
pull/1240/head
Piero Toffanin 2022-09-12 14:05:01 -04:00 zatwierdzone przez GitHub
commit e02719ab13
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -100,11 +100,11 @@ algos = {
'range': (-1, 1)
},
'Thermal C': {
'expr': 'Lwir',
'expr': 'L',
'help': _('Thermal temperature in Celsius degrees.')
},
'Thermal K': {
'expr': 'Lwir / 100 - 273.15',
'expr': 'L * 100 + 27315',
'help': _('Thermal temperature in Centikelvin degrees.')
},
@ -135,8 +135,8 @@ camera_filters = [
'RGBNRe',
'RGBReN',
'BGRNReLwir',
'BGRReNLwir',
'BGRNReL',
'BGRReNL',
# more?
# TODO: certain cameras have only two bands? eg. MAPIR NDVI BLUE+NIR
@ -152,7 +152,7 @@ def lookup_formula(algo, band_order = 'RGB'):
if algo not in algos:
raise ValueError("Cannot find algorithm " + algo)
input_bands = tuple(band_order)
input_bands = tuple(b for b in re.split(r"([A-Z][a-z]*)", band_order) if b != "")
def repl(matches):
b = matches.group(1)

2
locale

@ -1 +1 @@
Subproject commit 4e01fc1ccea78e41494191e082997000ee032c06
Subproject commit 753a979a3a1ef56fda22a5a9eb2501b2084e64f5