glmtools icon indicating copy to clipboard operation
glmtools copied to clipboard

`average_flash_area` is smaller than `minimum_flash_area`

Open zxdawn opened this issue 4 years ago • 2 comments

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?

zxdawn avatar Jul 11 '21 03:07 zxdawn

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?

deeplycloudy avatar Jul 22 '21 15:07 deeplycloudy

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

image

image

image

zxdawn avatar Jul 23 '21 06:07 zxdawn