Liam
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/image.c
|
|
@@ -388,7 +388,7 @@ static double tempcal(float Ce, int satnum, tempparam_t * rgpr) { |
|
|
|
|
|
|
|
// Convert to celsius |
|
|
|
T -= 273.15; |
|
|
|
// Rescale to 0-255 for -120°C to +40°C |
|
|
|
// Rescale to 0-255 for -100°C to +60°C |
|
|
|
T = (T + 100.0) / 160.0 * 255.0; |
|
|
|
|
|
|
|
return T; |
|
|
|