Skip to content
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

average_flash_area is smaller than minimum_flash_area #86

Open
zxdawn opened this issue Jul 11, 2021 · 2 comments
Open

average_flash_area is smaller than minimum_flash_area #86

zxdawn opened this issue Jul 11, 2021 · 2 comments

Comments

@zxdawn
Copy link

zxdawn commented Jul 11, 2021

I checked the difference between average_flash_area and minimum_flash_area:

import xarray as xr
from glob import glob

ds_glm_test = xr.open_dataset('../data/GOES-16/GLM_L2_Grid/2km/OR_GLM-L2-GLMC-M3_G16_s20201530000000_e20201530005000_c20211480438470.nc')
(ds_glm_test['average_flash_area'] - ds_glm_test['minimum_flash_area']).plot(vmin=-1e3, vmax=1e3, cmap='RdBu_r')

Some negative values are shown in the figure:
image

If I understand correctly, the difference should be positive, right?

@deeplycloudy
Copy link
Owner

Your expectation makes total sense. I think the difference here is because the average is an antialiased version of the values weighted by the 2km GLM sub pixel coverage fraction, while the minimum is not. Can you zoom in and check to see if the appearance is consistent with that idea?

@zxdawn
Copy link
Author

zxdawn commented Jul 23, 2021

Here are the enlarged figures. It looks like the large difference only exists in the edges.

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants