Calculate variables mean in a selective area , in gridded netCDF file
问题 Let say we have TRMM precipitation data, each file represents data for each month. For example, the files in the folder are: 3B42.1998.01.01.7A.nc, 3B42.1998.02.01.7A.nc, 3B42.1998.03.01.7A.nc, 3B42.1998.04.01.7A.nc, 3B42.1998.05.01.7A.nc, ...... ...... 3B42.2010.11.01.7A.nc, 3B42.2010.12.01.7A.nc. These files having a dimension as follows : Xsize=1440, Ysize=400, Zsize=1,Tsize=1. Longitude set to 0 to 360 and Latitude set to -50 to 50. I want to calculate the amount of precipitation over a