-
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
abi_l2_nc reader Key Error 'calibration' when trying to load Mask from fire Hot Spot #2765
Comments
Thanks for filing a bug. This error surprises me. I believe the default Lines 242 to 265 in 8527311
|
Maybe a possible fix is changing |
The other question on my mind is why the tests aren't failing. The tests (if done correctly) should be doing the same kind of operations and shouldn't be patching/mocking any DataID stuff...hopefully. |
Ah the tests may not be testing this completely. Also I don't see this issue with other file types that I normally use like when I get the HT and TEMP variables since their units are not |
I was able to reproduce this with an ACM file and loading the BCM variable (which has units of 1). @frandorr Your fix makes sense to me. Do you think you could make a pull request and update the unit tests to make sure it works? |
Sure, I'll try to make it next week. |
@frandorr Any updates on your available time to make a PR for this? |
I created #2794 for this. |
Sorry, I didn't find the time to work on it |
No problem. It happens. And I just knew I didn't have time at that moment so was glad someone else might get to it. At least you found it. That's a major step. |
Describe the bug
When attempting to load the "Mask" dataset from an L2 FDCF product using Satpy, the process fails with a KeyError related to the 'calibration' key during the dataset reading phase. This issue occurs despite following the typical procedure for loading datasets with Satpy. The expected behavior is for the mask dataset to be loaded without errors, but instead, an error is thrown indicating that the 'calibration' key is missing, which suggests there might be a missing or incorrect configuration in the Satpy reader or the dataset itself does not contain the expected information.
** Current workaround to load the Mask **
Modify abi_l2_nc.yaml file. Add a dummy calibration to the Mask part:
To Reproduce
Expected behavior
Load mask dataset from the l2 FDCF product.
Actual results
Environment Info:
The text was updated successfully, but these errors were encountered: