A step-by-step tutorial on reading NetCDF climate data with the metR package in R and computing Mann-Kendall trend tests and Sen’s slope on a spatial grid.
metR