Calculate moisture index and save output to a netCDF file.

nc_mi(filename, pet, pre, lat = NULL, lon = NULL, cpus = 2, overwrite = TRUE)

Arguments

filename

String with the output filename (.nc).

pet

3D structure with potential evapotranspiration data. These values can be calculated with the function splash_evap.

pre

3D structure with precipitation data.

lat

List with latitude data and variable id.

lon

List with longitude data and variable id.

cpus

Number of CPUs to use for the computation.

overwrite

Boolean flag to indicate if the output file should be overwritten (if it exists).