rcatool.utils.grids.add_matrix_NaNs
- rcatool.utils.grids.add_matrix_NaNs(regridder)[source]
Replace zero values of cells in the new grid that are outside the old grid’s domain with NaN’s.
- Parameters:
regridder (Object from xESMF Regridder function)
- Returns:
Modified regridder where zero valued cells (outside source grid) has been replaced with NaN’s.
- Return type:
regridder