Skip to contents

A function for aggregating daily netCDF files into monthly files, preserving the original temporal resolution for each respective month. For example, if you downloaded IMERG V07 data for the period 15 July 2018 to 15 September 2018, the function will produce three monthly files: 15 July 2018 - 31 July 2018, 01 August 2018 - 31 August 2018, and 01 September 2018 - 15 September 2018.

Usage

aggregate_netCDF_files(netCDF.files, output.path = "~")

Arguments

netCDF.files

A character vector listing all daily netCDF files

output.path

A character indicating where to place output files.

Value

netCDF file

Author

Ahmed Homoudi