mpas_tools.seaice.mesh.write_2D_scripfile

mpas_tools.seaice.mesh.write_2D_scripfile(filenameScripOut, scripTitle, nColumns, nRows, latsCentre, lonsCentre, latsVertex, lonsVertex, degrees=False)[source]

Write a SCRIP file for the given 2D grid

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

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

  • nColumns (int) – The number of columns in the grid

  • nRows (int) – The number of rows in the grid

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

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

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

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

  • degrees (bool, optional) – Whether the latitude and longitude variables are in degrees (as opposed to radians)