Stream: general

Topic: best way to generate monthly mean from hourly files


view this post on Zulip Pablo Ureña M. (Mar 09 2023 at 21:15):

Hi, I'm trying to generate an annually monthly mean file from a database of daily files in hourly time containing a few variables from 1993 to 2018.
Do you have a suggestion what is the best approach to read and average the data, using ncra or python with xarray of ncdf4?

view this post on Zulip Heather Craker (Mar 09 2023 at 21:44):

Hi Pablo. The GeoCAT-comp python package can compute the annual monthly mean of your data if you read your NetCDF file into an xarray object. Here is a tutorial that shows how to do this. Please let me know if you have any questions! https://geocat-comp.readthedocs.io/en/stable/examples/climatology_average.html


Last updated: May 16 2025 at 17:14 UTC