deeplycloudy / glmtools

GOES-R Geostationary Lightning Mapper Tools
BSD 3-Clause "New" or "Revised" License
63 stars 34 forks source link

Different timestep for averaging? #19

Open bryanguarente opened 6 years ago

bryanguarente commented 6 years ago

I am trying to figure out how to average over a different time step for any of the fields you are plotting, but I cannot find it in the code anywhere. Is there a quick spot you can point me to so I can change from 1-min averaging to 5-min averaging to make the AWIPS-standard (at least currently) output?

If this isn't available anywhere, can you let me know where the averaging is occurring so I can look into making it possible?

Thanks.

deeplycloudy commented 6 years ago

It's been happening in post-processing at the moment, so not in this package. You can sum FED and TOE directly, but 1 min AFA must be multiplied by FED to give total area, then total area divided by the same of FED to get 5 min AFA.

I think you can do the same thing by passing --dt=300 (seconds) to make_glm_grids.py. To get 1 min updates every 5 min, you'd then need to rerun the processing every minute with a shifting bundle of files.

I think the former route is more resource-efficient overall, as you only process each raw L2 file once.

On Tue, Aug 28, 2018 at 1:00 PM Bryan Guarente notifications@github.com wrote:

I am trying to figure out how to average over a different time step for any of the fields you are plotting, but I cannot find it in the code anywhere. Is there a quick spot you can point me to so I can change from 1-min averaging to 5-min averaging to make the AWIPS-standard (at least currently) output?

If this isn't available anywhere, can you let me know where the averaging is occurring so I can look into making it possible?

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deeplycloudy/glmtools/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ6y6MUOAsUVCwcmt2kcyRFhQRZhfJpks5uVYVBgaJpZM4WQHRL .