Closed jayepraveen999 closed 10 months ago
You have a typo:
enchance= False
should be:
enhance=False
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 .load
call.
oops. Thank you!!
I am thinking if I should submit PR to raise Value Error if valid arguments are not passed for save_datasets()
method. Your thoughts @djhoese ?
That is not actually possible due to the way many of Satpy's Scene's methods use **kwargs
. For writers it is even more difficult as a single set of kwargs is passed, split by a special classmethod on the Writer object, then some kwargs are sent to Writer.__init__
and the rest to Writer.save_datasets
.
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 :) Closing the issue for now.
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 ReproduceExpected 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: