mpas_tools.seaice.mesh.write_scrip_file

mpas_tools.seaice.mesh.write_scrip_file(scripFilename, title, nCells, maxEdges, latCell, lonCell, corner_lat, corner_lon, mask=None)[source]

A low-level function for writing a SCRIP file for the given MPAS-Seaice mesh

Parameters:
  • scripFilename (str) – The name of the resulting SCRIP file

  • title (str) – A string to include as the title attribute in the SCRIP file

  • nCells (int) – The number of cells in the mesh

  • maxEdges (int) – The maximum number of edges/vertices on a cell in the mesh

  • latCell (numpy.ndarray) – The latitude (in radians) of cell centers

  • lonCell (numpy.ndarray) – The longitude (in radians) of cell centers

  • corner_lat (numpy.ndarray) – The latitude (in radians) of cell vertices

  • corner_lon (numpy.ndarray) – The longitude (in radians) of cell vertices

  • mask (numpy.ndarray, optional) – A mask of where cells are valid