-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scene.save_datasets() outputs different values for AHI_HSD reader with calibration="brightness_temperature" #2710
Comments
You have a typo:
should be:
|
Also note that the brightness temperature calibration is the default in Satpy for those types of bands so no need to specify it in the |
oops. Thank you!! I am thinking if I should submit PR to raise Value Error if valid arguments are not passed for |
That is not actually possible due to the way many of Satpy's Scene's methods use It is one of those: if we did it over again we'd probably be smarter about it, but it is the way it is. If you'd like to still look at it and see if it can be done then be my guest it would be great to do those types of checks. I'm just not very optimistic about how cleanly it can be implemented. |
Agreed. Then I will push this further in my list :) |
Describe the bug
I want to save the raw infrared bands from AHI sensor to
.tif
files withbrightness_temperature
as calibration.However,
scene.load(filenames, reader="ahi_hsd", calibration="brightness_temperature")
works as expected but when I try to save it usingscene.save_datasets()
, the values are within the range of[0-1]
which doesn't make any sense forbrightnesss_temperature
product.To Reproduce
Expected behavior
When I read any of the saved
.tif
files from above, I expect they would have values ofbrightness_temperature
which I printed after loading.Actual results
Environment Info:
The text was updated successfully, but these errors were encountered: