-
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
VIIRS day_microphysics array broadcast error #2258
Comments
The
day_microphysics:
compositor: !!python/name:satpy.composites.GenericCompositor
prerequisites:
- name: M07
modifiers: [sunz_corrected]
- name: M12
modifiers: [nir_reflectance]
- M15
standard_name: day_microphysics |
And references on adding your own configuration and composites: |
The definition using the explicit channel names solved the issue. For the sake of completeness, here my solution for the high resolution composite day_microphysics_hr:
compositor: !!python/name:satpy.composites.GenericCompositor
prerequisites:
- name: I02
modifiers: [sunz_corrected_iband]
- name: I04
modifiers: [nir_reflectance_hires]
- I05
standard_name: day_microphysics One caveat with the LAADS DAAC data KeyError: "Unknown datasets: {DataQuery(name='I02', modifiers=('sunz_corrected_iband',)):
{DataQuery(name='solar_zenith_angle', resolution=371, calibration='reflectance'):
{DataQuery(name='solar_zenith_angle', resolution=371, calibration='reflectance')}}}" Following issue #1190, this works (also in sunz_corrected_iband:
modifier: !!python/name:satpy.modifiers.SunZenithCorrector
prerequisites:
- name: i_solar_zenith_angle
resolution: 371 Thanks a lot for the quick and helpful reply. |
I'm going to reopen this. In my opinion there should be a better error message for this. @pnuu is right that changing what resolutions you provide should get around this issue, but |
I'm able to reproduce this error. Interestingly I don't get this error with VIIRS SDR data, only VIIRS L1B. This suggests it may be a reader issue. |
I've created #2260 to fix some of the issues involved here. I had missed in the #1190 issue that changes to the reader were used. My PR adds those changes which now fix the error you were getting originally @martin-rdz. I think this means it is still doing more processing than necessary (trying to do sunz correction with M band angles on an I band data), but it at least doesn't error out. I think your high resolution version and even a low resolution version of this composite that are specific to VIIRS would be a good addition to Satpy. How would you feel about make a pull request with these additions? |
as suggested in pytroll#2258
Describe the bug
Generating the day_microphysics RGB with NOAA-20 VIIRS data fails due to an array broadcast error.
To Reproduce
Expected behavior
Successful generation of the day_microphysics RGB
Actual results
A value error occurs when calculating the reflectance_from_tbs.
Environment Info:
Additional context
The data files were obtained via the LAADS DAAC NRT server.
The text was updated successfully, but these errors were encountered: