mpas_tools.ocean.inject_meshDensity.inject_planar_meshDensity
- mpas_tools.ocean.inject_meshDensity.inject_planar_meshDensity(cellWidth, x, y, mesh_filename)[source]
- Add a - meshDensityfield into a planar MPAS mesh. The mesh density is defined as:- meshDensity = (minCellWidth / cellWidth)**4 - Parameters:
- cellWidth (ndarray) – m x n array of cell width in km 
- x (ndarray) – Planar coordinates in meters 
- y (ndarray) – Planar coordinates in meters 
- mesh_filename (str) – The mesh file to add - meshDensityto